Modano Posted August 30, 2004 Share Posted August 30, 2004 Hello,i want to test my runonceex descripted here http://unattended.msfn.org/xp/runonceex.htm, but only a dos window opens for a few seconds, and not the install window shown here http://unattended.msfn.org/images/runonceex.gifCan someone tell me how does ist work ? Here is my runonceex :cmdow @ /HID@echo offIF 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:IF EXIST K:\CD.txt set CDROM=K:IF EXIST L:\CD.txt set CDROM=L:IF EXIST M:\CD.txt set CDROM=M:IF EXIST N:\CD.txt set CDROM=N:IF EXIST O:\CD.txt set CDROM=O:SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installation von diversen Programmen" /fREG ADD %KEY%\001 /VE /D "Installation vorbereiten..." /fREG ADD %KEY%\001 /V 1 /D "%CDROM%\Software\prepare.cmd" /fREG ADD %KEY%\002 /VE /D "Installiere Office 2003 Professional" /fREG ADD %KEY%\002 /V 1 /D "%CDROM%\Software\office2003\setup.exe TRANSFORMS=Unattended.MST /qb-" /fREG ADD %KEY%\002 /V 2 /D "%CDROM%\Software\sleep\Sleep.exe /5" /fREG ADD %KEY%\003 /VE /D "Einstellungen für XP Antispy vornehmen" /fREG ADD %KEY%\003 /V 1 /D "%CDROM%\Software\ regedit /S C:\install\applications\xpantispy\xpantispy.reg" /fREG ADD %KEY%\003 /V 2 /D "regsvr32.exe /u /s regwizc.dll" /fREG ADD %KEY%\003 /V 3 /D "regsvr32.exe /u /s licdll.dll" /fREG ADD %KEY%\003 /V 4 /D "regsvr32.exe /u /s zipfldr.dll" /fREG ADD %KEY%\003 /V 5 /D "%CDROM%\Software\sleep\Sleep.exe /5" /fREG ADD %KEY%\005 /VE /D "Installiere Adobe Reader 6" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\Software\acrobat\AdbeRdr60_deu_full.exe /s" /fREG ADD %KEY%\005 /V 2 /D "%CDROM%\Software\sleep\Sleep.exe /5" /fREG ADD %KEY%\035 /VE /D "Installiere Flashget 1.4" /fREG ADD %KEY%\035 /V 1 /D "%CDROM%\Software\flashget\fgf160.exe /S" /fREG ADD %KEY%\035 /V 2 /D "REGEDIT /S %CDROM%\apps\flashget\register.reg" /fREG ADD %KEY%\035 /V 3 /D "%CDROM%\Software\sleep\Sleep.exe /5" /fREG ADD %KEY%\037 /VE /D "Installiere IsoBuster 1.5" /fREG ADD %KEY%\037 /V 1 /D "%CDROM%\Software\IsoBuster\IsoBuster1.5.exe /VERYSILENT /SP-" /fREG ADD %KEY%\037 /V 2 /D "taskkill.exe /F /IM isobuster.exe" /fREG ADD %KEY%\037 /V 3 /D "%CDROM%\Software\sleep\Sleep.exe /5" /fREG ADD %KEY%\038 /VE /D "Installier Nero Burning 6.0" /fREG ADD %KEY%\038 /V 2 /D "%CDROM%\Software\Nero\Nero6.0.0.9.exe /SN=xxxx /WRITE_SN /SILENT /NOREBOOT" /fREG ADD %KEY%\038 /V 3 /D "%CDROM%\Software\sleep\Sleep.exe /5" /fREG ADD %KEY%\039 /VE /D "Installiere Partition Magic 8" /fREG ADD %KEY%\039 /V 1 /D "%CDROM%\Software\partition\pmagic8.exe /s /v/qn" /fREG ADD %KEY%\039 /V 2 /D "%CDROM%\Software\sleep\Sleep.exe /5" /fREG ADD %KEY%\040 /VE /D "Installiere WinRAR 3.20" /fREG ADD %KEY%\040 /V 1 /D "%CDROM%\Software\winrar\wrar34b2.exe /s" /fREG ADD %KEY%\040 /V 2 /D "%CDROM%\Software\sleep\Sleep.exe /5" /fREG ADD %KEY%\053 /VE /D "Installiere .NET Framework 1.1" /fREG ADD %KEY%\053 /V 1 /D "%CDROM%\Software\netframework\dotnetfw.exe" /fREG ADD %KEY%\053 /V 2 /D "%CDROM%\Software\sleep\Sleep.exe /5" /fREG ADD %KEY%\065 /VE /D "Installiere Sun Java" /fREG ADD %KEY%\065 /V 1 /D "%CDROM%\Software\SunJava\sunjava.exe /s /v/qn" /fREG ADD %KEY%\065 /V 2 /D "REGEDIT /S %CDROM%\Software\SunJava\RemoveSunJavaUpdateCheck.reg" /fREG ADD %KEY%\065 /V 3 /D "%CDROM%\Software\sleep\Sleep.exe /5" /fREG ADD %KEY%\066 /VE /D "Installiere Spybot" /fREG ADD %KEY%\066 /V 1 /D "%CDROM%\Software\spybot\spybot.exe /silent" /fREG ADD %KEY%\066 /V 2 /D "%CDROM%\Software\sleep\Sleep.exe /5" /fREG ADD %KEY%\067 /VE /D "Installiere AnyDVD" /fREG ADD %KEY%\067 /V 1 /D "%CDROM%\Software\anydvd\AnyDVD.exe /s" /fREG ADD %KEY%\067 /V 2 /D "%CDROM%\Software\sleep\Sleep.exe /5" /fREG ADD %KEY%\076 /VE /D "Installiere DVD Shrink" /fREG ADD %KEY%\076 /V 1 /D "%CDROM%\Software\dvdshrink\dvdshrink.exe /silent" /fREG ADD %KEY%\076 /V 2 /D "%CDROM%\Software\sleep\Sleep.exe /5" /fREG ADD %KEY%\077 /VE /D "Installiere Spywareblaster" /fREG ADD %KEY%\077 /V 1 /D "%CDROM%\Software\spywareblaster\spywareblaster.exe /verysilent /NOCANCEL /SP- /NORESTART" /fREG ADD %KEY%\077 /V 2 /D "taskkill.exe /F /IM spywareblaster.exe" /fREG ADD %KEY%\077 /V 3 /D "%CDROM%\Software\sleep\Sleep.exe /5" /fREG ADD %KEY%\085 /VE /D "Lösche temporäre Dateien und starte danach neu !" /fREG ADD %KEY%\085 /V 1 /D "%CDROM%\Software\cleanup.cmd" /fEXIT Link to comment Share on other sites More sharing options...
Astalavista Posted August 30, 2004 Share Posted August 30, 2004 your code looks good... hmmm i wonder here let me attach mine and check to see if it is working on your system.it should work without a cd or anything.RunOnceEx.cmd Link to comment Share on other sites More sharing options...
Modano Posted August 30, 2004 Author Share Posted August 30, 2004 It works, but only with the dos window for a few seconds ! Link to comment Share on other sites More sharing options...
visaversa Posted August 30, 2004 Share Posted August 30, 2004 you have to reboot ofcourse before you see the effect of entering "RunOnceEx" commands, they just run once after reboot... Link to comment Share on other sites More sharing options...
Anderz Posted August 30, 2004 Share Posted August 30, 2004 And the CD.txt file has been created on the CD? Link to comment Share on other sites More sharing options...
Modano Posted August 30, 2004 Author Share Posted August 30, 2004 Many thanx, after rebooting, the Install Window opens and started... Link to comment Share on other sites More sharing options...
turbomcp Posted August 30, 2004 Share Posted August 30, 2004 you can also just loggof and login it will process the runonce also Link to comment Share on other sites More sharing options...
mcardlej Posted August 30, 2004 Share Posted August 30, 2004 Also you can run the following from command line or start->runrundll32.exe iernonce.dll,RunOnceExProcess Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now