Re: Application Compatibility for Windows Vista Automatically starting installer setup.exe in Compatibility Mode 'Windows XP SP2'
bpardini
I have a similar app. This solution does not work for me. Here's the registry entry that I created prior to launching my app...
HKLM\Software\Microsoft\WindowsNT\CurrentVersion\AppCompatFlags\Layers
D:\Resource\MyApp.exe REG_SZ WINXPSP2 RUNASADMIN
D: is the DVD drive on my system. If I manually set the compatibility mode to WINXPSP2 RUNASADMIN by checking the appropriate check boxes in the file properties interface, the following registry entry appears and my install works flawlessly.
HKCU\Software\Microsoft\WindowsNT\CurrentVersion\AppCompatFlags\Layers
SIGN=28E0E6F Resource\MyApp.exe REG_SZ WINXPSP2 RUNASADMIN
If I copy the exe from the removable media to the hard drive and add the following to the registry...
HKCU\Software\Microsoft\WindowsNT\CurrentVersion\AppCompatFlags\Layers
C:\Resource\MyApp.exe REG_SZ WINXPSP2 RUNASADMIN
the install again works flawlessly as if I set the options manually.
Please note the difference in entry locations (Current User / Local Machine) Any help with this will be greatly appreciated - Thanks