I wanted to install the portable Ubuntu on my Windows machine, and so I downloaded the executable from the sourceforge project site and installed it.
It did not work, I initially thought I have to change the compatibility mode of the executables and set it to Windows XP SP2. There were too many files for which I had to change, so I came up with a script.
This script takes these options:
-p /--path for which you pass the path (all executable files under this path will be considered)
-m /--mode for which you pass the compatibility mode (list of valid modes given at the end of the post)
-a /--runasadmin which is a toggle option which enables/disables the "Run as Administrator" option (default: disabled)
-v /--verbose which is a toggle option which print more information (default: disabled)
The script did work :) ... but the portable Ubuntu did not :(
You can download the script from here
Don't worry to run this script on the same directory multiple times, the Windows registry takes care of duplicates by adding a file as a single entry.
List of compatibility modes (that go with --mode/ -m option):
"WIN95": "Windows 95 compatibilty mode",
"WIN98": "Windows Millennium or 98 compatibility mode",
"NT4SP5": "NT 4.0 Service Pack 5 compatibility mode",
"WIN2000": "Windows 2K compatibility mode",
"WINXPSP2": "Windows XP Service Pack 2 compatibility mode",
"WINSRV03SP1": "Windows Server 2003 SP 1 compatibility mode"
EDIT:
How to run this script on Windows... ?
Firstly, install python on your Windows machine. For installation you should download an appropriate
setup file for your Windows machine from this link, then double click the setup file and follow the on screen instructions.
Secondly, download the script from here. And here is how to run it:
Open a command terminal in Windows by hitting Windows+R keys and entering "cmd" (no quotes)
Then, navigate to the directory to which you downloaded the script (using 'cd'), when you are there
type these commands:
python compatibility_change.py --path "c:\\path\\to\\executables" --mode WINXPSP2
0 comments:
Post a Comment