windows-installerinstallshieldrunasinstallshield-2009

How can I make the installer Run as admin


My application has an installer built in installshield. But for proper working of installation process in vista Win 7 etc. the installer should be run as administrator. (Even though the user has admin previlege he should select the 'Run as Administrator' option in the menu on rightclicking the installer exe)

How can I make my installer to prompt that it should be always run as administrator.

Thanks in advance...


Solution

  • You need to set the execution level to "Require Administrator" from the project options. This option will be stored in the manifest file included in your setup package and it will make the installer to act as it was launched with the option "Run as administrator" on machines that run on Vista or a newer OS. Older versions of Windows will ignore the manifest file.