1. We need a folder where we want to test in, i'ved choosen C:\DATEN\TEMP\XYtest. (but feel free to use any folder, on the same partition as your normal XY installation)
2. We hardlink our XYplorer.exe from our working-version (e.g. from C:\Programme\XYplorer) to the test-folder. (hardlinking only works within a partition)
3. We create a default ini-file called XYdefault.ini where we put our license-info in, so we don't see the nag-screen
Code: Select all
[Register]
Name=Your Name
Code=xyxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx
dc=04. We use this script: (edit $test_dir to match the path choosen in 1st)
Code: Select all
"resetConf"
$test_dir = "C:\DATEN\TEMP\XYtest";
if("<xydata>" != $test_dir) {
Goto $test_dir;
if("<curpath>" == $test_dir) {
Filter "!>(XYplorer\.exe|resetConf\.xys|XYdefault\.ini)";
Sel 'a';
Delete 0, 0;
Filter;
CopyItem "$test_dir\XYdefault.ini", "$test_dir\XYplorer.ini";
} else {
Msg "Failed to switch to XYtest-directory!";
}
} else {
Msg "You don't want to do this in your main XYplorers data-directory!";
}
//and if you want to start XY right after the cleanup, feel free to uncomment this:
//Run "XYplorer.exe"; //we should still be in our test-directory...
What the Script does:
1. It preserves that testing-directory is not your config-directory to prevent accidently resetting your config.
2. It ensures that its working in the testing-dir.
3. It deletes all files not having these filenames: XYplorer.exe|resetConf.xys|XYdefault.ini.
4. It copies the XYdefault.ini to XYplorer.ini
Starting a clean copy of your currently using version was never been easier.
I recomment to use this in combination with the great XYplorer Automatic Updater from jacky. So you can ensure the bug is not allready been fixed in the newest version.
XYplorer Beta Club