RyanVM Posted May 7, 2004 Share Posted May 7, 2004 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 More sharing options...
enuffsaid Posted May 7, 2004 Share Posted May 7, 2004 removed Link to comment Share on other sites More sharing options...
RyanVM Posted May 7, 2004 Author Share Posted May 7, 2004 ooo, nice trick Link to comment Share on other sites More sharing options...
RyanVM Posted May 7, 2004 Author Share Posted May 7, 2004 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 More sharing options...
enuffsaid Posted May 7, 2004 Share Posted May 7, 2004 removed Link to comment Share on other sites More sharing options...
enuffsaid Posted May 7, 2004 Share Posted May 7, 2004 removed Link to comment Share on other sites More sharing options...
RyanVM Posted May 7, 2004 Author Share Posted May 7, 2004 That looks very promising (and exactly the key I was looking for) Link to comment Share on other sites More sharing options...
RyanVM Posted May 7, 2004 Author Share Posted May 7, 2004 Works like a charm! I tested it on both Virtual PC and on a freshly formatted separate computer. Link to comment Share on other sites More sharing options...
enuffsaid Posted May 7, 2004 Share Posted May 7, 2004 removed Link to comment Share on other sites More sharing options...
Bachus Posted May 8, 2004 Share Posted May 8, 2004 This will be very useful. Good find. Link to comment Share on other sites More sharing options...
enuffsaid Posted May 8, 2004 Share Posted May 8, 2004 removed Link to comment Share on other sites More sharing options...
RyanVM Posted May 10, 2004 Author Share Posted May 10, 2004 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 More sharing options...
enuffsaid Posted May 10, 2004 Share Posted May 10, 2004 removed Link to comment Share on other sites More sharing options...
cyberdiamond Posted May 11, 2004 Share Posted May 11, 2004 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/programNo need for compatibility or paths then! . Link to comment Share on other sites More sharing options...
enuffsaid Posted May 11, 2004 Share Posted May 11, 2004 Compatibility mode is a bit more complex than just checking for the OS version. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now