April 16, 200422 yr Reading through the ref.chm file, I found this interesting section regarding DetachedProgram execution via [GuiUnattended] section of winnt.sifI'm going to play around with this on the weekend, but perhaps someone already knows?DetachedProgram = "%SYSTEMDRIVE%\install\wpi.cmd"wpi.cmd@start %systemdrive%\install\wpi\WPI.htaIf I am guessing correctly, this will execute my WPI installer, and run it OVER THE TOP of the installation program? As in, WPI comes up on the screen at first GUI Mode run time and setup is still running in the background?If this is correct, my cmdlines.txt could run the WPI generated install.cmd? Theoretically, if WPI ran at the start of GUI mode setup, as long as you didn't leave it on the screen for half an hour it would be well and truly finished by the time cmdlines.txt was run?
April 16, 200422 yr Functionality is very limited at the T-39 minute stage where DetachedProgram is executed. .cmd files will not work.Some people use this to extract a compressed rar sfx archive so they can copy the drivers to the HDD before the Detecting Hardware phase.I wouldn't recommend installing applications at this time.
April 16, 200422 yr Author .cmd files work, because I made my DetachedProgram = "%systemdrive%\install\wpi.cmd"WPI.CMD:start %systemdrive%\install\wpi\wpi.htaand that executed. At T-39 minute, it brought up an "Open With" dialog box, asking which program I would like to use to execute wpi.hta, but Microsoft Application Host wasn't in the list (and obviously no registry entries to set .hta files as applications).... At first I stuffed around adding the required registry keys to the hive files, but I couldn't get the syntax correct, so then I stuffed around with a batch file that would add the required registry settings, something like this:WPI.CMD@echo offif %systemdrive% == C: goto :c_driveif %systemdrive% == D: goto _drivegoto :error:c_drivereg /import %systemdrive%\install\imports\import-c.reggoto :end_drivereg /import %systemdrive%\install\imports\import-d.reggoto :end:errorecho Must have been too lazy to add more drives. %systemdrive% is not supported.goto :veryend:endstart %systemdrive%\install\wpi\wpi.hta:veryendi dumped mshta.exe and reg.exe in my $$\system32 folder.... for the import-c.reg, import-d.reg etc, I went into regedit and searched for all ".hta", "htafile" and "mshta.exe" references I could find and exported what looked like the correct stuff, I just changed the drive letter for each of the registry files... however, this didn't fix the problem....in the end it didn't work, but i felt i was getting close... several times the command prompt window would stay up on the screen but the .hta file would not execute...
April 17, 200422 yr How odd. I tried it myself a while back with just an ECHO This is [DetachedProgram] followed by a pause and exit, but it never appeared.
April 17, 200422 yr Author i can tell you that pause definitely doesnt work.... i was doing similar to you to see what worked...try one that does thisstart mshta wpi.htaand you get a CMD window stay on the screen until you close it off, with the Title being "mshta wpi.hta" it just sits there forever
April 17, 200422 yr hmmh, so this could be used for the $OEM$\ folders ?because putting those inside an sfx would save some valuable megabytes from my CD
April 19, 200422 yr I've tried to pack my Install and Driver folders, worked perfect when running Windows, but in Setup it didn't work at all...WinRAR_SFX_archive.exe /Sworks in Windowsbut not in setup...But Prahatpml (sorry it isn't correct, but your name is that difficult, you know??) told me it IS possible when you'd use 7ZIP... Try it, I'd say...
April 19, 200422 yr I'm using a 7zip autoextract file to unpack my drivers to the systemdrive @ T-39.[GuiUnattended] ... DetachedProgram="%systemdrive%\drivers\drivers.exe" Arguments="-y /q /r:n" ...drivers.exe is situated in <cdrom>\$OEM$\$1\drivers
April 20, 200422 yr Author big_gie is correct...you cannot set your DetachedProgram="program switch"it has to beDetachedProgram="program.exe"Arguments="switch"so yours would look like:[GuiUnattended] DetachedProgram="WinRAR_SFX_archive.exe" Arguments="/S"
May 6, 200422 yr It's also good to note that WinRAR SFX archives can be made to extract completely silently with no switches.
May 17, 200422 yr im sorry guys if im slow to follow, does this simply mean i can have my $OEM$\drivers compressed and be extracted before the detecting hardware phase starts?
May 18, 200422 yr tried it on my winnt.sif. placed the following code in it:[GuiUnattended]AdminPassword=*EncryptedAdminPassword=NOOEMSkipRegional=1TimeZone=215OemSkipWelcome=1DetachedProgram="%systemdrive%\drivers\drivers.exe"Arguments="/S"but it didn't worked as mentioned.btw, my cd (G:\$OEM$\$1\Drivers) contained the drivers.exe RAR-SFX compressed archive. i wonder what part have i missed or its just winrar sfx doesn't work in this scenario?
May 18, 200422 yr tried it on my winnt.sif. placed the following code in it:[GuiUnattended]AdminPassword=*EncryptedAdminPassword=NOOEMSkipRegional=1TimeZone=215OemSkipWelcome=1DetachedProgram="%systemdrive%\drivers\drivers.exe"Arguments="/S"but it didn't worked as mentioned.btw, my cd (G:\$OEM$\$1\Drivers) contained the drivers.exe RAR-SFX compressed archive. i wonder what part have i missed or its just winrar sfx doesn't work in this scenario?You're calling it wrong. Call it with the same syntax as cmdlines.txt.
Create an account or sign in to comment