CodeKicks.com
Focus on Microsoft Technologies - Tutorials, Articles, Code Samples.

Friday, May 01, 2009

Setup project for Vista in C#.NET: put "Run as administrator" in the Shortcuts

“Run as Administrator” option is not provided by default in deployment wizard.

In order to provide this shortcut for user one has to modify the Property table of the MSI file and add case-sensitive DISABLEADVTSHORTCUTS with a value of 1.

This can be done manually opening the MSI file.

We can achieve the same by using Orca MSI package editor. This editor helps us to modify the settings of MSI file. Open the msi file you want to modify with Orca package and set the DISABLEADVTSHORTCUTS to value 1.

Download Orca from the Windows Installer SDK: http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/msisdk-common.3.0.cab (open the CAB and rename the Orca-file to Orca.MSI to install it.

http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/fc52d8bf-118e-47e2-9d32-08fdf72861d5/

Post a Comment