This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: LaunchApplication in New Thread
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 26, 2009
02:53 AM
LaunchApplication in New Thread
I have an Installscript MSI application that scripts the silent installs of a dozen or so applications. I preparing for Vista deployment (this is for the DoD, so we're behind the curve), two of the applications require Compatibility Mode to be set to Windows XP SP2. If that is set, the applications install just fine. If not, those installation packages fail.
I know how to set Compatibility Mode via the registry. (For those that might be searching, write HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers:FullPathToApplication="WINXPSP2".) However, if I launch these installation packages via LaunchApplication in Installscript, the compatibility settings in the registry are ignored because they run under the same thread as the main Installscript MSI application calling them and inherit its settings.
I am looking for a way to launch these applications from my Installscript MSI application and have the compatibility mode settings apply. I'd prefer to do this from Installscript, but I am open to any way possible to accomplish this. And no, I can't tell the vendor to update their applications for Vista. Also, I might be using the term "thread" wrong, but I hope someone understands what I am trying to communicate.
Thanks!
I know how to set Compatibility Mode via the registry. (For those that might be searching, write HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers:FullPathToApplication="WINXPSP2".) However, if I launch these installation packages via LaunchApplication in Installscript, the compatibility settings in the registry are ignored because they run under the same thread as the main Installscript MSI application calling them and inherit its settings.
I am looking for a way to launch these applications from my Installscript MSI application and have the compatibility mode settings apply. I'd prefer to do this from Installscript, but I am open to any way possible to accomplish this. And no, I can't tell the vendor to update their applications for Vista. Also, I might be using the term "thread" wrong, but I hope someone understands what I am trying to communicate.
Thanks!
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 26, 2009
10:45 AM
Did you try with and without the LAAW_OPTION_USE_SHELLEXECUTE flag?
More info on available APIs here: http://msdn.microsoft.com/en-us/library/ms682425(VS.85).aspx
More info on available APIs here: http://msdn.microsoft.com/en-us/library/ms682425(VS.85).aspx
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)