Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > How to detect Everyone or Just Me installation setting in custom installer class
 

How to detect Everyone or Just Me installation setting in custom installer class

Within a custom installer class, how do I detect whether the user checked Everyone or Just Me?I need to create a registry key and itneeds to go under either the machine or user hive depending upon the user's selection. Thanks in advance for any ideas and/or suggestions!

  • Edited byj2associates Monday, September 28, 2009 1:57 PMAdded additional information
  • Edited byj2associates Monday, September 28, 2009 12:39 PMfixed typo
  • Edited byj2associates Monday, September 28, 2009 1:59 PMAdded additional information
  •  
j2associates  Monday, September 28, 2009 11:25 AM
  • Marked As Answer byj2associates Thursday, October 01, 2009 4:16 PM
  •  
PhilWilson  Monday, September 28, 2009 6:34 PM
Hi j2associates,

PhilWilson’s answer is correct. You can set the CustomActionData property like this: /IsAllUser=[ALLUSERS] . Then in the Installer class, you can get the custom action data with this code: string alluser = this.Context.Parameters["IsAllUser"].ToString()

Once user selects “Everyone� the alluser string is �� When they select “Just me� the alluser string is “�

Below is the information about CustomActionData.
http://msdn.microsoft.com/en-us/library/2w2fhwzz%28VS.80%29.aspx

If you have any problems in doing this, please feel free to tell me.

Sincerely,
Kira Qian
Send us any feedback you have about the help from MSFT at fbmsdn@microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework!
  • Marked As Answer byj2associates Thursday, October 01, 2009 4:16 PM
  •  
Kira Qian  Tuesday, September 29, 2009 7:11 AM
  • Marked As Answer byj2associates Thursday, October 01, 2009 4:16 PM
  •  
PhilWilson  Monday, September 28, 2009 6:34 PM
Hi j2associates,

PhilWilson’s answer is correct. You can set the CustomActionData property like this: /IsAllUser=[ALLUSERS] . Then in the Installer class, you can get the custom action data with this code: string alluser = this.Context.Parameters["IsAllUser"].ToString()

Once user selects “Everyone� the alluser string is �� When they select “Just me� the alluser string is “�

Below is the information about CustomActionData.
http://msdn.microsoft.com/en-us/library/2w2fhwzz%28VS.80%29.aspx

If you have any problems in doing this, please feel free to tell me.

Sincerely,
Kira Qian
Send us any feedback you have about the help from MSFT at fbmsdn@microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework!
  • Marked As Answer byj2associates Thursday, October 01, 2009 4:16 PM
  •  
Kira Qian  Tuesday, September 29, 2009 7:11 AM
Thanks to both of you for your helpfulness!
j2associates  Thursday, October 01, 2009 4:17 PM

You can use google to search for other answers

Custom Search

More Threads

• 2 Questions about the Merge Module
• ClickOnce Deployment Problems
• Newbie need help
• Restart problem with a hotfix (KB917952)
• Copy files to root of C: as part of a setup project
• Creating a executable for a custom action for a setup
• MSMQ prerequisite
• Programatically change install path
• Changing the "ComapnyName" installation forlder in Click Once
• User Interface and Registry in Setup Project