September 2, 200619 yr 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 ???
September 2, 200619 yr 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
October 21, 200619 yr 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?
October 22, 200619 yr 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.
October 22, 200619 yr Or you can simply use the $oem$ archive that is posted for this exact same kind of purpose!
November 10, 200619 yr 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, 200619 yr by gbmolina
November 11, 200619 yr 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!!
Create an account or sign in to comment