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.

Running WPI from every position

Featured Replies

Hi there,

yesterday I came across the problem, that I wanted to run WPI from everywhere, not only from a CD and always came across the error "..windows cannot find....", especially when I tried to run a windows command (e.g. "net use..").

Took me some time to come to a solution and so I thought, I might interest someone else. So here it is. I changed the following to the files:

--------------------------------------------------------------------------------------------------

my WPI.cmd ( basically added the REG ADD and REG DELETE line )

--------------------------------------------

@ECHO OFF

REM Determine the WPI startup path.

set wpipath=%~dp0

REM Font installation - the smooth and customizable way.

start /wait %wpipath%\common\fonts\fontinstaller.exe

REM Special registry tweak needed.

regedit /s "%wpipath%\common\wpi.reg"

REM Make WPI directory the current directory.

for /f "delims=: tokens=1" %%i in ("%wpipath%") do %%i:

cd "%wpipath%"

REM Write the actual path to the registry

REG ADD HKCU\Software\WPI /v SWPath /t REG_EXPAND_SZ /d %wpipath% /f

REM Start WPI and wait for its end

start /wait WPI.hta

REM Delete the Key from the registry

REG DELETE HKCU\Software\WPI

exit

:end

---------------------------------------------------------------------------------------------

Then in generate.js I added the following function:

-----------------------------------------------------------

function FindSWPath()

{

position = "generate.js"

swpath = WshShell.regRead("HKCU\Software\WPI\SWPath");

return swpath;

}

----------------------------------------------------------------------------------------

I also added in generate.js the following lines to the function replpath

------------------------------------------------

softwarepathwpath = FindSWPath();

rs = rs.replace(/%swpath%/gi, softwarepath);

---------------------------------------------------------------------------------------------

Now I can use in config.js for example

cmd1[pn]=['%swpath%\\Install\\Mozilla\\setup.exe -ma -ira']

Now there's nothing else for it, but to say:

WPI is really a REALLY GREAT TOOL!

Keep at it!!!

  • Author

****, windows commands doesn't really run with these changes when I start WPI.cmd with a doubleclick and I can't figure out why.

When I call WPI.cmd from commandline, everything works fine.

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.