beringtom
Posts: 5
Joined: Sat Jan 16, 2010 3:05 pm

running shortcuts in Compability mode?

i know this is not a Advanced Installer problem, but maybe someone here tried this before?
can you write a argument in a shortcut to make it start in compability mode?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: running shortcuts in Compability mode?

Hello,

I'm not sure what you mean. Do you want to set this property for a shortcut already installed on the computer? Or do you want to set this property for a shortcut created in the Advanced Installer project?
For already installed shortcuts, right click the shortcut, select properties and navigate to Compatibility tab. Set your preferences there.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
beringtom
Posts: 5
Joined: Sat Jan 16, 2010 3:05 pm

Re: running shortcuts in Compability mode?

thanks for the reply :)

I made a MSI of one of our programs we used to run on XP,
But we are in the middle of upgrading all of our pcs to Win7.

I was just wandering if i could make a shortcut to that program, so when i install it from the msi it allways run in compatibilty mode?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: running shortcuts in Compability mode?

Hello,

I am afraid this is not directly supported either by Windows Installer or by Advanced Installer.

Nonetheless, I have studied this issue. It appears when a shortcut is marked to be run under compatibility mode, the following value is added to the registry:

Code: Select all

[HKEY_USERS\S-1-5-21-796658315-755619836-2487631926-1002\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]
"C:\\Program Files (x86)\\Caphyon\\Advanced Installer 7.2.1\\advinst.exe"="WINXPSP2"
The above example means the advinst.exe executable will be run under Windows XP SP2 compatibility mode.

To achieve this in your installer, you will want to create the appropriate registry value from the Registry page to mark your executable to be run under compatibility mode. It should work. However, I am not sure as I could not find any documentation on this. You would also have to test this on multiple operating systems to ensure a consistent behavior.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
beringtom
Posts: 5
Joined: Sat Jan 16, 2010 3:05 pm

Re: running shortcuts in Compability mode?

thanks for the time you used on this, i will give it a go.
Thanks in advance , and enjoy your weekend.

Return to “Common Problems”