Jump to content

Scripting compatibility mode?


Recommended Posts

I've got an installer that whines about being installed on the wrong OS if I try to install it on XP (it lets you install anyway and works fine after being installed - just bad OS detection I guess). I've found that I can run the installer in NT4 SP5 compatibility mode and it then keeps quiet about being installed on the "wrong" OS. Is there a way I can script having the program start in compatibility mode in a batch file?

Link to comment
Share on other sites


Just tried it - doesn't work. Apparently the compatibility mode setting doesn't go with the shortcut. I created the ISO with the shortcut and mounted it in Virtual PC. The shortcut in Virtual PC doesn't have the compatibility settings checked like it did prior to that.

Link to comment
Share on other sites

For the record, if you do this with a CD drive, the path is a really weird format (not just D:\blah.exe). Instead, it looks like this:

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]"SIGN=444651F lv5\\installer\\disk1\\SETUP.EXE"="NT4SP5"
Link to comment
Share on other sites

Most installers just look up the registry key with the os name in it.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion

Why not just change the key "ProductName" from "Microsoft Windows XP" to whatever opperating system you need with a reg file then change it back after the program has installed.

This is tested and works with my scanner driver/program

No need for compatibility or paths then! :)

.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...