Frage

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?

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top