Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Detecting InstallAllUsers value
 

Detecting InstallAllUsers value

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 knowwhether 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.
BradVoy  Tuesday, September 22, 2009 4:54 PM
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
  • Marked As Answer byBradVoy Wednesday, September 23, 2009 2:11 PM
  •  
PhilWilson  Tuesday, September 22, 2009 9:28 PM
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
Sheng Jiang 蒋晟  Tuesday, September 22, 2009 7:46 PM
Thanks for replying. I understand that InstallAllUsers is a property. But a property of what? How can my installer code access this property?
BradVoy  Tuesday, September 22, 2009 7:55 PM
useCustomActionData Propertyto 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
Sheng Jiang 蒋晟  Tuesday, September 22, 2009 9:11 PM
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
  • Marked As Answer byBradVoy Wednesday, September 23, 2009 2:11 PM
  •  
PhilWilson  Tuesday, September 22, 2009 9:28 PM
That's the connection I hadn't made yet. Thanks for your help.
BradVoy  Wednesday, September 23, 2009 2:11 PM

You can use google to search for other answers

Custom Search

More Threads

• Uninstalling SQL Express with application setup
• DLL Entry point in C#
• Updating Individual Components
• How to run the exe file without UI made by InstallShield?
• Deployment files generated query
• Problem running App Ref on startup
• Help to Publish windows application for Web downloading
• Visual Studio Version Problem
• Why is ClickOnce enforcing me to sign my application when there is a COM object referenced?
• Making our application run on Vista?