주 콘텐츠로 건너뛰기

 none
Detecting InstallAllUsers value RRS feed

  • 질문

  • I have a .msi installer built with Visual Studio 2008.  It runs some custom code based on the .NET Framework System.Configuration.Install.Installer class.  In my custom code I need to know whether the user selected Everyone or Just me on the Installation Folder dialog.  There doesn't seem to be anything in the Context.Parameters collection that indicates which option the user selected.
    2009년 9월 22일 화요일 오후 4:54

답변

  • This is the ALLUSERS (cases-sensitive) property in Windows Installer. If you pass it as [ALLUSERS] as part of your CustomActionData you'll see its value. It'll be 1 for a 'Everyone' install (per-machine).
    Phil Wilson
    • 답변으로 표시됨 BradVoy 2009년 9월 23일 수요일 오후 2:11
    2009년 9월 22일 화요일 오후 9:28
    중재자

모든 응답

  • It is a property, not a parameter.

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
    Visual C++ MVP
    2009년 9월 22일 화요일 오후 7:46
  • Thanks for replying.  I understand that InstallAllUsers is a property.  But a property of what?  How can my installer code access this property?
    2009년 9월 22일 화요일 오후 7:55
  • use CustomActionData Property to pass properties to your custom action

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
    Visual C++ MVP
    2009년 9월 22일 화요일 오후 9:11
  • This is the ALLUSERS (cases-sensitive) property in Windows Installer. If you pass it as [ALLUSERS] as part of your CustomActionData you'll see its value. It'll be 1 for a 'Everyone' install (per-machine).
    Phil Wilson
    • 답변으로 표시됨 BradVoy 2009년 9월 23일 수요일 오후 2:11
    2009년 9월 22일 화요일 오후 9:28
    중재자
  • That's the connection I hadn't made yet.  Thanks for your help.
    2009년 9월 23일 수요일 오후 2:11
  • Is there a comprehensive list anywhere of all of the different property names that can be used? TARGETDIR and ALLUSERS and all caps while ProductName is not. The lack of consistency makes it hard to remember everything.
    2010년 5월 11일 화요일 오후 12:01
  • http://www.bing.com/search?q=TARGETDIR

    click on the first result.



    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
    Visual C++ MVP
    2010년 5월 11일 화요일 오후 12:36