pokemon1 Posted June 23, 2008 Posted June 23, 2008 Hi, i am newbie in WPI stuff and need your help.I am encountering a peculiar problem while trying to call WPI.hta via another .exe program (Custom made autorun .exe program that placed in the root. This has been created so that I can install the applications independently when I do not require any OS install). I am currently testing this in my pen drive.WPI is working fine when I am starting it by double clicking on WPI.HTA file. (Both tested in hard drive and pen drive i.e. flash drive)However when I am calling WPI.HTA via Start.exe (in conjunction with start.ini) it throws 2 error msgs before WPI page appears and functioning correctly.My start.ini (For autorun start.exe) file contains following lines;[splashStart]ExecutePath=WPI\WPI.hta1st error: Could not save WPIScripts/Useoptions.js2nd error: Could not save WPIScripts/Windowoptions.jsCan anybody please help me to find and problem and possible fix?Regards,Pokemon
willyeckerslike Posted June 23, 2008 Posted June 23, 2008 Total noob here but I think it should read like this ExecutePath=%CDROM%\WPI\WPI.hta if it's on your cd.
pokemon1 Posted June 23, 2008 Author Posted June 23, 2008 Total noob here but I think it should read like this ExecutePath=%CDROM%\WPI\WPI.hta if it's on your cd.Hi thx for suggestion. but it is not working.....I am executing the wpi on running vista.....from usb disk. it is something with the usb disk. while running wpi from withiin hard drive, everything is fine..Kel, mritter, any suggestion pls.Thanks,Pokemon
mritter Posted June 24, 2008 Posted June 24, 2008 I sent a bug fix to midiboy to test out, he never replied back; he is on vacation. The default paths were not being set properly and a bug Kel found that I fixed made it worse. I think I have corrected, I will send you a link to dowload the latest version.
pokemon1 Posted June 24, 2008 Author Posted June 24, 2008 Thanks Kel for your advise, however it is not working. It made it worse, WPI is not opening at all.Mritter, thanks for your effort. Please update me once you are done with the fix.Regards,Pokemon
bkmdano Posted July 8, 2008 Posted July 8, 2008 I was having the same problem using a Wise executable I created to map my network drive and then run the HTA. I ended up creating a batch file on the C: drive that ran "Z:\WPI\WPI.HTA" My executlable maps the Z: drive and a few other things and then runs the local batch file. It appears to be working now!Good Luck!
mritter Posted July 8, 2008 Posted July 8, 2008 The bug has been fixed. I hope you saw that in other posts.You may also want to try the full path:ExecutePath=W:\Windows\System32\mshta.exe C:\WPI\WPI.htajust to see if that is needed.
pokemon1 Posted July 9, 2008 Author Posted July 9, 2008 The bug has been fixed. I hope you saw that in other posts.You may also want to try the full path:ExecutePath=W:\Windows\System32\mshta.exe C:\WPI\WPI.htajust to see if that is needed.Thanks Mritter,I will test and confirm.Pokemon
bkmdano Posted July 9, 2008 Posted July 9, 2008 (edited) Hello again, I am a total Jscript / HTA noob, so please forgive me if I am missing something. If I comment out these lines at the bottom of the WPI.HTA, I no longer get the Could not save useroptions and windowsoptions error. Are they performing some needed function I missed?Please note: I am running this from a network share when i get the errors. The logged on user account would not have rights to modify any of these files on the server.Thanks!// if (!FileExists(optionsFile) && hdd != "")// SaveDefaultUserOptions();// if (!FileExists(windowFile) && hdd != "")// SaveDefaultWindowOptions(); Edited July 9, 2008 by bkmdano
mritter Posted July 10, 2008 Posted July 10, 2008 That is the bug I fixed. It has nothing to do with that particular code, but in a totally different location. It has been fixed for a while now and will be in the next release. Not sure when that will be......keep adding new stuff like it was going out of style.If you want to test it send me a message. I do want to make sure this is fixed for network shares.
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