Help - Search - Members - Calendar
Full Version: Runonce Ex In Stages
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   
Google Internet Forums Unattended CD/DVD Guide
MAVERICKS CHOICE
Ive just finished breaking my runonce ex batch into 15 prog segments,but have noticed in VPC it seems to execute the progs @T12 & not the not the next reboot??
Is this a prob in VPC or normal just the rest of the install appears to hang while these progs install??
My first part of runonecex is here:
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 "Installing Applications" /f

REG ADD %KEY%\001 /VE /D "Lavasoft Ad-Aware SE Personal 1.0.5.0." /f
REG ADD %KEY%\001 /V 1 /D "%CDROM%\Software\Adware\adaware.exe aawse.exe" /f

REG ADD %KEY%\005 /VE /D "Adobe Reader 7" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\Software\Adobe\acroread7.exe" /f
REG ADD %KEY%\005 /V 2 /D "%CDROM%\Software\Adobe\Adobe7.cmd" /f

REG ADD %KEY%\010 /VE /D "AdminTools pack 2003" /f
REG ADD %KEY%\010 /V 1 /D "%CDROM%\Software\Admintools\adminpak.msi /Qn" /f

REG ADD %KEY%\015 /VE /D "AVG Ver7.0 Free" /f
REG ADD %KEY%\015 /V 1 /D "%CDROM%\Software\AVG7\avg70free_300a419.exe /HIDE  /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED" /f

REG ADD %KEY%\020 /VE /D "Autoit Ver3.0" /f
REG ADD %KEY%\020 /V 1 /D "%CDROM%\Software\Autoit\autoit.exe" /f

REG ADD %KEY%\025 /VE /D "ATI Drivers" /f
REG ADD %KEY%\025 /V 1 /D "%CDROM%\Software\ATI\setup /K" /f

REG ADD %KEY%\030 /VE /D "Cool Codecs" /f
REG ADD %KEY%\030 /V 1 /D "%CDROM%\Software\codecs\Codecs.msi /qn" /f

REG ADD %KEY%\035 /VE /D "Clone CD CD4331" /f
REG ADD %KEY%\035 /V 1 /D "%CDROM%\Software\CloneCD\CloneCD.exe" /f

REG ADD %KEY%\040 /VE /D "Clone DVD" /f
REG ADD %KEY%\040 /V 1 /D "%CDROM%\Software\Clonedvd\CLONEDVD.EXE" /f
REG ADD %KEY%\040 /V 2 /D "REGEDIT /S %CDROM%\Software\Clonedvd\Clonedvd.reg" /f

REG ADD %KEY%\045 /VE /D "DVD Shrink 3.2" /f
REG ADD %KEY%\045 /V 1 /D "%CDROM%\Software\DVDShrink\dvdshrink32setup.exe /silent" /f

REG ADD %KEY%\050 /VE /D "Everest Home" /f
REG ADD %KEY%\050 /V 1 /D "%CDROM%\Software\Everest\everesthome151.exe /SILENT /SP-" /f

REG ADD %KEY%\055 /VE /D "Irfanview 392" /f
REG ADD %KEY%\055 /V 1 /D "%CDROM%\Software\Iview\IVIEW.exe" /f

REG ADD %KEY%\060 /VE /D "Journal Viewer" /f
REG ADD %KEY%\060 /V 1 /D "%CDROM%\Software\Journal\Journal.msi /qn" /f

REG ADD %KEY%\065 /VE /D "7 Zip" /f
REG ADD %KEY%\065 /V 1 /D "%CDROM%\Software\7Zip\7z414b.exe /S" /f

REG ADD %KEY%\070 /VE /D "Metapad 3.5LE Notepad replacement" /f
REG ADD %KEY%\070 /V 1 /D "%CDROM%\Software\metapad\metapad3.5.exe" /f

REG ADD %KEY%\075 /VE /D "Moviemaker" /f
REG ADD %KEY%\075 /V 1 /D "%CDROM%\Software\MovieMaker\mm20.msi /qn" /f

REG ADD %KEY%\080 /VE /D "MYOB Accounting package V14" /f
REG ADD %KEY%\080 /V 1 /D "%CDROM%\Software\MYOB\setup.exe /s/v/qn" /f

REG ADD %KEY%\085 /VE /D "Nero 6606 OEM" /f
REG ADD %KEY%\085 /V 1 /D "%CDROM%\Software\Nero\nero6606.exe" /f

REG ADD %KEY%\089 /VE /D "Microsoft Net framework SP1" /f
REG ADD %KEY%\089 /V 1 /D "%CDROM%\Software\Net\netfxsp1.exe" /f

REG ADD %KEY%\090 /VE /D "Nuhi's NLite 99.7Bi" /f
REG ADD %KEY%\090 /V 1 /D "%CDROM%\Software\NLite\nlite0997bi.exe /SILENT" /f

rundll32.exe iernonce.dll,RunOnceExProcess


Anyone experienced this?
Astalavista
y dont u just use wpi?

download the attachment for u.
Alanoll
CODE
rundll32.exe iernonce.dll,RunOnceExProcess

Kick starts the process.

You could
A. Have a master RunOnceEX that then calls each segment of RunOnceEX in turn
B. Put them all in GUIRunOnce and have the same effect as just One after the other but no master file.

@Astalavista
WPI is not the end all answer...
Astalavista
I am only asking a question.
MAVERICKS CHOICE
QUOTE (Astalavista @ Feb 17 2005, 05:14 PM)
y dont u just use wpi?

download the attachment for u.
*


Thanks Guys for quick answers
Alanoll with B is it just a matter of calling RunoncEX1, then RunoncEX2 , etc from guirunonce??
BritishBulldog
your best bet would be to have multiple files RunOnceEx.cmd, RunOnceEx2.cmd, RunOnceEx3.cmd

the fist would be as above but the last line out
RunOnceEx.cmd
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 "Installing Applications" /f

REG ADD %KEY%\001 /VE /D "Lavasoft Ad-Aware SE Personal 1.0.5.0." /f
REG ADD %KEY%\001 /V 1 /D "%CDROM%\Software\Adware\adaware.exe aawse.exe" /f

REG ADD %KEY%\005 /VE /D "Adobe Reader 7" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\Software\Adobe\acroread7.exe" /f
REG ADD %KEY%\005 /V 2 /D "%CDROM%\Software\Adobe\Adobe7.cmd" /f

.......

REG ADD %KEY%\090 /VE /D "Nuhi's NLite 99.7Bi" /f
REG ADD %KEY%\090 /V 1 /D "%CDROM%\Software\NLite\nlite0997bi.exe /SILENT" /f

REG ADD %KEY%\099 /VE /D "RunOnceEx two" /f
REG ADD %KEY%\099 /V 1 /D "%CDROM%\Software\RunOnceEx\RunOnceEx2.cmd" /f

but with the last lines in


all other RunOnceEx files will look like this
RunOnceEx2.cmd,RunOnceEx3.cmd etc...
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 "Installing Applications" /f

REG ADD %KEY%\001 /VE /D "Lavasoft Ad-Aware SE Personal 1.0.5.0." /f
REG ADD %KEY%\001 /V 1 /D "%CDROM%\Software\Adware\adaware.exe aawse.exe" /f

........

REG ADD %KEY%\090 /VE /D "Nuhi's NLite 99.7Bi" /f
REG ADD %KEY%\090 /V 1 /D "%CDROM%\Software\NLite\nlite0997bi.exe /SILENT" /f

REG ADD %KEY%\099 /VE /D "RunOnceEx three" /f
REG ADD %KEY%\099 /V 1 /D "%CDROM%\Software\RunOnceEx\RunOnceEx3.cmd" /f

rundll32.exe iernonce.dll,RunOnceExProcess


only changing the call up for the next RunOnceEx. The rundll line will then automatically start the process.

So you only need to start the first RunOnceEx from guirunonce!!!
this will call up RunOnceEx2.cmd.
RunOnceEx2.cmd will call up RunOnceEx3.cmd and so on
durex
@Bulldog
Right, but wouldnt this method leave you with 3 seperate RunOnce boxes on the screen at the same time?
Alanoll
QUOTE (MAVERICKS CHOICE @ Feb 17 2005, 12:48 AM)
QUOTE (Astalavista @ Feb 17 2005, 05:14 PM)
y dont u just use wpi?

download the attachment for u.
*


Thanks Guys for quick answers
Alanoll with B is it just a matter of calling RunoncEX1, then RunoncEX2 , etc from guirunonce??
*


If you have RunOnceEX copied to the hdd, and you have that rundll32 command at the bottom of each one, yes cool.gif
MAVERICKS CHOICE
Thanks Guys I will get moving on it.
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.