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.

generate.js, problem with detected path

Featured Replies

delete me, finally I have rewriten generate.js to my objectifs ...

Edited by sonic

  • Author

In fact, generate.js generates path %cdrom% as correct path with it runs from a local folder, but when it runs on network (I mapp to a Z: drive) the path generated becomes Z:\\Folder\MySetup.msi /qb so RunonceEx works because it can read after \\ ... but when I have regedit /s z:\\regfile.reg , regedit can't handle \\ and error .... so I have removed one \ from my config.js but after when I run from local folder path become Z:Folder\MySetup.msi /qb ........ and finally I'm boring to find the good solution so I'm thinking about other way ...

So, finally I have "tuned" generate.js adding new two variables (because during my finding solution I have thinking about other possibility ^^)

%apps% and %logs% ... this two paths are define in cmd environnement by my batchfile (edit: I prefer CMD environnement to find path & co ) (which it test folder if exist, network more or not & more ...) and generate.js replace path ...

function replpath(u) {  
//
softs = WshEnv("sapps"); //sapps set in batch like "set sapps="...."
logs = WshEnv("slogs"); //slogs set in batch like "set slogs="...."
//
rs = rs.replace(/%softs%/gi, softs);
rs = rs.replace(/%logs%/gi, logs);

I have posted too fast :( so you can delete me ^^

Goodbye & big great job to all contributors of wpi, I "tune" this all the day and it will be perfect soon !

Edited by sonic

  • Author

I'M BAD VERY BAD !!!

During the discovering of WPI (few months ago ...) I have edited my configs.js & useroptions.js ... and I have set discpath='root' ! why? I don't remember ... so I have many error with \\ & co. ....

I have all recorrect my wpi and now works great , configs too .. I'm happy ^^ ... Now to get perfect, is it possible to search WPI.ico in parrent directory ? (I have tried but errors ...)

Thanks. goodbye.

Edited by sonic

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.