coucou Posted August 29, 2006 Share Posted August 29, 2006 Hi,Since a year i used WPI 4.3.5 with success. Because progs/appz update, i start rebuilding a new Unattended DVD using this time WPI 5.31) Can i still launch wpi.cmd from winnt.sif?In fact, because i have 2 CD-ROM drive installed. A For-In-Do with a File/folder/volumename check searches all drives (C-Z), including a second CD drive that it may or may not have a CD in. Empty CD drives (and other drive types such as Iomega Rev) will cause errors when the Windows shell tries to check them for a file, or a label or whatever. Windows will put a dialog up on the screen and halt the installation until you respond: "'Windows No Disk' 'There is no disk in the drive. [Cancel] [Try Again] [Continue]" More info regarding CD detection HEREhere my files:cmdlines.txt[COMMANDS]"MakeMapCD.cmd"MakeMapCD.cmd:Start @Echo OFF Setlocal enableextensions:SetVars Set MapCDPath=%SystemDrive%\Install:Logic :: Capture CD drive letter inside MapCD.cmd, which can now be called. :: from any other script. If Not Exist %MapCDPath%\. MD %MapCDPath% >Nul > %MapCDPath%\MapCD.cmd Echo. @Echo Off >> %MapCDPath%\MapCD.cmd Echo. Set CDROM=%~d0:End EndLocal Goto :EOFwpi.cmd:Start @Echo Off Setlocal :SetVars :: After having called MakMapCD.cmd from CmdLines.txt, the next line should :: be executed in EVERY command script that requires %CDROM%. Call %SystemDrive%\Install\MapCD.cmd:Logic @ECHO OFF :: REM set wpipath=%~dp0 set wpipath=%CDROM%\Software\WPI :: REM Hide this command window. %wpipath%\Tools\cmdow.exe @ /hid :: 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 "%CDROM%" :: REM Start WPI and wait for its end start /wait %CDROM%\Software\WPI\WPI.hta :: REM Cleaning up the desktop. del /s/q "%userprofile%\desktop\*.lnk" :: REM Rebooting the sytem to finalize the installation process. :: --shutdown.exe -r -f -t 30 -c "To finish installations WPI will now reboot in 30 sec...":End Endlocal Goto :EOF2) Does DotNetFramework2 should be installed before launching WPI 5.3?TNX for yr helpcoucou Link to comment Share on other sites More sharing options...
larciel Posted August 29, 2006 Share Posted August 29, 2006 I can confirm that you do not need to install .net2.0 before launching wpi. I install .net with WPI Link to comment Share on other sites More sharing options...
coucou Posted August 29, 2006 Author Share Posted August 29, 2006 TNX for yr reply larciel Anyone can help with my 1st question (wpi.cmd from winnt.sif)???Regardscoucou Link to comment Share on other sites More sharing options...
sadicq Posted August 29, 2006 Share Posted August 29, 2006 It will work.However, no need for the :: REM Special registry tweak needed. regedit /s "%wpipath%\common\wpi.reg" Link to comment Share on other sites More sharing options...
coucou Posted August 30, 2006 Author Share Posted August 30, 2006 TNX sadicq for this enlighten.BTW, as far as i understand from yr conclusuon of THIS POST you recommend "to NOT use winnt.sif because RunOnce was not doing its job".Do I undersatnd well?Am I concerned (see my files above)? Regardscoucou Link to comment Share on other sites More sharing options...
sadicq Posted August 30, 2006 Share Posted August 30, 2006 You can use it as it does it's job pretty well. That post is exactly what I used for the last 10 DVDs or so.Now I call some exes from the runonceex, but that's my way anyway.There's no other problem with the migration. Link to comment Share on other sites More sharing options...
coucou Posted August 30, 2006 Author Share Posted August 30, 2006 Sorry for bothering you again, i want 100% understanding.You can use it as it does it's job pretty well. Are you speaking about your files HERE or my files here above?That post is exactly what I used for the last 10 DVDs or so.Now I call some exes from the runonceex, but that's my way anyway.May you let me know how look's the wpi.cmd file called from yr RunOnceEx.cmd.Regardscoucou Link to comment Share on other sites More sharing options...
sadicq Posted August 30, 2006 Share Posted August 30, 2006 Both of them are working.Actually WPI 5.0 introduces new features, trying to maintain backwards compatibility.The content of my wpi.cmd is pretty much like yours is, but unfortunatelly I can't post it as I'm not at home at the moment.My advice is to keep your current layout and remove that reg file. That's it.It should work flawlessly. Link to comment Share on other sites More sharing options...
coucou Posted August 31, 2006 Author Share Posted August 31, 2006 TNX sadicq,I'll test it next week and let you knowcoucou Link to comment Share on other sites More sharing options...
coucou Posted September 4, 2006 Author Share Posted September 4, 2006 Hi, As promised, here the feedback.I got successs installing my dvd as my way here above when wpi.reg file was suppressed.Regardscoucou 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