It has been brought up several times on how to specify to launch from CD or HD, but hasn't been fully explained or done. This is what would be needed so with new versions we won't have to remember to modify generate.js each time (like I just forgot to do).
It would be the easiest to put this in useroptions.js:
var launchFrom=CD; or =HD;
Then in generate.js do this check in FindCDRom():
if (launchFrom==CD)
{
.....
FileExists(WIN51)
.....
}
else
{
....
FileExists{WPI.ICO)
....
}
The above will only work if you can get the variable from useroptions.js and pass it to generate.js
Or put it in the temp registry entries.
If you can pass it from useroptions.js, then add on option to the configwizard.js to specify our choice.
Page 1 of 1
Run from CD or HD Code modifications
#2
Posted 15 January 2006 - 09:01 PM
So why dont you add a new section to the options wizard?
For install method choices.
Let me know what you figure out...
For install method choices.
Let me know what you figure out...
#3
Posted 15 January 2006 - 10:13 PM
OK. I modified the code to add this to the Options Wizard:
Install from CD? o Yes o No Launch WPI from CDROM, not from harddrive
(Default is no.)
Then in generate.js it automatically checks what your choice is and checks for either WPI.ICO or WIN51 and sets the path accordingly.
Below is the zipped file with the 3 modified files. It will work fine with your old useroptions.js file, then when you save your new choice for install method, it will add the new line. (backward compatible).
So now, with every new version you will not have to manually edit generate.js!!!
As always, let me know if there are any bugs. It works on my system........Murphy's Law of programming.
Install from CD? o Yes o No Launch WPI from CDROM, not from harddrive
(Default is no.)
Then in generate.js it automatically checks what your choice is and checks for either WPI.ICO or WIN51 and sets the path accordingly.
Below is the zipped file with the 3 modified files. It will work fine with your old useroptions.js file, then when you save your new choice for install method, it will add the new line. (backward compatible).
So now, with every new version you will not have to manually edit generate.js!!!
As always, let me know if there are any bugs. It works on my system........Murphy's Law of programming.
#4
Posted 15 January 2006 - 10:39 PM
Quick question? Which version of WPI did you get the files from?? Are they from the newest beta?
Looks nice so far thanks.
Looks nice so far thanks.
#6
Posted 15 January 2006 - 11:25 PM
mritter, thanks for emailing me, i like your idea too.
i make the same mistake as you (forgotting to edit generate.js) and didnt know anymore exactly which files to edit, so i stay at the old version (4.3.5).
Now, i hope kelsenellenelvian grab your ideas and put it in the new version.
i make the same mistake as you (forgotting to edit generate.js) and didnt know anymore exactly which files to edit, so i stay at the old version (4.3.5).
Now, i hope kelsenellenelvian grab your ideas and put it in the new version.
#8
Posted 15 January 2006 - 11:47 PM
Share this topic:
Page 1 of 1



Help
Back to top











