Remote install softaware in compatibility mode

Hello, have an interesting issue. Someone requested that software be made available for 64-bit systems. Not an issue, I have a basic software packager. However, I discovered the software only installs in Windows Vista SP 2 compatibility mode.
It doesn't need to run in compatibility mode, it just needs to install in compatibility mode.

In other situations I'd have the tech download to the host machine and have it run in compatibility mode manually. I can't do that, I need to set it so that the package can be deployed remotely. Any ideas? Can it be done as a Powershell/VB script? Please assist, thanks.
Chris PerrySystems EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vadim RappCommented:
Here's MS article:

also, you can create a script that will do this before launching setup.exe

reg.exe Add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "C:\setup.exe" /d "WINXPSP3"

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Vadim RappCommented:
...however, it's not 100% proven that it will work. It actually depends on the reasons why it has to install in compatibility mode. If it's something in setup.exe itself, it will probably help. But if it's custom action called by Installer during the installation, it won't help. Since Installer itself probably won't run in compatibility mode (would be interesting to try), the only way is to patch the installation by removing custom action. Since 90% of custom actions are in fact unnecessary, there's a chance that it will work. Depends on your product, obviously.
Chris PerrySystems EngineerAuthor Commented:
Thanks, Vadim. I saw that as well, was wondering if there was a better way to do so. By the look of it, I'll have to do the following:

A) Repackage it so that it drops to (for example) C:\Temp\Installer

B) Prior to initiating the install run the reg.exe command

C) Then initialize.

Didn't want to do it like that but I guess I'll have to. (The software's ideally supposed to run from a network location, but due to this one quirk...oh well.) Thanks once again.


Chris PerrySystems EngineerAuthor Commented:
As a follow-up, I wound up creating the reg key and will use reg import command to install it prior to the main installation. Works just as well.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.