質問

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