buzzman2005 Posted December 20, 2004 Posted December 20, 2004 Hey everyonei want to make my WPI generate runonceex code..... but everytime i add it it says there is somethign wrong with the code.....//Install WinZipif (document.inner.WPI.chkbox040.checked){ tf.WriteLine("REG ADD %KEY%\080 /VE /D "win zip" /f") tf.WriteLine("REG ADD %KEY%\080 /V 1 /D "\"%systemdrive%\program files\winzip\winzip32.exe\" /noqp /notip /autoinstall" /f") } tf.WriteLine(":end");any ideas??? the error says that there is an unexpected ")" on line 52 character 42........ which is somewhere in this code?i'm honestly not even sure if i am scriptign this right for use within WPItried searching and all i can see is people discussing using this option....any help?
Astalavista Posted December 20, 2004 Posted December 20, 2004 why are u double posting?pls read the forum RULES!
nakira Posted December 20, 2004 Posted December 20, 2004 Exactly which line is 52?If it's the first, do you need to have a space before the parenthesis like below"if (document.inner.WPI.chkbox040.checked) {"PS I know nothing about WPI, just guessing here
buzzman2005 Posted December 20, 2004 Author Posted December 20, 2004 first of all im nto 2x posting.... if u read carefully itrs a different issue...realted but different....2nd - nakira...... tried that space u suggested.... no luck but it actually says expected ")" line 52 istf.WriteLine("REG ADD %KEY%\080 /V 1 /D "\"%systemdrive%\program files\winzip\winzip32.exe\" /noqp /notip /autoinstall" /f")
nakira Posted December 20, 2004 Posted December 20, 2004 In that case I would guess that WPI also needs the extra quotes etc to be escaped, because pos 42 on that line is right after the second quotation mark in the line.If you want an editor which will tell you exactly what line#|char# you're at try Metapad, I replace Notepad with on my XPCDs
buzzman2005 Posted December 20, 2004 Author Posted December 20, 2004 so do u mean i should add a "\ before that like this?tf.WriteLine("REG ADD %KEY%\080 /V 1 /D "\"\"%systemdrive%\program files\winzip\winzip32.exe\"\" /noqp /notip /autoinstall" /f")not sure what u mean by escaped?ps thx for the metapad idea got it and like it
nakira Posted December 20, 2004 Posted December 20, 2004 Well as I said I know nothing about WPI so I cannot say how to escape chars in it, sorry.
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