cjgaus Posted September 2, 2006 Share Posted September 2, 2006 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 ??? Link to comment Share on other sites More sharing options...
wixfigura Posted September 2, 2006 Share Posted September 2, 2006 Take this one ( runonceex.cmd ):for /f "delims=: tokens=1" %%i in ("%~dp0") do set drive=%%i:set wpipath=%drive%\wpiSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY%\996 /V 1 /D "%wpipath%\WPI.hta" /f Link to comment Share on other sites More sharing options...
Inferi0r Posted October 21, 2006 Share Posted October 21, 2006 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? Link to comment Share on other sites More sharing options...
pmshah Posted October 22, 2006 Share Posted October 22, 2006 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. Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted October 22, 2006 Share Posted October 22, 2006 Or you can simply use the $oem$ archive that is posted for this exact same kind of purpose! Link to comment Share on other sites More sharing options...
gbmolina Posted November 10, 2006 Share Posted November 10, 2006 (edited) Take this one ( runonceex.cmd ):for /f "delims=: tokens=1" %%i in ("%~dp0") do set drive=%%i:set wpipath=%drive%\wpiSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY%\996 /V 1 /D "%wpipath%\WPI.hta" /fhi 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... can you please tell me? thanks Edited November 10, 2006 by gbmolina Link to comment Share on other sites More sharing options...
wixfigura Posted November 11, 2006 Share Posted November 11, 2006 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%\wpiIf you know the path, and it everytime the same, you could print maybed:\wpi\wpi.htaBut 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!! Link to comment Share on other sites More sharing options...
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