Help - Search - Members - Calendar
Full Version: Question about .cmd file installs
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   
Google Internet Forums Unattended CD/DVD Guide
PcGeek
I have been building my unattended XP cd with applications. I am using the RunOnceEx method of installing the programs and it is working fine - except that upon the final reboot I use the RunOnceEx method to open a program on boot and I can't get the "Installing Applications" window to close after opening the program. The same thing happens with just a basic .cmd or .bat file when used to open a program...the window wont close, and the system will not continue to load, until the progam I want opened is terminated. Is there a way to simply open the program and close the .cmd, .bat, or the "installing applications" window immediately afterwords, without exiting or closing the program?

blink.gif
asbsamsf
show your RunOnceEx.cmd
blink.gif
Astalavista
did u read the new guide at www.msfn.org?
PcGeek
This is the latest.....This is a .cmd file that is set to run in runonceex (second boot) after the initial programs are installed on first boot.

CODE
cmdow @ /HID
@echo off

IF EXIST D:\CD.txt set CDROM=D:
IF EXIST E:\CD.txt set CDROM=E:
IF EXIST F:\CD.txt set CDROM=F:
IF EXIST G:\CD.txt set CDROM=G:
IF EXIST H:\CD.txt set CDROM=H:
IF EXIST I:\CD.txt set CDROM=I:
IF EXIST J:\CD.txt set CDROM=J:


SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Register Sygate Personal Firewall Pro" /f

REG ADD %KEY%\200 /VE /D "Opening PSPF ******" /f
REG ADD %KEY%\200 /V 1 /D "%CDROM%\Software\sygate\***gen.exe" /f

EXIT


I have also tried it this way...

CODE
REG ADD %KEY%\200 /V 1 /D "CMD /C %CDROM%\Software\Sygate\***gen.exe" /f


I realize this seems stupid but it really is driving me nuts! There has to be a way to do this - how complicated can closing a window be?!

smile.gif
PcGeek
And yes, I have been through the guide. I have been playing with building unattended install cd's for a while, and I wanted to try the RunOnceEx method this time.

I will have to go take another look...maybe I missed something...??
asbsamsf
try to but "***gen.exe" in rar-sfx with comment
CODE
Setup=***gen.exe
TempMode
Silent=2
Overwrite=1

so winrar will send a message "exit"
PcGeek
Okay - the sfx idea works when implemented by itself in RunOnceEx -

CODE
cmdow @ /HID
@echo off

IF EXIST D:\CD.txt set CDROM=D:
IF EXIST E:\CD.txt set CDROM=E:
IF EXIST F:\CD.txt set CDROM=F:
IF EXIST G:\CD.txt set CDROM=G:
IF EXIST H:\CD.txt set CDROM=H:
IF EXIST I:\CD.txt set CDROM=I:
IF EXIST J:\CD.txt set CDROM=J:


SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEX

REM REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REM REG ADD %KEY%\060 /VE /D "Sygate Registration on Reboot" /f

REG ADD %KEY%\060 /V 1 /D "%CDROM%\Software\Sygate\keygen.sfx.exe" /f

EXIT



Thanks for the idea asbsamsf!
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.