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.

code for wpi 5 to run in runonce on nlite

Featured Replies

i was wondering what the actual command was to run wpi with runonce on nlite a friend suggested %source%\<path>\wpi.hta. do i change the path ???

Take this one ( runonceex.cmd ):

for /f "delims=: tokens=1" %%i in ("%~dp0") do set drive=%%i:

set wpipath=%drive%\wpi

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY%\996 /V 1 /D "%wpipath%\WPI.hta" /f

  • 1 month later...

sorry its a very noob question, but how do i set those 4 lines to one line so i can it set in nlite runonce?

nLite by far is not a "do all" for everyone. You need to tweak the iso a little.

Once you are finished with the nLite process you can extract the iso & make necessary chanees to the run_once file. Simply recompile with any good iso creating software & you are all done. You can extract the boot sector using something like bbie or the iso software itself.

  • 3 weeks later...
Take this one ( runonceex.cmd ):

for /f "delims=: tokens=1" %%i in ("%~dp0") do set drive=%%i:

set wpipath=%drive%\wpi

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY%\996 /V 1 /D "%wpipath%\WPI.hta" /f

hi there, I quick question. once you save this code you´ve posted as "runonceex.cmd" in the $OEM$ folder of the installation you created with nLite, what exatly do you type in the runonce box of nLite? just "runonceex.cmd", or "$OEM$/runonceex.cmd"

I searched the whole forum trying to find an answer to this question and didn´t find it... :wacko: can you please tell me? thanks

Edited by gbmolina

You cannot write it ino the runoncebox of nlite, cause the CDROM path is not defined. This line say the OS which drive the installing drive is.

for /f "delims=: tokens=1" %%i in ("%~dp0") do set drive=%%i:

set wpipath=%drive%\wpi

If you know the path, and it everytime the same, you could print maybe
d:\wpi\wpi.hta

But installpath could change if you have more than one HDD or 2 CD drives.

The .cmd searches for the path and set an entry in the registry to start wpi before the first logon.

So the best is to do everything else with nlite if you want so, and write the wpi settings by hand. Its easyer as you think!!

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.