Pergunta

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?

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top