I have created a MSI setup.exe which I want to run in the elevate mode in Windows Vista. How can I do that


Re: ClickOnce and Setup & Deployment Projects How to run the MSI installer in the elevated mode

Scott Tucker [MSFT]

Have you created setup.exe or setup.msi

By default Windows Vista will prompt to elevate any application with the word 'setup' 'install' or 'update'. so your application will be elevated unless you have included a windows vista UAC manifest explicitly telling it not to.

You might check out this article on User Account Control in Windows Vista.

It explains how you can embed a UAC manifest in an application to force the application to run elevated.