Magellan456 Posted April 15, 2004 Share Posted April 15, 2004 Hi, i've read threads about the RunOnceEx.cmd but i'm not figuring out how to put it in winnt.sif.I was using a batch file wich i called %systemdrive%\install\hotfixes\hotfixes.cmd in the [GuiRunOnce] section before but then, i've read that you could replace the GuiRunOnce section by RunOnceEx to have a graphical view of what is installing on your computer.I'd like to know how to add the RunOneEx in winnt.sif. Do i have to delete the GuiRunOnce section and replace it with RunOneEx ? If so, do i have to call a file such as RunOnceEx.cmd somewhere ?Thanks for your support,Magellan456 Link to comment Share on other sites More sharing options...
BAM Posted April 15, 2004 Share Posted April 15, 2004 Here u will find everything u ever needed to know... Unattended XP cdenjoy the food. Link to comment Share on other sites More sharing options...
medhunter Posted April 15, 2004 Share Posted April 15, 2004 no entery for RunOnceEx.cmd in winnt.sifu only have to put RunOnceEx.cmd in $OEM$ folder & it will be called from cmdlines.txtI think u should delete guirunonce coz ;not need it thenplz read more at the site @ RunOnceEx section Link to comment Share on other sites More sharing options...
Dee Posted April 15, 2004 Share Posted April 15, 2004 Here u will find everything u ever needed to know... Unattended XP cdenjoy the food.Actually that'sMSFN's Unattended XP CD Link to comment Share on other sites More sharing options...
Magellan456 Posted April 15, 2004 Author Share Posted April 15, 2004 Thanks, that's what i thought but i wasn't quite sure. I went through the XP guide, but it wasn't clear enough though. Thanks to you, i know now !Goodbye,Magellan456 Link to comment Share on other sites More sharing options...
Aaron Posted April 15, 2004 Share Posted April 15, 2004 If you really wanted to execute RunOnceEx.cmd from [GuiRunOnce], you can add rundll32.exe iernonce.dll,RunOnceExProcess to the very bottom of the cmd file, so the RunOnceEx window is launched straight after. Link to comment Share on other sites More sharing options...
Magellan456 Posted April 16, 2004 Author Share Posted April 16, 2004 Hi, Thanks for the Informat AaronXp.Unfortunatly i just finished trying my cd and the RunOnceEx command didn't lunch.I'm now trying to figure out why.Maybe you can help me.I've put the files: cmdlines.txt and RunOnceEx.cmd in the $OEM$ forlder.My cleanup.cmd and prepare.cmd files are in the $OEM$\$1\Install Folder.I have mofified my winnt.sif and removed the [GuiRunOnce] section as proposed above.There's maybe a problem with my svcpack.inf. I'm using it to put some hotfixes during installation... maybe i need to add something to it.Note that the hotfixes in my svc pack where sucsessfully installed during my installation.I don't really know what went wrong.Any help is welcome!Thank you,Magellan456 Link to comment Share on other sites More sharing options...
Aaron Posted April 16, 2004 Share Posted April 16, 2004 Attach a copy of winnt.sif, RunOnceEx.cmd and cmdlines.txt Link to comment Share on other sites More sharing options...
Magellan456 Posted April 16, 2004 Author Share Posted April 16, 2004 Ok. Hi, here's the winnt.sif, RunOnceEx.cmd and cmdlines.txtWinnt.sif;SetupMgrTag[Data] AutoPartition=0 MsDosInitiated="0" UnattendedInstall="Yes"[unattended] UnattendMode=FullUnattended OemSkipEula=Yes OemPreinstall=Yes TargetPath=\WINDOWS Repartition=No UnattendSwitch="yes" WaitForReboot="No" [GuiUnattended] AdminPassword=* EncryptedAdminPassword=NO OEMSkipRegional=1 TimeZone=35 OemSkipWelcome=1[userData] ProductKey=removed FullName="Usager" OrgName="" ComputerName=Utilisateur[TapiLocation] CountryCode=107 AreaCode=819[RegionalSettings] LanguageGroup=1 Language=00000c0c[identification] JoinWorkgroup=WORKGROUP[Networking] InstallDefaultComponents=Yes[Components] msmsgs=offRunOnceEx.cmd :cmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installation des applications" /fREG ADD %KEY%\001 /VE /D "Preparation de l'installation..." /fREG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\prepare.cmd" /fREG ADD %KEY%\005 /VE /D "Pack Reseau Avance" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\hotfixes\Q817778.EXE /Q /O /N /Z" /fREG ADD %KEY%\010 /VE /D "Mise a Jour de Securite pour Ms Data Access Components" /fREG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\hotfixes\Q823718.exe /T:%systemdrive%\install\tmp /C:\"%systemdrive%\install\tmp\dahotfix.exe /q /n\" /Q" /fREG ADD %KEY%\015 /VE /D "Installation de Microsoft Windows Media Player 9" /fREG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\hotfixes\MP.exe /Q:A /R:N" /fREG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\hotfixes\q828026.exe /Q /O /N /Z" /fREG ADD %KEY%\025 /VE /D "Installation de .NET Framework v1.1" /fREG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\hotfixes\frameworks\netfx.msi /qb" /fREG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\hotfixes\frameworks\lpack\langpack.msi /qb" /fREG ADD %KEY%\035 /VE /D "Installation des mises a jour systeme" /fREG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\hotfixes\Q322011.EXE /Q /O /N /Z" /fREG ADD %KEY%\045 /V 1 /D "%systemdrive%\install\hotfixes\Q327979.EXE /Q /O /N /Z" /fREG ADD %KEY%\050 /V 1 /D "%systemdrive%\install\hotfixes\Q330994.exe /Q:A /R:N" /fREG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\hotfixes\Q810243.exe /Q /O /N /Z" /fREG ADD %KEY%\060 /V 1 /D "%systemdrive%\install\hotfixes\814078.EXE /Q:A /R:N" /fREG ADD %KEY%\065 /V 1 /D "%systemdrive%\install\hotfixes\Q817787.exe /Q:A /R:N" /fREG ADD %KEY%\070 /V 1 /D "%systemdrive%\install\hotfixes\Q819696.exe /Q /O /N /Z" /fREG ADD %KEY%\075 /V 1 /D "%systemdrive%\install\hotfixes\q820223.exe /Q:A /R:N" /fREG ADD %KEY%\080 /V 1 /D "%systemdrive%\install\hotfixes\Q821253.exe /Q /O /N /Z" /fREG ADD %KEY%\085 /V 1 /D "%systemdrive%\install\hotfixes\Q822603.exe /Q /O /N /Z" /fREG ADD %KEY%\090 /V 1 /D "%systemdrive%\install\hotfixes\Q824146.exe /Q /O /N /Z" /fREG ADD %KEY%\095 /V 1 /D "%systemdrive%\install\hotfixes\Q826939.EXE /Q /O /N /Z" /fREG ADD %KEY%\100 /V 1 /D "%systemdrive%\install\hotfixes\Q826942.EXE /Q /O /N /Z" /fREG ADD %KEY%\105 /V 1 /D "%systemdrive%\install\hotfixes\Q832483.EXE /T:%systemdrive%\install\tmp2 /C:\"%systemdrive%\install\tmp2\dahotfix.exe /q /n\" /Q" /fREG ADD %KEY%\110 /V 1 /D "%systemdrive%\install\hotfixes\B833998.EXE /Q /O /N /Z" /fREG ADD %KEY%\115 /V 1 /D "%systemdrive%\install\hotfixes\hu10021.exe /Q:A /R:N" /fREG ADD %KEY%\120 /V 1 /D "%systemdrive%\install\hotfixes\setup53.EXE /Q:A /R:N" /fREG ADD %KEY%\125 /V 1 /D "%systemdrive%\install\hotfixes\wm9code.EXE /Q:A /R:N" /fREG ADD %KEY%\130 /VE /D "Installation de Winzip 9.0" /fREG ADD %KEY%\130 /V 1 /D "xcopy %systemdrive%\winapps\winzip\*.* \"%systemdrive%\Program Files\WinZip\ \" /I \"%systemdrive%\Program Files\WinZip\winzip32.exe\" /cleaninstall" /fREG ADD %KEY%\135 /VE /D "Installation Adobe Reader 6.01 FR" /fREG ADD %KEY%\135 /V 1 /D "%systemdrive%\WINAPPS\adobe\Adobe.exe -p"-s /v\"/qn\"" /fREG ADD %KEY%\140 /VE /D "Installation de Kazaa Lite 2.4.3" /fREG ADD %KEY%\140 /V 1 /D "%systemdrive%\WINAPPS\KLite\klite.exe /silent" /fREG ADD %KEY%\145 /VE /D "Installation de Ad-Aware 6" /fREG ADD %KEY%\145 /V 1 /D "%systemdrive%\WINAPPS\aware\aaw6.exe /s" /fREG ADD %KEY%\150 /VE /D "Installation du Msn Messenger 6.1" /fREG ADD %KEY%\150 /V 1 /D "%systemdrive%\WINAPPS\msnmess\MsnMsgs.msi /QB" /fREG ADD %KEY%\155 /VE /D "Installation de la barre d'outils Google" /fREG ADD %KEY%\155 /V 1 /D "%systemdrive%\WINAPPS\google\google.exe" /fREG ADD %KEY%\160 /VE /D "Application des optimisations de la base de registre..." /fREG ADD %KEY%\160 /V 1 /D "REGEDIT /S %systemdrive%\install\tweaks.reg" /fREG ADD %KEY%\165 /VE /D "Nettoyage et Redemarrage" /fREG ADD %KEY%\165 /V 1 /D "%systemdrive%\install\cleanup.cmd" /fEXITcmdlines.txt:[COMMANDS]"RunOnceEx.cmd"There's all the files i'm using. Thank youMagellan456 Link to comment Share on other sites More sharing options...
Magellan456 Posted April 16, 2004 Author Share Posted April 16, 2004 Hi. Good news, my cd works now. But, since i'm here, i'd like to know something.My Winzip is not installing during my setup. I knew this one would be though because it uses " a lot.Maybe you could help me with that.When i was using [GuiRunOnce] with hotfixes.cmd i had this for winzip:Echo Installation de Winzip 9.0xcopy %systemdrive%\winapps\winzip\*.* "%systemdrive%\Program Files\WinZip\" /I"%systemdrive%\Program Files\WinZip\winzip32.exe" /cleaninstallEcho.As you can see, it uses a lot of " and the problem comes when i put \ in RunOnceEx to uses " commands.Here's my RunOnceEx.cmd using winzip:REG ADD %KEY%\130 /VE /D "Installation de Winzip 9.0" /fREG ADD %KEY%\130 /V 1 /D "xcopy %systemdrive%\winapps\winzip\*.* \"%systemdrive%\Program Files\WinZip\ \" /I \"%systemdrive%\Program Files\WinZip\winzip32.exe\" /cleaninstall" /fI put a \ separated by a space by choice in the line (...)systemdrive%\Program Files\WinZip\ \" /I \"%systemdrive%\Program(...) Maybe that's the problem... Another thing i'd like to know, if you don't mind, is how can i create a menu at the end of the installation asking the user wich applications he'd like to install, such as Norton Antivirus, Spysweeper, Winrar...etc. I've seen menu like this in some threads but i didn't find how to do it.Thanks a lot for your support!Magellan456 Link to comment Share on other sites More sharing options...
Aaron Posted April 16, 2004 Share Posted April 16, 2004 You're over-complicating it, its better to launch a batch file from RunOnceEx containing the xcopy commands. Otherwise add a cmd.exe /c before the xcopy command. Link to comment Share on other sites More sharing options...
Magellan456 Posted April 16, 2004 Author Share Posted April 16, 2004 Could you be more specficic Aaronxp ?What do you mean by launch a batch file from RunOnceEx containing the xcopy commands ?Would i have to create a .cmd file containing the xcopy command about winzip and put it in the $oem$ folder afterward ?And if so, do i add a line at the end in my runonceex.cmd pointing to this .cmd file ?You're also suggesting me to Otherwise add a cmd.exe /c before the xcopy command. What does the /c stands for ?Thank you, you're really nice to help me through this one pal,Magellan456 Link to comment Share on other sites More sharing options...
Aaron Posted April 16, 2004 Share Posted April 16, 2004 What do you mean by launch a batch file from RunOnceEx containing the xcopy commands ?Would i have to create a .cmd file containing the xcopy command about winzip and put it in the $oem$ folder afterward ?Yes, create a cmd file with just this:xcopy %systemdrive%\winapps\winzip\ "%programfiles%\WinZip\" /I"%programfiles%\WinZip\winzip32.exe" /cleaninstallEXITThen launch it from RunOnceEx with something like this:REG ADD %KEY%\040 /VE /D "Copying Winzip files" /fREG ADD %KEY%\040 /V 1 /D "%systemdrive%\path\to\winzip.cmd" /fTo answer your last question: "/C Carries out the command specified by string and then terminates" (this is from typing out cmd.exe /?). But its less messy using the above method anyway. Link to comment Share on other sites More sharing options...
Magellan456 Posted April 19, 2004 Author Share Posted April 19, 2004 Thanks AaronXP. Now my cd works like a charm.Cheers,Magellan456 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