Jump to content

Recommended Posts

Posted

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:


Posted

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.

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...

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?!

:)

Posted

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...??

Posted

Okay - the sfx idea works when implemented by itself in RunOnceEx -

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!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...