I want to add functionality to my visual studio 2008 setup project such that it will pop up a message box saying the user running the installer is administrator or non admin user. Is there any way to do this where I parse some command string and if there is any specific argument I will pop up an appropriate message box?

有帮助吗?

解决方案

The Privileged property indicates whether the installation is performed in the context of elevated privileges. You can use this in a conditional expression (Conditional Statement Syntax) in the LaunchCondition table. This is found in Visual Studio Setup Projects by right clicking the project and selecting View | Launch Conditions.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top