Detecting InstallAllUsers value RRS feed

  • Question

  • 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.
    mardi 22 septembre 2009 16: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
    • Marqué comme réponse BradVoy mercredi 23 septembre 2009 14:11
    mardi 22 septembre 2009 21:28

Toutes les réponses