Help - Search - Members - Calendar
Full Version: Too many installs to be seen on the Runonce list?
MSFN Forums > Unattended Windows Discussion & Support > Application Installs
Pages: 1, 2

   
Google Internet Forums Unattended CD/DVD Guide
Mikep7779
Too many installs to be seen on the Runonce list?

How can i solve this?

Pic enclosed
Click to view attachment
muiz
Is this in vmware or a real machine?

Look in your winnt.sif file

CODE
[Display]
      BitsPerPel = 32
      Xresolution = 1280
      Yresolution = 1024
      Vrefresh= 60
      AutoConfirm=1


Make sure you fill in your own settings.
gelome
i get the same thing as well...i have abt 30 apllications.....ive tried divinding it into multimedia, internet, system, etc....and calling these runonce files from the answer file but to no avail...something goes drastically wrong.
OrcoXP
Run your CMD file from CMDLines.txt

I have attached my runonce file as an example

Just rename it to .cmd
diesel_98a
i run about 20 installs, 6-7 of them are batch files, i use them to install the small stuff like wallpapers, user acct picts, & other misc things, in each batch file i have about 5-10 items, i am actually getting ready to revamp my install so the last batch file be4 cleanup will have about 10-15 installs..........
gunsmokingman
Have you thought of breaking the install of apps into separate cmd that are installed by the runonce method.
Example of what I mean, then inside of each cmd have all the app install.
QUOTE
for %%i in (C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) do if exist %%i\SETUP.exe set CDROM=%%i

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY% /V TITLE /D "The Install Section" /f

REG ADD %KEY%\000 /VE /D "Preparing Installation..." /f
REG ADD %KEY%\001 /VE /D "Application 001" /f
REG ADD %KEY%\001 /V 1 /D "%CDROM%Apps\App1.cmd" /f

REG ADD %KEY%\003 /VE /D "Application 002" /f
REG ADD %KEY%\003 /V 1 /D "%CDROM%Apps\App2.cmd " /f

REG ADD %KEY%\005 /VE /D "Application 003" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%Apps\App3.cmd" /f
Mikep7779
QUOTE (OrcoXP @ Nov 8 2005, 11:41 PM) *
Run your CMD file from CMDLines.txt

I have attached my runonce file as an example

Just rename it to .cmd


Is there a guide online so i can readup on doing that? (Spliting it into parts)
drscouse
I have several runoncex windows, one for apps, one for regtweaks. one for cleanup.... I just called it runoncex2, and call it from the end of the original runonceex...

Once windows is installed, ROE runs, installs hotifxes, reassings drive letters, then reboots, then runoncex2 runs, installs apps, then a new roe window opens to install regtweaks, and a final one to cleanup, its just a case of calling the roe procedure again.


I will be happy to provide more info, but am at work at mo, and dont have access to the files...

This is my runonceex2.cmd, which has multiple windows, so it is only as big as I want it!!!!

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

for %%a in (z y x w v u t s r q p o n m l k j i h g f e d c) do if exist %%a:\I386 (
set CDROM=%%a:
goto install
)

:install

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

REG ADD %KEY%\014 /VE /D "WinRAR" /f
REG ADD %KEY%\004 /V 01 /D "\"%CDROM%\Software\WinRAR\WinRAR.exe\" /s" /f

REG ADD %KEY%\015 /VE /D "UltraISO" /f
REG ADD %KEY%\015 /V 01 /D "\"%CDROM%\Software\UltraISO\UltraISO.exe\" /VERYSILENT /SP-" /f



rundll32.exe iernonce.dll,RunOnceExProcess
REG ADD %KEY% /V TITLE /D "Registry & Cleanup" /f



REG ADD %KEY%\000 /VE /D "UltraISO" /f
REG ADD %KEY%\000 /V 01 /D "regedit /s \"%CDROM%\Software\UltraISO\uisoREG.reg\"" /f

REG ADD %KEY%\001 /VE /D "ExplorerXP" /f
REG ADD %KEY%\001 /V 01 /D "regedit /s \"%CDROM%\Software\ExplorerXP\expREG.reg\"" /f

REG ADD %KEY%\002 /VE /D "Download Manager" /f
REG ADD %KEY%\002 /V 01 /D "regedit /s \"%CDROM%\Software\Free DownMan\fdmREG.reg\"" /f

REG ADD %KEY%\003 /VE /D "WinRAR" /f
REG ADD %KEY%\003 /V 01 /D "regedit /s \"%CDROM%\Software\WinRAR\wrarREG.reg\"" /f


rundll32.exe iernonce.dll,RunOnceExProcess
REG ADD %KEY% /V TITLE /D "Custom Settings" /f



REG ADD %KEY%\000 /VE /D "Restore Manual Logon" /f
REG ADD %KEY%\000 /V 01 /D "regedit /s \"%WINDIR%\system32\manlogon.reg\"" /f

REG ADD %KEY%\001 /VE /D "Remove PageFile" /f
REG ADD %KEY%\001 /V 01 /D "%systemdrive%\removePF_D.cmd" /f


REG ADD %KEY%\050 /VE /D "Clean & Reboot" /f
REG ADD %KEY%\050 /V 5 /D "shutdown.exe -r -f -t 60 -c \"#FINAL BOOT SEQUENCE#\"" /f

rundll32.exe iernonce.dll,RunOnceExProcess
EXIT


Just by inserting
QUOTE
rundll32.exe iernonce.dll,RunOnceExProcess
and starting the numbering sequence off agian, this opens up a new ROE window......

I personally use 2 ROE.... and call the second one, from the end of the first one, which runs after a reboot... this is my original runonceex.cmd...

QUOTE
cmdow @ /HID

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

for %%a in (z y x w v u t s r q p o n m l k j i h g f e d c) do if exist %%a:\I386 (
set CDROM=%%a:
goto install
)

:install
REG ADD %KEY% /V TITLE /D "Installing Drivers & Hotfixes" /f

REG ADD %KEY%\000 /VE /D "ATi Control Panel" /f
REG ADD %KEY%\000 /V 01 /D "\"%CDROM%\Software\ATi Control Panel\Setup.exe\" /k" /f

REG ADD %KEY%\001 /VE /D "Nvidia Audo Mixer" /f
REG ADD %KEY%\001 /V 01 /D "\"%CDROM%\Software\Nvidia Audo Mixer\Setup.exe\" /s" /f

REG ADD %KEY%\002 /VE /D "AutoPatcher Sept2005" /f
REG ADD %KEY%\002 /V 01 /D "\"%CDROM%\Software\AutoPatcher\AutoPatcher.exe\" /noeula /unattend:t1 /noreboot /defaults:%CDROM%\Software\AutoPatcher\defaults.ini" /f

REG ADD %KEY%\003 /VE /D "UPHClean (WinService)" /f
REG ADD %KEY%\003 /V 01 /D "\"%CDROM%\Software\UPHClean\uphclean.msi\" /quiet /passive" /f

REG ADD %KEY%\004 /VE /D "ReAssign Drives" /f
REG ADD %KEY%\004 /V 01 /D "%systemdrive%\mapdrive.cmd ENU" /f

REG ADD %KEY%\005 /VE /D "Moving Pagefile" /f
REG ADD %KEY%\005 /VE /D " " /f
REG ADD %KEY%\005 /V 01 /D "%systemdrive%\createPF_X.cmd" /f
REG ADD %KEY%\005 /V 02 /D "%systemdrive%\deletePF_C.cmd" /f

REG ADD %KEY%\010 /VE /D "##REBOOT REQUIRED##" /f
REG ADD %KEY%\010 /VE /D " " /f
REG ADD %KEY%\010 /V 01 /D "%WINDIR%\system32\ShutDown.cmd" /f

REG ADD %KEY%\015 /VE /D "##INSTALL APPS##" /f
REG ADD %KEY%\015 /VE /D " " /f
REG ADD %KEY%\015 /V 01 /D "%WINDIR%\system32\runonceex2.cmd" /f




rundll32.exe iernonce.dll,RunOnceExProcess
EXIT
muiz
so if i want 4x runonce , i have to reboot 4x ?
Mikep7779
Thats the way it sounds.
drscouse
No.. thats not what I said... I personally reboot once, then it goes to the second runonceex....

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

for %%a in (z y x w v u t s r q p o n m l k j i h g f e d c) do if exist %%a:\I386 (
set CDROM=%%a:
goto install
)

:install

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

REG ADD %KEY%\014 /VE /D "WinRAR" /f
REG ADD %KEY%\004 /V 01 /D "\"%CDROM%\Software\WinRAR\WinRAR.exe\" /s" /f

REG ADD %KEY%\015 /VE /D "UltraISO" /f
REG ADD %KEY%\015 /V 01 /D "\"%CDROM%\Software\UltraISO\UltraISO.exe\" /VERYSILENT /SP-" /f



rundll32.exe iernonce.dll,RunOnceExProcess
REG ADD %KEY% /V TITLE /D "Registry & Cleanup" /f



REG ADD %KEY%\000 /VE /D "UltraISO" /f
REG ADD %KEY%\000 /V 01 /D "regedit /s \"%CDROM%\Software\UltraISO\uisoREG.reg\"" /f

REG ADD %KEY%\001 /VE /D "ExplorerXP" /f
REG ADD %KEY%\001 /V 01 /D "regedit /s \"%CDROM%\Software\ExplorerXP\expREG.reg\"" /f

REG ADD %KEY%\002 /VE /D "Download Manager" /f
REG ADD %KEY%\002 /V 01 /D "regedit /s \"%CDROM%\Software\Free DownMan\fdmREG.reg\"" /f

REG ADD %KEY%\003 /VE /D "WinRAR" /f
REG ADD %KEY%\003 /V 01 /D "regedit /s \"%CDROM%\Software\WinRAR\wrarREG.reg\"" /f


rundll32.exe iernonce.dll,RunOnceExProcess
REG ADD %KEY% /V TITLE /D "Custom Settings" /f



REG ADD %KEY%\000 /VE /D "Restore Manual Logon" /f
REG ADD %KEY%\000 /V 01 /D "regedit /s \"%WINDIR%\system32\manlogon.reg\"" /f

REG ADD %KEY%\001 /VE /D "Remove PageFile" /f
REG ADD %KEY%\001 /V 01 /D "%systemdrive%\removePF_D.cmd" /f


REG ADD %KEY%\050 /VE /D "Clean & Reboot" /f
REG ADD %KEY%\050 /V 5 /D "shutdown.exe -r -f -t 60 -c \"#FINAL BOOT SEQUENCE#\"" /f

rundll32.exe iernonce.dll,RunOnceExProcess
EXIT



Just by inserting
rundll32.exe iernonce.dll,RunOnceExProcess
and starting the numbering sequence off agian, this opens up a new ROE window......


MY pc only reboots once, after installing hotfixes.... my first roe window

QUOTE
REG ADD %KEY% /V TITLE /D "Applications" /f


my second window

QUOTE
rundll32.exe iernonce.dll,RunOnceExProcess
REG ADD %KEY% /V TITLE /D "Registry & Cleanup" /f


and my final windows, all from same script, without rebooting.....

QUOTE
rundll32.exe iernonce.dll,RunOnceExProcess
REG ADD %KEY% /V TITLE /D "Custom Settings" /f
muiz
but you have 2 runonce , what if i want 4 ?
drscouse
I only have 2 ROE, cos I choose to reboot after installing hotfixes.. my second ROE has 3 windows, and does not reboot after each one...

If you have one ROE, all you need to do is

QUOTE
Just by inserting
rundll32.exe iernonce.dll,RunOnceExProcess
and starting the numbering sequence off agian, this opens up a new ROE window......
You DO NOT need to rebbot at all, that is just my personal preference... all can be done from a single ROE file, just add that line above, and start of the numbering sequence again...



It is the


QUOTE
rundll32.exe iernonce.dll,RunOnceExProcess
that initiates a new ROE window...

If you want 4, and want to reboot after each of them, you will need to call the appropiate file at the end of each one, as in my case, the last entry in my runonceex.cmd is to execute runonceex2.cmd and so on...


I have highlighted the sections where a new window will open, notice the numbering starts from 00
again...

QUOTE
rundll32.exe iernonce.dll,RunOnceExProcess
REG ADD %KEY% /V TITLE /D "Registry & Cleanup" /f


REG ADD %KEY%\000 /VE /D "UltraISO" /f
REG ADD %KEY%\000 /V 01 /D "regedit /s \"%CDROM%\Software\UltraISO\uisoREG.reg\"" /f
Orsi
but with 'rundll32.exe iernonce.dll,RunOnceExProcess' lines RunOnceEx commands will be executed right the 12 min setup part, right?
there's no way to avoid this and execute it only on 1st logon?
drscouse
ROE works at first login...

Im not an expert, but I thought only stuff in the cmdlines.txt executed at the t12 stage....

All I know if it works fine for me, it seems to be a simple enough procedure... all I did was added that line, and started the numbering off, and a new ROE window opens up with the respective installs.. simple as that

The script at the top of the page (forget about multiple ROEs) will run at first login.. 1st window will open for Applications, then install WinRAR, ultraISO, then the second window wil run, called Registry and Cleanup, and finally a new window for Custom settings...

I sugges you try it, its a very simple procedure... it seems people are overcomplicating the process....
Manuarii
Whenever you put entries in the RunOnceEx registry key, all keys in it is run in alphanumerical order, once at the next reboot. (used keys are deleted aftwards)
To execute the RunOnceEx Key without the need of the system reboot you can use the command
'rundll32.exe iernonce.dll,RunOnceExProcess' after registering

So if you want to make consecutive RunOnceEx windows runs at logon, just call the other RunOnceEx
command file at the end of the current one and put 'rundll32.exe iernonce.dll,RunOnceExProcess'
at his end.

Here an example:

1stRunOnceEx.cmd executed from cmdlines.txt adds registry entries at T-12
CODE
FOR %%D IN (d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x:) DO IF EXIST %%D\WIN51IP SET CDROM=%%D
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
SET PG=%CDROM%\APPS1

REG ADD %KEY% /V TITLE /D "1st list of apps to be execute" /f

REG ADD %KEY%\000 /VE /D "1st application" /f
REG ADD %KEY%\000 /V A /D "%PG%\1stApp.exe" /switch1 /switch2" /f

REG ADD %KEY%\010 /VE /D "2nd application" /f
REG ADD %KEY%\010 /V 1 /D "%PG%\2ndApp.exe" /switch1 /switch2" /f

[i](etc...)[/i]

REG ADD %KEY%\zzz /VE /D "Cmd to register other entries" [i]<-- don't add this if you don't want it to be listed[/i]
REG ADD %KEY%\zzz /V Z /D %Path_to%\2ndRunonceEx.cmd /f

This will be executed at first logon coz the RunOnceEx Registry Key needs a reboot or the
'rundll32.exe iernonce.dll,RunOnceExProcess' command to be executed

2ndRunOnceEx.cmd
CODE
FOR %%D IN (d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:) DO IF EXIST %%D\WIN51IP SET CDROM=%%D
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
SET PG=%CDROM%\APPS2

REG ADD %KEY% /V TITLE /D "2nd list of apps to be execute" /f

REG ADD %KEY%\000 /VE /D "1st application" /f
REG ADD %KEY%\000 /V A /D "%PG%\1stApp.exe" /switch1 /switch2" /f

REG ADD %KEY%\010 /VE /D "2nd application" /f
REG ADD %KEY%\010 /V 1 /D "%PG%\2ndApp.exe" /switch1 /switch2" /f

[i](etc...)[/i]

REG ADD %KEY%\zzz /VE /D "Cmd to register other entries" [i]<-- don't add this if you don't want it to be listed[/i]
REG ADD %KEY%\zzz /V Z /D %Path_to%\my_next_RunonceEx.cmd /f

rundll32 iernonce.dll,RunOnceExProcess

The 2ndRunOnceEx.cmd will register his entries in the registry when the 1st set of programs are done
and since we add 'rundll32 iernonce.dll,RunOnceExProcess' it will run the new RunOnceEx entries
and will call the my_next_RunOnceEx.cmd at the end of it, and so on...
drscouse
Yeah, I can see how that works too... but simply adding that line, and starting the sequence off agin, without calling for a second ROE file works too... you are in effect relaunching the same window, but with different installs.

I only found the need to use a second ROE file, as I needed to reboot after the first one, prior to installing all my apps and tweaks... this way, it would start afresh, I know ROE will carry on from where it left off if it reboots half way through, but I wanted to start with a fresh window.

I have 3 new windows which are all generated from the same ROE.cmd, without calling for a new .cmd file.
Orsi
Well, below is my only RunOnceEx, it executes right after is executed, without no reboot or something
Don't understood how to sove this sad.gif


cmdow @ /HID
@echo off

for %%a in (z y x w v u t s r q p o n m l k j i h g f e d c) do if exist %%a:\CD.TXT (
set CDROM=%%a:

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

goto install
)

:install

REG ADD %KEY% /V TITLE /D "Registry" /f

REG ADD %KEY%\001 /VE /D "Application name" /f
REG ADD %KEY%\001 /V 1 /D "Application swtiches" /f

rundll32.exe iernonce.dll,RunOnceExProcess
REG ADD %KEY% /V TITLE /D "AudioVideo" /f

REG ADD %KEY%\001 /VE /D "Application name" /f
REG ADD %KEY%\001 /V 1 /D "Application swtiches" /f

rundll32.exe iernonce.dll,RunOnceExProcess
REG ADD %KEY% /V TITLE /D "CGI" /f

REG ADD %KEY%\001 /VE /D "Application name" /f
REG ADD %KEY%\001 /V 1 /D "Application swtiches" /f

rundll32.exe iernonce.dll,RunOnceExProcess
REG ADD %KEY% /V TITLE /D "MISC" /f

REG ADD %KEY%\001 /VE /D "Application name" /f
REG ADD %KEY%\001 /V 1 /D "Application swtiches" /f

rundll32.exe iernonce.dll,RunOnceExProcess
REG ADD %KEY% /V TITLE /D "System" /f

REG ADD %KEY%\001 /VE /D "Application name" /f
REG ADD %KEY%\001 /V 1 /D "Application swtiches" /f

rundll32.exe iernonce.dll,RunOnceExProcess
REG ADD %KEY% /V TITLE /D "Cleaning and rebooting" /f

REG ADD %KEY%\001 /VE /D "Application name" /f
REG ADD %KEY%\001 /V 1 /D "Application swtiches" /f

EXIT
drscouse
EDITED POST - MISREAD USERS INFO....

Im not too sure what you want to achieve with this scriipt, that certainly seems as if it would install Registry, AudioVideo, CGI... in seperate windows, with no reboot (as there is no reboot command present).

Perhaps if you explained how you wanted it to behave, I could assist further...???

Thanks
Orsi
thats exactly what this script is for, the problem is that it is executed during the 12min setup part, no after the 1st logon
Zxian
@Orsi - I think you're getting confused as to how things happen. Re-read Manuarii's post earlier for a bit of clarification. The code that you have isn't going to get you very far... newwink.gif
Mikep7779
So is this correct

CODE
cmdow @ /HID
@echo off

FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\CD.txt SET CDROM=%%i:

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

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


    REG ADD %KEY%\001 /VE /D "DVD Shrink (Cab)" /f

    REG ADD %KEY%\002 /VE /D "Adobe Reader 7 (Cab)" /f

    REG ADD %KEY%\003 /VE /D "Java Runtime (Cab)" /f

    REG ADD %KEY%\005 /VE /D ".Net Framework 1.1 SP1 (Cab)" /f

    REG ADD %KEY%\006 /VE /D "Windows Media Player 10 (Cab)" /f

    REG ADD %KEY%\007 /VE /D ".Net Framework 2.0" /f
    REG ADD %KEY%\007 /V 1 /D "%CDROM%\Software\Utilities\dotnetfx2.exe" /f

    REG ADD %KEY%\008 /VE /D "Daemon Tools 3.47" /f
    REG ADD %KEY%\008 /V 1 /D "%CDROM%\Software\Utilities\daemon.msi /qb /passive /norestart" /f

    REG ADD %KEY%\009 /VE /D "Tight VNC" /f
    REG ADD %KEY%\009 /V 1 /D "%CDROM%\Software\Applications\VNC\tightvnc-1.2.9-setup.exe /silent" /f
    REG ADD %KEY%\009 /V 2 /D "REGEDIT /S %CDROM%\Software\Applications\VNC\vncservice.reg" /f

    REG ADD %KEY%\010 /VE /D "QuickPar 9.1.0" /f
    REG ADD %KEY%\010 /V 1 /D "%CDROM%\Software\Applications\QuickPar-0.9.1.0.exe /S" /f

    REG ADD %KEY%\011 /VE /D "DU Meter 3.07" /f
    REG ADD %KEY%\011 /V 1 /D "%CDROM%\Software\Applications\Dumeter\DUmeter.exe /VERYSILENT /SP-" /f
    REG ADD %KEY%\011 /V 2 /D "REGEDIT /S %CDROM%\Software\Applications\Dumeter\dumeter.reg" /f

    REG ADD %KEY%\012 /VE /D "PerfectDisk 7.0" /f
    REG ADD %KEY%\012 /V 1 /D "REGEDIT /S %CDROM%\Software\Applications\Perfectdisk\perfectdisk.reg" /f

    REG ADD %KEY%\013 /VE /D "Nero 6.0.0.13" /f
    REG ADD %KEY%\013 /V 1 /D "%CDROM%\Software\Applications\Nero_Custom_Setup.exe" /f


rundll32.exe iernonce.dll,RunOnceExProcess
REG ADD %KEY% /V TITLE /D "Utilities" /f
    
    REG ADD %KEY%\001 /VE /D "Crap Cleaner (Cab)" /f
    
    REG ADD %KEY%\002 /VE /D "Spybot S&D (Cab)" /f

    REG ADD %KEY%\003 /VE /D "Kazaa mega codec pack" /f
    REG ADD %KEY%\003 /V 1 /D "%CDROM%\Software\Utilities\klmcodec138.exe /silent" /f

    REG ADD %KEY%\004 /VE /D "Azureus 2.3.0.4" /f
    REG ADD %KEY%\004 /V 1 /D "%CDROM%\Software\Applications\Azureus_2.3.0.4_Win32.setup.exe /S /D=C:\Program\Azureus" /f

    REG ADD %KEY%\005 /VE /D "VLC Player." /f
    REG ADD %KEY%\005 /V 1 /D "%CDROM%\Software\Applications\vlc-0.8.2-win32.exe /S" /f

    REG ADD %KEY%\006 /VE /D "**** NFO Viewer" /f
    REG ADD %KEY%\006 /V 1 /D "%CDROM%\Software\Applications\Damnnfo\DAMNNFO.sfx.exe" /f
    REG ADD %KEY%\006 /V 2 /D "REGEDIT /S %CDROM%\Software\Applications\Damnnfo\****.reg" /f

    REG ADD %KEY%\007 /VE /D "Tune-Up 2006" /f
    REG ADD %KEY%\007 /V 1 /D "%CDROM%\Software\Applications\Tuneup\TU2006TrialEN.exe /q" /f
    REG ADD %KEY%\007 /V 2 /D "REGEDIT /S %CDROM%\Software\Applications\Tuneup\tuneup.reg" /f

    REG ADD %KEY%\008 /VE /D "WinRAR" /f
    REG ADD %KEY%\008 /V 1 /D "%CDROM%\Software\Applications\wrar35b7.exe /s" /f

    REG ADD %KEY%\009 /VE /D "7-Zip" /f
    REG ADD %KEY%\009 /V 1 /D "%CDROM%\Software\Applications\7z423.exe /S" /f

    REG ADD %KEY%\011 /VE /D "AVG 7.1 (Anti-Virus)" /f
    REG ADD %KEY%\011 /V 1 /D "%systemdrive%\Install\Applications\Avg7\AvgSetup.bat" /f

    REG ADD %KEY%\012 /VE /D "CPL Mouse Fix" /f
    REG ADD %KEY%\012 /V 1 /D "REGEDIT /S %CDROM%\Software\mouse_fix.reg" /f

    REG ADD %KEY%\012 /VE /D "HashTab v1.7 (Cab)" /f
    
    REG ADD %KEY%\099 /VE /D "Cleaning Up and Rebooting" /f
    REG ADD %KEY%\099 /V 1 /D "%CDROM%\Software\cleanup.cmd" /f

EXIT
OrcoXP
Essentially this is correct but /VE is just a heading...if you want it to do something you have to tell it what to do.

REG ADD adds the commands to the registry and the rundll32 command runs them and deletes the registry entries...

If you want to see how it works just run mine...you'll just get a whole lot of errors saying it can't fine the files...but this will show you how it works...

I just counted...I have 7 lists.
Mikep7779
I know that the /ve is just a name, is so i know what Cabs i have installing.

One list installs prior to first login... and the 2nd at 1st login.

It runs when my cab installers are being installed. Any idea why?
diesel_98a
OrcoXP,
i just downloaded ur runonceex, very impressive!!! i might actually change the setup on mine now, my question is if you have noticed any performance issues during the install w/ it be ran 7 different times?
drscouse
ORSI:
QUOTE
thats exactly what this script is for, the problem is that it is executed during the 12min setup part, no after the 1st logon


Are you running it from the GUIRUNONCE section in your WINNT.SIF, which will execute at first logon.. it sounds like you are running from the cmdlines.txt???
Mikep7779
QUOTE (drscouse @ Nov 12 2005, 03:02 AM) *
ORSI:
QUOTE
thats exactly what this script is for, the problem is that it is executed during the 12min setup part, no after the 1st logon


Are you running it from the GUIRUNONCE section in your WINNT.SIF, which will execute at first logon.. it sounds like you are running from the cmdlines.txt???



I am running it with a cmdlines, i would add it under GUIRUNONCE in my winnt.sif?
drscouse
If you want your installs to happen on first logon (after OS install is complete), you will need to execute the runonceex.cmd from GUIRUNONCE in your WINNT.SIF.

This is a section from my .sif file.


QUOTE
[Networking]InstallDefaultComponents=No

[RegionalSettings]
Language=00000809
LanguageGroup=1

[TapiLocation]
CountryCode=44
AreaCode=023

[GuiRunOnce]
"%windir%\system32\RunOnceEx.cmd"


[NetProtocols]
MS_TCPIP=params.MS_TCPIP

[NetAdapters]
Adapter1=params.Adapter1

[params.Adapter1]
ConnectionName="ADSL Router"
NetCardAddress=xxxxxxxxxxxx


Ive just checked out www.unattended.msfn.org "runonceex.cmd" section http://www.unattended.msfn.org/intermediat...s/runonceex.htm which indeed does describe its use in the cmdlines.txt.

Im sure this has all changed, cos when I was first starting this project, I did not learn to add it here (cmdlines.txt), and have always used it from GUIRUNONCE. Im not sure if there is a difference, but it has always worked fine for me. Remember if you chose to do it this way, to remove it from cmdlines.txt!

I would be interested to know of any pros/cons of doing it either way....
Dobby
The reason it's running at T-12 stage is because of the line:
CODE
rundll32.exe iernonce.dll,RunOnceExProcess


cmdlines.txt gets run at T-12 stage which means the RunOnceEx.cmd is run at this stage. Normally this just inserts the reg entries ready to be run after first login but the rundll32.exe command forces these entries to get run straight away.

I hope this explains why you are getting this behaviour (sorry it's a little late).
inteeer
thank you
OrcoXP
I run mine from GUIRUNONCE in WINNT.SIF
But I also run a CMD file from CMDLINES.TXT inorder to apply some registry settings for the default user account
XcOM
Hi, i know this is old, and prob dragging on,

But i would like to confirm something,

If i set the registry to launch the Runonce, IE,

QUOTE
1st runonce CMD

@echo off

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

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

REG ADD %KEY%\001 /VE /D "Adobe Reader v7" /f
REG ADD %KEY%\001 /V 1 /D "%systemdrive%\Install\Adobe\setupR.exe" /f

REG ADD %KEY%\002 /VE /D "Firefox 1.5.0.6 Browser" /f
REG ADD %KEY%\002 /V 1 /D "%systemdrive%\Install\Firefox\Setup.msi /qb /norestart" /f

REG ADD %KEY%\003 /VE /D "Nero Burning ROM 7 Lite" /f
REG ADD %KEY%\003 /V 1 /D "%systemdrive%\Install\Nero\Setup.exe /VERYSILENT" /f
REG ADD %KET%\003 /V 2 /D "%systemdrive%\Install\Nero\Setup.reg" /f

REG ADD %KEY%\004 /VE /D "Java Runtime 5.0" /f
REG ADD %KEY%\004 /V 1 /D "%systemdrive%\Install\Java\setup.exe" /f

REG ADD %KEY%\005 /VE /D "Shockwave 10" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\Install\Adobe\SW.exe" /f

REG ADD %KEY%\006 /VE /D "Micorosft.net 2" /f
REG ADD %KEY%\006 /V 1 /D "%systemdrive%\Install\Microsoft\DOTnet\setup.exe" /f

REG ADD %KEY%\007 /VE /D "Paint.NET" /f
REG ADD %KEY%\007 /V 1 /D "%systemdrive%\Install\PaintNET\setup.exe" /f

REG ADD %KEY%\008 /VE /D "Microsoft Office 2003 Pro" /f
REG ADD %KEY%\008 /V 1 /D "%systemdrive%\Install\Office\2k3\setup.exe TRANSFORMS=Unattended.MST /qb-" /f

REG ADD %KEY%\009 /VE /D "Microsoft Frontpage 2003" /f
REG ADD %KEY%\009 /V 1 /D "%systemdrive%\Install\Office\FP\setup.exe TRANSFORMS=Unattended.MST /qb-" /f

REG ADD %KEY%\010 /VE /D "Symantic Antivirus Corp 10" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\Install\AV\SAV.msi /qb /norestart" /f

REG ADD %KEY%\011 /VE /D "Zonealarm Pro" /f
REG ADD %KEY%\011 /V 1 /D "%systemdrive%\Install\Fire\setup.exe /s /i /noreboot /lickey 6mw9gah8fnwq8wf033dca9xj2g0" /f

REG ADD %KEY%\012 /VE /D "Codec Pack" /f
REG ADD %KEY%\012 /V 1 /D "%systemdrive%\Install\Codec\fcpack.exe" /f

REG ADD %KEY%\013 /VE /D "Fantom Virtual CD/DVD RW" /f
REG ADD %KEY%\013 /V 1 /D "%systemdrive%\Install\Fantom\enu_tr.msi /qb /norestart" /f

REG ADD %KEY%\014 /VE /D "Windows Live Messenger (MSN 8)" /f
REG ADD %KEY%\014 /V 1 /D "%systemdrive%\Install\MSN\livemess.exe" /f

REG ADD %KEY%\015 /VE /D "Registry Tweaks" /f
REG ADD %KEY%\015 /V 1 /D "Regedit /s %systemdrive%\Install\Reg\tweaks.reg" /f

REG ADD %KEY%\016 /VE /D "Cleanup" /f
REG ADD %KEY%\016 /V 1 /D "%systemdrive%\Install\Cleanup.cmd" /f

REG ADD %KEY%\017 /VE /D "System Patches" /f
REG ADD %KEY%\017 /V 1 /D "%systemdrive%\Installs\Runonce2.cmd" /f
REG ADD %KEY%\017 /V 2 /D "rundll32.exe iernonce.dll,RunOnceExProcess"

--------------------------------
Onceone2.bat


@echo off

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

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

REG ADD %KEY%\101 /VE /D "Patch1" /f
REG ADD %KEY%\101 /V 1 /D "patch1_Path" /f

REG ADD %KEY%\102 /VE /D "Patch1" /f
REG ADD %KEY%\101 /V 1 /D "patch1_Path" /f

Exit


My problem being this, i would like the runonce window to popup, install some apps, then load another RunOnce window, this time installing patches, BUT, when this script is used, will the second RunOnce window start from the second BAT/CMD file, or will it try to install everything from the begining, i am not sure as i don't know if the RunOnce process deletes the registry entries as it goes or if it deletes the entrys after it has finished.

Any help will be appreashed.

Oh and BTW, Great guides. Come in very handy, WICKED site and forum.
XcOM
EDIT

DOUBLE POST
muiz
Thats what i like to know to.
And what if i dont want a reboot?
I saw that WPI started a few runonce without reboot.
embe
Hi, below are my RunOnceEx and 2ndRunOnceex called from RunOnceEx. What I want is that RunOnceEx starts after 1st logon and 2ndRunOnceEx after RunOnceEx finish...
The reason is that I have too many apps to install. Currently attached RunOnceEx and 2nd RunOnceEx starts prior to first logon, it runs when system "REGISTERING COMPONENTS" and "SAVES SETTINGS" etc. It causes problems coz Office XP isn`t installed for example...
Can somebody advise what to change in both ROE so these runs after 1st logon? None of above posts doesn`t help...
Thanks...!

RunOnceEX

CODE
cmdow @ /HID
@echo off

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

REG ADD %KEY% /V TITLE /D "INSTALLING APPLICATIONS..." /f

REG ADD %KEY%\005 /VE /D "NET FRAMEWORK 1.1 ALL IN" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Applications\NetFramework\netfx.msi /qn" /f
REG ADD %KEY%\005 /V 2 /D "%systemdrive%\install\Applications\NetFramework\NDP1.1sp1-KB867460-X86.exe /qb" /f
REG ADD %KEY%\005 /V 3 /D "%systemdrive%\install\Applications\NetFramework\NDP1.1sp1-KB886903-X86.exe /qb" /f

REG ADD %KEY%\010 /VE /D "MS OFFICE XP S FRONTPAGE" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\Applications\OfficeXP\SETUP.exe TRANSFORMS=Unattended.MST /qn" /f

REG ADD %KEY%\015 /VE /D "JAVA RUNTIME 5.0 UPDATE 8" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\Applications\Java\jre1508.exe" /f

REG ADD %KEY%\020 /VE /D "ADOBE READER 7.0.8 LITE" /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\Applications\Adobe\AdobeReader708Lite.exe" /f

REG ADD %KEY%\025 /VE /D "POWER DVD 7 DELUXE" /f
REG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\Applications\PWDVD7\PowerDVD7.exe" /f

REG ADD %KEY%\030 /VE /D "NERO 7.2.3.2b" /f
REG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\Applications\Nero\Nero-7.2.3.2b_eng_lite.exe /VERYSILENT" /f

REG ADD %KEY%\035 /VE /D "WINAMP 5.2.4 LITE" /f
REG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\Applications\Winamp\Winamp524.msi INI=%systemdrive%\install\Applications\Winamp\Winamp.ini /qn" /f

REG ADD %KEY%\040 /VE /D "NOD32 2.51.26" /f
REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\Applications\NOD32\setup.exe /silentmode /cfg=config.xml /instmfc" /f
REG ADD %KEY%\040 /V 2 /D "%systemdrive%\install\Applications\NOD32\updfiles.exe" /f
REG ADD %KEY%\040 /V 3 /D "REGEDIT /S %systemdrive%\install\Applications\NOD32\NOD32.reg" /f

REG ADD %KEY%\045 /VE /D "IRFAN VIEW 3.98 + PLUGINY" /f
REG ADD %KEY%\045 /V 1 /D "%systemdrive%\install\Applications\Irfan\iview398.exe /silent /desktop=0 /group=1 /allusers=0 /assoc=1" /f
REG ADD %KEY%\045 /V 2 /D "%systemdrive%\install\Applications\Irfan\irfanplugins398.exe /silent" /f

REG ADD %KEY%\050 /VE /D "DVD SHRINK 3.2" /f
REG ADD %KEY%\050 /V 1 /D "%systemdrive%\install\Applications\DVDShrink\dvdshrink32setup.exe /verysilent /NOCANCEL /NORESTART /SP-" /f

REG ADD %KEY%\055 /VE /D "WINRAR 3.6" /f
REG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\Applications\Winrar36\wrar360.exe /s" /f

REG ADD %KEY%\060 /VE /D "DVD DECRYPTER 3.5.4.0" /f
REG ADD %KEY%\060 /V 1 /D "%systemdrive%\install\Applications\DVDdecrypter\DVDDecrypter3540.exe /S" /f

REG ADD %KEY%\065 /VE /D "ICQ 5.1" /f
REG ADD %KEY%\065 /V 1 /D "%systemdrive%\install\Applications\ICQ5_1\icq5_1_setup.exe /s" /f
REG ADD %KEY%\065 /V 2 /D "taskkill.exe /F /IM ICQLite.exe" /f
REG ADD %KEY%\065 /V 3 /D "REGEDIT /S %systemdrive%\install\Applications\ICQ5_1\ICQ.reg" /f

REG ADD %KEY%\070 /VE /D "DVDFAB PLATINIUM 2.9" /f
REG ADD %KEY%\070 /V 1 /D "%systemdrive%\install\Applications\DVDFABPlatinum\DVDFabPlatinum29.exe /SP- /VERYSILENT /NORESTART" /f
REG ADD %KEY%\070 /V 2 /D "%systemdrive%\install\Applications\DVDFABPlatinum\mfc42.exe" /f

REG ADD %KEY%\075 /VE /D "SHOCKWAVE PLAYER 10.1.3.18" /f
REG ADD %KEY%\075 /V 1 /D "%systemdrive%\install\Applications\Shockwave\swInstaller.exe" /f

REG ADD %KEY%\080 /VE /D "SKYPE 2.5.0.141" /f
REG ADD %KEY%\080 /V 1 /D "%systemdrive%\install\Applications\Skype\SkypeSetup.exe /VERYSILENT /SP-" /f
REG ADD %KEY%\080 /V 2 /D "REGEDIT /S %systemdrive%\install\Applications\Skype\Skype.reg" /f

REG ADD %KEY%\085 /V 1 /D "%systemdrive%\install\2ndRunOnceEx.cmd" /f

rundll32 iernonce.dll,RunOnceExProcess


2ndRunOnceEx:
CODE
cmdow @ /HID
@echo off

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

REG ADD %KEY% /V TITLE /D "INSTALUJEM APLIKACIE..." /f

REG ADD %KEY%\005 /VE /D "MOZILLA FIREFOX 1.5.0.7" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Applications\Firefox\firefox1507.exe" /f

REG ADD %KEY%\010 /VE /D "MOZILLA THUNDERBIRD 1.5.0.7" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\Applications\Thunderbird\Setup_1.5.0.7.exe /ms" /f

REG ADD %KEY%\015 /VE /D "MOZBACKUP 1.4.5" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\Applications\MozBackup\MozBackup-1.4.5-ENG.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\020 /VE /D "µTORRENT 1.6 build 474" /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\Applications\uTorrent\uTorrent-1.6-install.exe /S" /f

REG ADD %KEY%\025 /VE /D "SWITCH OFF 1.7.0.232" /f
REG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\Applications\Switchoff\swoff17.exe /S" /f

REG ADD %KEY%\030 /VE /D "VMWARE 5.5.1.-19175" /f
REG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\Applications\VirtualMachine\VMware-workstation-5.5.1-19175.exe /S /v/qn" /f
REG ADD %KEY%\030 /V 2 /D "REGEDIT /S %systemdrive%\install\Applications\VirtualMachine\VMware.reg" /f

REG ADD %KEY%\035 /VE /D "TOTAL COMMANDER 6.51" /f
REG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\Applications\Totalcmd\INSTALL.exe" /f
REG ADD %KEY%\035 /V 2 /D "taskkill.exe /F /IM explorer.exe" /f

REG ADD %KEY%\045 /VE /D "AUTOIT 1.71  " /f
REG ADD %KEY%\045 /V 1 /D "%systemdrive%\install\Applications\Autoit\autoit-v3-setup.exe /S" /f

REG ADD %KEY%\050 /VE /D "SCITE (FOR AUTOIT) 1.71  " /f
REG ADD %KEY%\050 /V 1 /D "%systemdrive%\install\Applications\Scite4Autoit\SciTE4AutoIt3.exe /S" /f

REG ADD %KEY%\055 /VE /D "REGSUPREME 1.1" /f
REG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\Applications\RegSupreme\RegSupreme_setup.exe /SP- /VERYSILENT /NORESTART" /f
REG ADD %KEY%\055 /V 2 /D "%systemdrive%\install\Applications\RegSupreme\RegSupreme.sfx.exe" /f
REG ADD %KEY%\055 /V 3 /D "REGEDIT /S %systemdrive%\install\Applications\RegSupreme\Regsupreme.reg" /f

REG ADD %KEY%\060 /VE /D "MIRC 6.01" /f
REG ADD %KEY%\060 /V 1 /D "%systemdrive%\install\Applications\mIRC\mIRC.sfx.exe" /f

REG ADD %KEY%\065 /VE /D "ALCOHOL 120% - 1.9.5 build 3105" /f
REG ADD %KEY%\065 /V 1 /D "%systemdrive%\install\Applications\Alcohol120\Patch.sfx.exe" /f
REG ADD %KEY%\065 /V 2 /D "%systemdrive%\install\Applications\Alcohol120\patch_3105.sfx.exe" /f

REG ADD %KEY%\070 /VE /D "FLY 2000 TV 2.26" /f
REG ADD %KEY%\070 /V 1 /D "%systemdrive%\install\Applications\Fly2000TV\Register.exe" /f
REG ADD %KEY%\070 /V 2 /D "%systemdrive%\install\Applications\Fly2000TV\Fly2000_2.26.sfx.exe" /f
REG ADD %KEY%\070 /V 3 /D "%systemdrive%\install\Applications\Fly2000TV\Fly2000TV.sfx.exe" /f

REG ADD %KEY%\994 /VE /D "***NUTNE UPRAVY REGISTROV***" /f
REG ADD %KEY%\994 /V 1 /D "REGEDIT /S %systemdrive%\install\Applications\Daemontools\Daemon.reg" /f

REG ADD %KEY%\995 /VE /D "***MAZANIE A RESTART***" /f
REG ADD %KEY%\995 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f

rundll32 iernonce.dll,RunOnceExProcess

EXIT
cyberloner
QUOTE
cmdow @ /HID
@echo off

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

REG ADD %KEY% /V TITLE /D "INSTALLING APPLICATIONS..." /f

REG ADD %KEY%\005 /VE /D "NET FRAMEWORK 1.1 ALL IN" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Applications\NetFramework\netfx.msi /qn" /f
REG ADD %KEY%\005 /V 2 /D "%systemdrive%\install\Applications\NetFramework\NDP1.1sp1-KB867460-X86.exe /qb" /f
REG ADD %KEY%\005 /V 3 /D "%systemdrive%\install\Applications\NetFramework\NDP1.1sp1-KB886903-X86.exe /qb" /f

REG ADD %KEY%\010 /VE /D "MS OFFICE XP S FRONTPAGE" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\Applications\OfficeXP\SETUP.exe TRANSFORMS=Unattended.MST /qn" /f

REG ADD %KEY%\015 /VE /D "JAVA RUNTIME 5.0 UPDATE 8" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\Applications\Java\jre1508.exe" /f

REG ADD %KEY%\020 /VE /D "ADOBE READER 7.0.8 LITE" /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\Applications\Adobe\AdobeReader708Lite.exe" /f

REG ADD %KEY%\025 /VE /D "POWER DVD 7 DELUXE" /f
REG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\Applications\PWDVD7\PowerDVD7.exe" /f

REG ADD %KEY%\030 /VE /D "NERO 7.2.3.2b" /f
REG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\Applications\Nero\Nero-7.2.3.2b_eng_lite.exe /VERYSILENT" /f

REG ADD %KEY%\035 /VE /D "WINAMP 5.2.4 LITE" /f
REG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\Applications\Winamp\Winamp524.msi INI=%systemdrive%\install\Applications\Winamp\Winamp.ini /qn" /f

REG ADD %KEY%\040 /VE /D "NOD32 2.51.26" /f
REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\Applications\NOD32\setup.exe /silentmode /cfg=config.xml /instmfc" /f
REG ADD %KEY%\040 /V 2 /D "%systemdrive%\install\Applications\NOD32\updfiles.exe" /f
REG ADD %KEY%\040 /V 3 /D "REGEDIT /S %systemdrive%\install\Applications\NOD32\NOD32.reg" /f

REG ADD %KEY%\045 /VE /D "IRFAN VIEW 3.98 + PLUGINY" /f
REG ADD %KEY%\045 /V 1 /D "%systemdrive%\install\Applications\Irfan\iview398.exe /silent /desktop=0 /group=1 /allusers=0 /assoc=1" /f
REG ADD %KEY%\045 /V 2 /D "%systemdrive%\install\Applications\Irfan\irfanplugins398.exe /silent" /f

REG ADD %KEY%\050 /VE /D "DVD SHRINK 3.2" /f
REG ADD %KEY%\050 /V 1 /D "%systemdrive%\install\Applications\DVDShrink\dvdshrink32setup.exe /verysilent /NOCANCEL /NORESTART /SP-" /f

REG ADD %KEY%\055 /VE /D "WINRAR 3.6" /f
REG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\Applications\Winrar36\wrar360.exe /s" /f

REG ADD %KEY%\060 /VE /D "DVD DECRYPTER 3.5.4.0" /f
REG ADD %KEY%\060 /V 1 /D "%systemdrive%\install\Applications\DVDdecrypter\DVDDecrypter3540.exe /S" /f

REG ADD %KEY%\065 /VE /D "ICQ 5.1" /f
REG ADD %KEY%\065 /V 1 /D "%systemdrive%\install\Applications\ICQ5_1\icq5_1_setup.exe /s" /f
REG ADD %KEY%\065 /V 2 /D "taskkill.exe /F /IM ICQLite.exe" /f
REG ADD %KEY%\065 /V 3 /D "REGEDIT /S %systemdrive%\install\Applications\ICQ5_1\ICQ.reg" /f

REG ADD %KEY%\070 /VE /D "DVDFAB PLATINIUM 2.9" /f
REG ADD %KEY%\070 /V 1 /D "%systemdrive%\install\Applications\DVDFABPlatinum\DVDFabPlatinum29.exe /SP- /VERYSILENT /NORESTART" /f
REG ADD %KEY%\070 /V 2 /D "%systemdrive%\install\Applications\DVDFABPlatinum\mfc42.exe" /f

REG ADD %KEY%\075 /VE /D "SHOCKWAVE PLAYER 10.1.3.18" /f
REG ADD %KEY%\075 /V 1 /D "%systemdrive%\install\Applications\Shockwave\swInstaller.exe" /f

REG ADD %KEY%\080 /VE /D "SKYPE 2.5.0.141" /f
REG ADD %KEY%\080 /V 1 /D "%systemdrive%\install\Applications\Skype\SkypeSetup.exe /VERYSILENT /SP-" /f
REG ADD %KEY%\080 /V 2 /D "REGEDIT /S %systemdrive%\install\Applications\Skype\Skype.reg" /f

rundll32 iernonce.dll,RunOnceExProcess

REG ADD %KEY% /V TITLE /D "INSTALUJEM APLIKACIE..." /f

REG ADD %KEY%\005 /VE /D "MOZILLA FIREFOX 1.5.0.7" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Applications\Firefox\firefox1507.exe" /f

REG ADD %KEY%\010 /VE /D "MOZILLA THUNDERBIRD 1.5.0.7" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\Applications\Thunderbird\Setup_1.5.0.7.exe /ms" /f

REG ADD %KEY%\015 /VE /D "MOZBACKUP 1.4.5" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\Applications\MozBackup\MozBackup-1.4.5-ENG.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\020 /VE /D "µTORRENT 1.6 build 474" /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\Applications\uTorrent\uTorrent-1.6-install.exe /S" /f

REG ADD %KEY%\025 /VE /D "SWITCH OFF 1.7.0.232" /f
REG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\Applications\Switchoff\swoff17.exe /S" /f

REG ADD %KEY%\030 /VE /D "VMWARE 5.5.1.-19175" /f
REG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\Applications\VirtualMachine\VMware-workstation-5.5.1-19175.exe /S /v/qn" /f
REG ADD %KEY%\030 /V 2 /D "REGEDIT /S %systemdrive%\install\Applications\VirtualMachine\VMware.reg" /f

REG ADD %KEY%\035 /VE /D "TOTAL COMMANDER 6.51" /f
REG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\Applications\Totalcmd\INSTALL.exe" /f
REG ADD %KEY%\035 /V 2 /D "taskkill.exe /F /IM explorer.exe" /f

REG ADD %KEY%\045 /VE /D "AUTOIT 1.71 " /f
REG ADD %KEY%\045 /V 1 /D "%systemdrive%\install\Applications\Autoit\autoit-v3-setup.exe /S" /f

REG ADD %KEY%\050 /VE /D "SCITE (FOR AUTOIT) 1.71 " /f
REG ADD %KEY%\050 /V 1 /D "%systemdrive%\install\Applications\Scite4Autoit\SciTE4AutoIt3.exe /S" /f

REG ADD %KEY%\055 /VE /D "REGSUPREME 1.1" /f
REG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\Applications\RegSupreme\RegSupreme_setup.exe /SP- /VERYSILENT /NORESTART" /f
REG ADD %KEY%\055 /V 2 /D "%systemdrive%\install\Applications\RegSupreme\RegSupreme.sfx.exe" /f
REG ADD %KEY%\055 /V 3 /D "REGEDIT /S %systemdrive%\install\Applications\RegSupreme\Regsupreme.reg" /f

REG ADD %KEY%\060 /VE /D "MIRC 6.01" /f
REG ADD %KEY%\060 /V 1 /D "%systemdrive%\install\Applications\mIRC\mIRC.sfx.exe" /f

REG ADD %KEY%\065 /VE /D "ALCOHOL 120% - 1.9.5 build 3105" /f
REG ADD %KEY%\065 /V 1 /D "%systemdrive%\install\Applications\Alcohol120\Patch.sfx.exe" /f
REG ADD %KEY%\065 /V 2 /D "%systemdrive%\install\Applications\Alcohol120\patch_3105.sfx.exe" /f

REG ADD %KEY%\070 /VE /D "FLY 2000 TV 2.26" /f
REG ADD %KEY%\070 /V 1 /D "%systemdrive%\install\Applications\Fly2000TV\Register.exe" /f
REG ADD %KEY%\070 /V 2 /D "%systemdrive%\install\Applications\Fly2000TV\Fly2000_2.26.sfx.exe" /f
REG ADD %KEY%\070 /V 3 /D "%systemdrive%\install\Applications\Fly2000TV\Fly2000TV.sfx.exe" /f

REG ADD %KEY%\994 /VE /D "***NUTNE UPRAVY REGISTROV***" /f
REG ADD %KEY%\994 /V 1 /D "REGEDIT /S %systemdrive%\install\Applications\Daemontools\Daemon.reg" /f

REG ADD %KEY%\995 /VE /D "***MAZANIE A RESTART***" /f
REG ADD %KEY%\995 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f

rundll32 iernonce.dll,RunOnceExProcess

DEL /Q /F %0

EXIT


i suggest copy it to
XPCD\$OEM$\$DOCS\All Users\Start Menu\Programs\Startup
it will logon to windows.... del itself after running it... name as install.cmd... only one batch running 2 times installation....
embe
QUOTE
i suggest copy it to
XPCD\$OEM$\$DOCS\All Users\Start Menu\Programs\Startup
it will logon to windows.... del itself after running it... name as install.cmd... only one batch running 2 times installation....


1st of all thanks 4 reply.

So to be sure:

1) merge my 2 ROEs to 1 single ROE?
2) Name it as "install.cmd" and put it to XPCD\$OEM$\$DOCS\All Users\Start Menu\Programs\Startup

Do I have therefore delete RunOnceEx instruction from cmdlines.txt (as there will be no ROE anymore I think)?

I have tested several options yesterday but none of them works as I need.

What I need is to execute 1st ROE after the 1st logon and then after 1st ROE end I need to start another ROE and so on (no reboot necessary...)I don`t want these run at a half of "Registering components" process (T@12 ?)

Thanks
cyberloner
QUOTE (embe @ Sep 27 2006, 02:28 AM) *
QUOTE

i suggest copy it to
XPCD\$OEM$\$DOCS\All Users\Start Menu\Programs\Startup
it will logon to windows.... del itself after running it... name as install.cmd... only one batch running 2 times installation....


1st of all thanks 4 reply.

So to be sure:

1) merge my 2 ROEs to 1 single ROE?
2) Name it as "install.cmd" and put it to XPCD\$OEM$\$DOCS\All Users\Start Menu\Programs\Startup

Do I have therefore delete RunOnceEx instruction from cmdlines.txt (as there will be no ROE anymore I think)?

I have tested several options yesterday but none of them works as I need.

What I need is to execute 1st ROE after the 1st logon and then after 1st ROE end I need to start another ROE and so on (no reboot necessary...)I don`t want these run at a half of "Registering components" process (T@12 ?)

Thanks


that's right... it will run after you really log in windows.... and install ....popup 1 and popup 2... installation...
after that.. it will auto del install.cmd from your startup... as same as my installation... because i dun want copy it to c:\install.cmd something like that....
why dun you give it a run.....and see
embe
QUOTE
that's right... it will run after you really log in windows.... and install ....popup 1 and popup 2... installation...
after that.. it will auto del install.cmd from your startup... as same as my installation... because i dun want copy it to c:\install.cmd something like that....
why dun you give it a run.....and see


Just tested and even if it`s not exactly what I was looking for it`s very good option which works like a charm!

Thanks mate!

(Strange is that my OfficeXp shrinked with Office shrinker doesn`t work, i changed /gn switch to /gb so I can see what`s going on and error message pop ups with some missing file - i think error 1308 or so. So I removed all rows from ROE and tested just OfficeXP and the same result. So I took backup copy of shrinked OffiecXp and the same...i know this is not caused by multiple ROEs... but i don`t know what it causes and I`m lazy make office shrink again especially when it worked before. If i press ignore on that missing file it finish installation of office and office works..really strange...)
mazin
@ embe

Why don't you just delete this line from your first RunOnceEX.cmd:

rundll32 iernonce.dll,RunOnceExProcess
cyberloner
i have that office pro before... that's why i dun shrink it.....
install half and it revert back uninstall it..... some files missing as it said....
glab to hear it works
embe
@ mazin

Cyberloner`s option works perfect and I think I`ll use it. I don`t understand to these commands so I was just trying. Tested several options with partial success; Office XP doesn`t install not due to different time point of installation (at Registering components) but due to missing file...
I planned to remove rundll32 iernonce.dll,RunOnceExProcess from 1st ROE but didn`t yet. I will test it and will see...

@ cyberloner

The problem is that i tested my installation more than 30 times in VMware and I was also forced to use it on real machine by reinstalling the system due to error caused by Net Framework 2.0 (win message:system not completely installed, please run setup again)
Office is installed also on my real machine without any problem.

OfficeXP - I easily managed it to work so I put instructions there for newbies like me. I don`t know why it stopped to work/starts missing 1 file...
MAVERICKS CHOICE
Don't wanna sound like a nark but you should thoroughly test all your installers before attemping the ua with whatever method you use.
cyberloner
QUOTE (MAVERICKS CHOICE @ Sep 28 2006, 02:11 AM) *
Don't wanna sound like a nark but you should thoroughly test all your installers before attemping the ua with whatever method you use.


true .. that's what i always do and test... change shortcut whatever....

if u remove the rundll32 iernonce.dll,RunOnceExProcess command at the middle one... it will popup runoncex installation a long list that u cannot see what it is install at the bottom of it...
embe
@ MAVERICKS CHOICE

I always test on a real machine through Start\Run\ and in VMware too. I never reinstalled XP due to testing...And that`s the reason why I had to reinstall XP coz I tested Net Framework 2.0 in real machine - installer dedicated for svcpack method (I didn`t know it of course:- sad.gif )

@ cyberloner

CODE
if u remove the rundll32 iernonce.dll,RunOnceExProcess command at the middle one... it will popup runoncex installation a long list that u cannot see what it is install at the bottom of it...


so if i return into method of 2 separtate ROEs (RunOnceEx which call for RunceOnceEx2.cmd at his end and so on) and if I remove from 1st ROE command rundll32.exe iernonce.dll,RunOnceExProcess ROE starts at first logon prior to desktop launch and it will show list of apps which are mentioned in 1st ROE and at it end calls for ROE2 the 1st will dissapear and 2nd will pop up and continues with installation?
This sounds logical but as far as I remember it doesn`t work...but I`m not sure....
cyberloner
try and learn...
embe
QUOTE (cyberloner @ Sep 28 2006, 12:10 PM) *
try and learn...


Yeah, but tired with several testings in Vmware... wacko.gif
mazin
The following is a working scenario.

REQUIRED FILES:

$OEM$\cmdlines.txt
$OEM$\ROEXLM.cmd
$OEM$\$1\Install\ROEXCU.cmd
$OEM$\$$\System32\CMDOW.exe

CONTENTS:

QUOTE ( cmdlines.txt )
[COMMANDS]
"ROEXLM.cmd"


QUOTE ( ROEXLM.cmd )
cmdow @ /HID
@echo off

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

REG ADD %KEY% /V TITLE /D "INSTALLING APPLICATIONS" /f

.
. your
. keys
. here
.

REG ADD %KEY%\999 /V 1 /D "%SystemDrive%\Install\ROEXCU.cmd" /f


QUOTE ( ROEXCU.cmd )
cmdow @ /HID
@echo off

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

REG ADD %KEY% /V TITLE /D "INSTALLING APPLICATIONS" /f

.
. your
. keys
. here
.
embe
QUOTE (mazin @ Sep 28 2006, 02:35 PM) *
The following is a working scenario.

REQUIRED FILES:

$OEM$\cmdlines.txt
$OEM$\ROEXLM.cmd
$OEM$\$1\Install\ROEXCU.cmd
$OEM$\$$\System32\CMDOW.exe

CONTENTS:

QUOTE ( cmdlines.txt )
[COMMANDS]
"ROEXLM.cmd"


QUOTE ( ROEXLM.cmd )
cmdow @ /HID
@echo off

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

REG ADD %KEY% /V TITLE /D "INSTALLING APPLICATIONS" /f

.
. your
. keys
. here
.

REG ADD %KEY%\999 /V 1 /D "%SystemDrive%\Install\ROEXCU.cmd" /f


QUOTE ( ROEXCU.cmd )
cmdow @ /HID
@echo off

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

REG ADD %KEY% /V TITLE /D "INSTALLING APPLICATIONS" /f

.
. your
. keys
. here
.



Perfect, thanks, will try tonight...
embe
QUOTE (mazin @ Sep 28 2006, 02:35 PM) *
The following is a working scenario.

REQUIRED FILES:

$OEM$\cmdlines.txt
$OEM$\ROEXLM.cmd
$OEM$\$1\Install\ROEXCU.cmd
$OEM$\$$\System32\CMDOW.exe

CONTENTS:

QUOTE ( cmdlines.txt )
[COMMANDS]
"ROEXLM.cmd"


QUOTE ( ROEXLM.cmd )
cmdow @ /HID
@echo off

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

REG ADD %KEY% /V TITLE /D "INSTALLING APPLICATIONS" /f

.
. your
. keys
. here
.

REG ADD %KEY%\999 /V 1 /D "%SystemDrive%\Install\ROEXCU.cmd" /f


QUOTE ( ROEXCU.cmd )
cmdow @ /HID
@echo off

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

REG ADD %KEY% /V TITLE /D "INSTALLING APPLICATIONS" /f

.
. your
. keys
. here
.



Yeah, works, but only partially coz I have more than 2 ROEs. Your scenario loads 1st ROE (HKLM) and then 2nd ROE (HKCU). I created another 4 ROES (HKCU type) where 2nd calls 3rd etc...but it doesn`t work...
Any suggestions? I`ll try to add rundll32.exe iernonce.dll,RunOnceExProcess into second ROE and merge ROEs 2-5

EDIT: That`s it! Just one thing I have to fix - hidding of 1st ROE (HKLM). Even if I put "EXIT" as a last line it remains there while other ROEs runs...
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.