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: (open the CAB and rename the Orca-file to Orca.MSI to install it.

Post a Comment