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 byBradVoyWednesday, 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 byBradVoyWednesday, 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.