mritter Posted January 16, 2006 Share Posted January 16, 2006 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.jsOr 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. Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted January 16, 2006 Share Posted January 16, 2006 So why dont you add a new section to the options wizard?For install method choices.Let me know what you figure out... Link to comment Share on other sites More sharing options...
mritter Posted January 16, 2006 Author Share Posted January 16, 2006 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. Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted January 16, 2006 Share Posted January 16, 2006 Quick question? Which version of WPI did you get the files from?? Are they from the newest beta?Looks nice so far thanks. Link to comment Share on other sites More sharing options...
mritter Posted January 16, 2006 Author Share Posted January 16, 2006 Yes, 4.3.8b Link to comment Share on other sites More sharing options...
Solid as a rock Posted January 16, 2006 Share Posted January 16, 2006 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. B) Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted January 16, 2006 Share Posted January 16, 2006 They will be added into the next version. Link to comment Share on other sites More sharing options...
Solid as a rock Posted January 16, 2006 Share Posted January 16, 2006 They will be added into the next version.Nice to hear that. 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