Setup & Deployment Custom Action (Test for Local Admin)

Pete (BSC)

Well-known member
Joined
Oct 19, 2007
Messages
89
Programming Experience
10+
To prevent an issue Setup & Deployment installs files to root C:\ I need to build a custom action or something that tests that the user executing the setup is in the local admin. group. If they are not, display a message saying so and stop the setup.

I am also leaning on using a different tool to build the setup. Does anyone use a tool to build a .NET installation package that is not from Microsoft?
 
Resolution

Found a resolution to my issue not too long after my original posting, here is what I did:

In the Launch Conditions I added a test for the condition "AdminUser" and if the user is not an "AdminUser" then the defined message is displayed and the setup stops.

Windows Installer Property References
 
Back
Top