Search code examples
c#winapiwindows-7windows-installerwindows-server-2008

How to have a MSI package to change installed Win32 application compatibility options


Our Win32 applications need to write in their installation directory. So under Windows 7 and Server 2008, this requires administrator rights.
Currently we manually check the "run as administrator" option in the properties/compatibility tab of the EXE file.
Is there a way to do this automatically during the installation of the MSI?


Solution

  • Add a manifest file to your application to make it ask for elevation at startup is a better workaround.