Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

WPI RunOnceEx

Featured Replies

Hey everyone

i want to make my WPI generate runonceex code..... but everytime i add it it says there is somethign wrong with the code.....

//Install WinZip
if (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 WPI

tried searching and all i can see is people discussing using this option....

any help?

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 :)

  • Author

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 is

tf.WriteLine("REG ADD %KEY%\080 /V 1 /D "\"%systemdrive%\program files\winzip\winzip32.exe\" /noqp /notip /autoinstall" /f")

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 :)

  • Author

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

Well as I said I know nothing about WPI so I cannot say how to escape chars in it, sorry.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.