Jackson0 Posted December 8, 2008 Share Posted December 8, 2008 (edited) Hi,the comando TimeWaitForFile will not work.Seem's like a "comma" problem .....exe",10) ,10) will be cutRegards Jackson Edited December 9, 2008 by Jackson0 Link to comment Share on other sites More sharing options...
mritter Posted December 9, 2008 Share Posted December 9, 2008 You are correct. Forgot all about these. Use the new %comma% variable.......for now. I will automate this in next maintenance release.{JSCRIPT}=TimedWaitForFile("C:\path\file"%comma%10){JSCRIPT}=TimedWaitForDelete("C:\path\file"%comma%10){JSCRIPT}=WriteRegKey("HKEY_CURRENT_USER\Software\WPI\blah"%comma%1%comma"REG_DWORD")The simplest things can make the most headaches................ Link to comment Share on other sites More sharing options...
mritter Posted December 18, 2008 Share Posted December 18, 2008 I automated the %comma% placement/replacement. Should be automatic. Put back your commas and try it with the version I PM'ed you. Link to comment Share on other sites More sharing options...
dolivas Posted January 4, 2009 Share Posted January 4, 2009 mritter Happy New Years.....I am also have a problem with this I find that it is replacing the second comma with %comma% but not the first. After I changed the first one to %comma% and ram WPI I keep getting this error the second one I add just to check your example to see if it worked? Any thoughts?Saturday, January 03, 2009 9:37:00 PM Program: DriveSpace Unique ID: DRIVESPACE Order: 900027 Category: Applications Saturday, January 03, 2009 9:37:02 PM - cmd1 Success (returned code 0): "D:\AutoImage\RVM\Plugins\WPI\Install\DriveSpace.exe" Saturday, January 03, 2009 9:37:02 PM - cmd2 *** Fail *** (returned code undefined): "JSCRIPT=WriteRegKey("HKEY_LOCAL_MACHINE\\SOFTWARE\\Doug\\DriveSpace\\Library_Icon",1,"REG_DWORD")" Saturday, January 03, 2009 9:37:02 PM - cmd3 *** Fail *** (returned code undefined): "JSCRIPT=WriteRegKey("HKEY_CURRENT_USER\\Software\\WPI\\WPI_Rocks",1,"REG_DWORD")" Saturday, January 03, 2009 9:37:03 PM - Finished installation. Link to comment Share on other sites More sharing options...
dolivas Posted January 4, 2009 Share Posted January 4, 2009 mritter never mind was user error I got it working with this.{JSCRIPT}=WriteRegKey("HKEY_LOCAL_MACHINE\\SOFTWARE\\Doug\\DriveSpace\\Library_Icon",1%comma%"REG_DWORD")The only weired thing is when I saved it and then ran WPI to test it it changed the second comma with the variable but left the first one a comma? Looks like I was not putting the JSCRIPT in brackets was causing my first problem.Thanksdolivas 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