문제

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