Clint Posted July 14, 2006 Share Posted July 14, 2006 (edited) When I run the Runonceex.cmd that comes with the latest WPI in win2000 no entry are applied in Runonceex....in XP it shows up alright...Code looks like this:cmdow @ /HID@ECHO OFFfor /f "delims=: tokens=1" %%i in ("%~dp0") do set drive=%%i:set wpipath=%drive%\wpiSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY%\999 /V 1 /D "%wpipath%\WPI.hta" /fEXITI've run it on a W2K SP4, and still nothing happens...no entry..nothing....do the SET KEY and REG ADD commands not work now suddenly??..am I still sleeping? Edited July 14, 2006 by Clint Link to comment Share on other sites More sharing options...
Clint Posted July 15, 2006 Author Share Posted July 15, 2006 Never mind, I took a different approach to it...now solved. Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted July 15, 2006 Share Posted July 15, 2006 I would be interested to know your solution... Link to comment Share on other sites More sharing options...
Clint Posted July 15, 2006 Author Share Posted July 15, 2006 (edited) I use WPI_Lite 1.2I dropped WPI.CMD in I386: (add entry in txtsetup.inf)WPI.CMD:@ECHO OFFREM Example, how to look for CDROM-drive. Must have a file to identify in its root (like CDROM_NT.5 or WPI.ico).for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\CDROM_NT.5 set CDROM=%%i:echo Found CD-Rom as drive %CDROM%REM Determine the WPI startup path. REM if wpi should run off the cd the replace %~dp0 with %cdrom%.set wpipath=%CDROM%\WPI\REM Hide this command window."%wpipath%common\cmdow.exe" @ /hidREM 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 Start WPI and wait for its endstart /wait %windir%\system32\mshta.exe "%wpipath%\wpi.hta" REM Undo registry tweak.regedit /s %wpipath%common\undo.regexit:endIE has been ripped out so I called it with "%wpipath%\wpi.hta" from mshta.exe and it worked fine.I set up wpi.cmd to run @ runonceex from WPII.INF during T13 stage (for me only add the line to already existing .INF that I run there)WPII.INF:[version]signature="$WINDOWS NT$";Calls wpi.cmd from systemroot[DefaultInstall]AddReg=add.reg[add.reg]HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\ZZZ",111,,"%11%\wpi.cmd"thats it..now if someone could give me a hint on this I would be a happy camper :http://www.msfn.org/board/index.php?showtopic=78753&hl=Thanks! Edited July 15, 2006 by Clint Link to comment Share on other sites More sharing options...
Clint Posted July 17, 2006 Author Share Posted July 17, 2006 I would be interested to know your solution...Any comment..? Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted July 17, 2006 Share Posted July 17, 2006 Thank you for the advice... Link to comment Share on other sites More sharing options...
Clint Posted July 17, 2006 Author Share Posted July 17, 2006 I'm glad I could contribute, thanks for a great util 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