Guilherme Posted October 5, 2005 Posted October 5, 2005 Hey, im new in win unattended, i discovered it yesterday....i read the tutorial and i have some doubts:cmdlines.txt --> where i put this file? (Actually it is in $OEM$ directory)I used the program RunOnceEx.cmd Creator to create a RunOnceEx, the file is here:cmdow @ /HID@Echo OffSET PP=%systemdrive%\install\Applications\SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Instalando Programas" /fREG ADD %KEY%\000 /VE /D "Acrobat Reader 6.0" /fREG ADD %KEY%\000 /V 1 /D "%PP%AdbeRdr60_ptb_full.exe -p"-s /v\"/qn\""" /fREG ADD %KEY%\001 /VE /D "Windows MediaPlayer 9" /fREG ADD %KEY%\001 /V 1 /D "%PP%MP10Setup.exe /Q:A /R:N /C:\"setup_wm.exe /DisallowSystemRestore /Q:A /R:N\"" /fREG ADD %KEY%\002 /VE /D "Yahoo Messenger 5.6" /fREG ADD %KEY%\002 /V 1 /D "%PP%ymsgr7br.exe /s" /fREG ADD %KEY%\003 /VE /D "Itunes" /fREG ADD %KEY%\003 /V 1 /D "%PP%iTunesSetup.exe /silent /s" /fREG ADD %KEY%\004 /VE /D "Win Rar" /fREG ADD %KEY%\004 /V 1 /D "%PP%wrar350br.exe /s" /fREG ADD %KEY%\005 /VE /D "Luxor" /fREG ADD %KEY%\005 /V 1 /D "%PP%luxor_setup.exe /s" /fREG ADD %KEY%\006 /VE /D "Zuma" /fREG ADD %KEY%\006 /V 1 /D "%PP%ZumaSetup.exe /silent /s" /fREG ADD %KEY%\007 /VE /D "Super Tux" /fREG ADD %KEY%\007 /V 1 /D "%PP%Super Tux.exe /s /silent" /fREG ADD %KEY%\008 /VE /D "Microsoft Antispyware" /fREG ADD %KEY%\008 /V 1 /D "%PP%microsoftantispywareinstall.exe /silent /s" /fREG ADD %KEY%\009 /VE /D "LBreakout 2" /fREG ADD %KEY%\009 /V 1 /D "%PP%LBreakout 2.exe /silent /s" /fREG ADD %KEY%\010 /VE /D "Msn Messenger 7.5" /fREG ADD %KEY%\010 /V 1 /D "%PP%SetupDl.exe /silent /s" /fREG ADD %KEY%\011 /VE /D "" /fREG ADD %KEY%\011 /V 1 /D "%PP%Nero-6.6.0.16.exe /SILENT /NOREBOOT /SN=************ /WRITE_SN" /fREG ADD %KEY%\012 /VE /D "Register Tweaks" /fREG ADD %KEY%\012 /V 1 /D "%PP%regtweaks.reg" /fEXITi want to know if the programs parameters in RunOnceEx is all right...my directory structure:CMDlines.txt:[COMMANDS]"REGEDIT /S regtweaks.reg""runonceex"my Winnt.sif:;SetupMgrTag[Data] AutoPartition=1 MsDosInitiated="0" UnattendedInstall="Yes"[unattended] UnattendMode=FullUnattended OemSkipEula=Yes OemPreinstall=No TargetPath=\WINDOWS OemPreinstall=Yes UnattendSwitch="yes"[GuiUnattended] AdminPassword="****" EncryptedAdminPassword=NO OEMSkipRegional=1 TimeZone=17 OemSkipWelcome=1[userData] ProductKey=************* FullName="***" OrgName="***" ComputerName=***[Display] BitsPerPel=32 Xresolution=1024 YResolution=768[RegionalSettings] LanguageGroup=1 Language=00006[identification] JoinWorkgroup=WORKGROUP[Networking] InstallDefaultComponents=Yescan i create an iso file already?sorry
Doc Symbiosis Posted October 5, 2005 Posted October 5, 2005 Everything seems to be fine. Just have be brave, create the iso and test your install.
Guilherme Posted October 5, 2005 Author Posted October 5, 2005 (edited) im brave but my pc is Celeron 466, test this on a virtual machine will take a looooooong time....and i dont have other pc to test so i want all right and i will install....my runonceex is right? the parameters and the %PP%'s are right?its "%PP%AdbeRdr60_ptb.exe or "%PP%\AdbeRdr60_ptb.exe? Edited October 5, 2005 by Guilherme
Doc Symbiosis Posted October 5, 2005 Posted October 5, 2005 Your Runonceex seems to be fine, at least I can't find an obvious mistake.%PP%AdbeRdr60_ptb.exe is the right choice, since you have the "\" at the end of the variable %PP%. About the parameters I can't say anything, didn't try to install most of these programs silently.
Guilherme Posted October 5, 2005 Author Posted October 5, 2005 (edited) so if i create an iso image, %PP%AdbeRdr60_ptb.exe will be %systemdrive%\install\Applications\ ?and =%systemdrive%\install\Applications\ is $OEM$\$1\Install\Applications ?RunOnceEx will work perfectly? Edited October 5, 2005 by Guilherme
truromeo4juliet Posted October 5, 2005 Posted October 5, 2005 im brave but my pc is Celeron 466, test this on a virtual machine will take a looooooong time....and i dont have other pc to test so i want all right and i will install....my runonceex is right? the parameters and the %PP%'s are right?its "%PP%AdbeRdr60_ptb.exe or "%PP%\AdbeRdr60_ptb.exe?<{POST_SNAPBACK}>it'd take longer to test the cd on your actual machine only to find out that you messed up and have to start over and try again... use a virtual machine, you'll thank yourself in the long run
Guilherme Posted October 5, 2005 Author Posted October 5, 2005 (edited) yeah....there's something wrong with the runonceex....i open the Runonce and the program dont install nothing... just say that "The operation was concluded with success"hey, if i change:SET PP=%systemdrive%\install\Applications\toSET PP=%CDROM%\$OEM$\$1\install\Applications\it will work? Edited October 5, 2005 by Guilherme
Zxian Posted October 5, 2005 Posted October 5, 2005 You could, but then there'd be no need to put your installers in the $OEM$ folders. If you want to do that, create a new folder in the root of your CD called Installers and put all your installers in that folder. Use this at the beginning of your runonceex.cmd file to call the installers:cmdow @ /HID@Echo OffFOR %%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:\win51ip.SP2 SET CDROM=%%i:SET PP=%cdrom%\Installers\Also... your cmdlines.txt should have the following:[COMMANDS]"REGEDIT /S regtweaks.reg""runonceex.cmd"That's probably why your RunOnceEx wasn't running... you don't have a runonceex file - you have a runonceex.cmd file.Windows XP hides extensions by default. During the installation phase, you still need them.
MHz Posted October 6, 2005 Posted October 6, 2005 OEMPreInstall is listed twice in your Winnt.sif. Once as yes and once as no. Only OEMPreInstall = yes is what you want.
muiz Posted October 6, 2005 Posted October 6, 2005 (edited) REG ADD %KEY%\010 /VE /D "Msn Messenger 7.5" /fREG ADD %KEY%\010 /V 1 /D "%PP%SetupDl.exe /silent /s" /fThis is not going to work.Try it this way :REG ADD %KEY%\010 /VE /D "MSN Messenger " /fREG ADD %KEY%\010 /V 1 /D "%PP%\Software\msn\MsnMsgs.msi /qn" /fREG ADD %KEY%\010 /V 2 /D "taskkill /IM msnmsgr.exe /F"First unpack the MSN setupup wit a program like winrar.So you get 2 files : MsnMsgs.msi and bootstrap.exe.i noticed that more switches are not correct, you better do some research on that.Have fun , and good luck with your cd Edited October 6, 2005 by muiz
Guilherme Posted October 6, 2005 Author Posted October 6, 2005 hum, thanks...i need to install Install Shieldd or other installer first?
Guilherme Posted October 7, 2005 Author Posted October 7, 2005 (edited) one last doubt, i promisse when the file winnt.sif will be executed? And cmdlines?i changed the programs's directory... lets see now if it will work....VMWare is not working here... i think that i got a license 3 months ago and it expired.... and Microsoft virtual machine is not working too.... i will test the RunOnceEx first and if it works i will be brave This cd is a Windows XP Professional w/ Service Pack 1My files now:cmdlines.txt:[COMMANDS]"runonceex.cmd"RunOnceEx.cmd:cmdow @ /HID@Echo OffFOR %%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:\win51ip.SP2 SET CDROM=%%i:SET PP=%cdrom%\Progs\SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Instalador de Programas" /fREG ADD %KEY%\000 /VE /D "Acrobat Reader 6.0" /fREG ADD %KEY%\000 /V 1 /D "%PP%AdbeRdr60_ptb_full.exe -p -s /v\ /qn\" /fREG ADD %KEY%\001 /VE /D "Yahoo Messenger 7" /fREG ADD %KEY%\001 /V 1 /D "%PP%ymsgr7br.exe /silent /s" /fREG ADD %KEY%\002 /VE /D "iTunes" /fREG ADD %KEY%\002 /V 1 /D "%PP%iTunesSetup.exe /S /V ISSETUPDRIVEN=0 ASSUME_MEDIA_DEFAULTS=1 ASSUME_QT_DEFAULTS=0 ALLUSERS=1 SILENT_INSTALL=1 /QN" /fREG ADD %KEY%\003 /VE /D "WinRar" /fREG ADD %KEY%\003 /V 1 /D "%PP%wrar350br.exe /s" /fREG ADD %KEY%\004 /VE /D "Luxor" /fREG ADD %KEY%\004 /V 1 /D "%PP%luxor_setup.exe /s" /fREG ADD %KEY%\005 /VE /D "Zuma" /fREG ADD %KEY%\005 /V 1 /D "%PP%ZumaSetup.exe /silent /s" /fREG ADD %KEY%\006 /VE /D "Super Tux" /fREG ADD %KEY%\006 /V 1 /D "%PP%Super Tux.exe /s /silent" /fREG ADD %KEY%\006 /V 2 /D "taskkill /IM msnmsgr.exe" /fREG ADD %KEY%\007 /VE /D "Nero Burning ROM" /fREG ADD %KEY%\007 /V 1 /D "%PP%Nero-6.6.0.16.exe /SILENT /NOREBOOT /SN=1A23-0009-4030-2228-8119-7297 /WRITE_SN" /fREG ADD %KEY%\008 /VE /D "Opera" /fREG ADD %KEY%\008 /V 1 /D "%PP%ow32pt-BRpt-BR850.exe /S" /fREG ADD %KEY%\009 /VE /D "Netscape 7.02" /fREG ADD %KEY%\009 /V 1 /D "%PP%nsb-install-8-0.exe /S" /fREG ADD %KEY%\010 /VE /D "MSN Messenger 7.5" /fREG ADD %KEY%\010 /V 1 /D "%PP%\Software\msn\MsnMsgs.msi /qn" /fREG ADD %KEY%\010 /V 2 /D "taskkill /IM msnmsgr.exe /F"REG ADD %KEY%\011 /VE /D "Register Tweaks" /fREG ADD %KEY%\011 /V 1 /D "%PP%regtweaks.reg" /fEXITwinnt.sif:;SetupMgrTag[Data] AutoPartition=1 MsDosInitiated="0" UnattendedInstall="Yes"[Unattended] UnattendMode=FullUnattended OemSkipEula=Yes OemPreinstall=Yes TargetPath=\WINDOWS UnattendSwitch=yes[GuiUnattended] AdminPassword="***" EncryptedAdminPassword=NO OEMSkipRegional=1 TimeZone=65 OemSkipWelcome=1[UserData] ProductKey= FullName="" OrgName="xxx" ComputerName=CASA[Display] BitsPerPel=32 Xresolution=1024 YResolution=768[RegionalSettings] LanguageGroup=10,9,1,7 Language=00000416[Identification] JoinWorkgroup=WORKGROUP[Networking] InstallDefaultComponents=Yesit's all i need, huh? Edited October 7, 2005 by Guilherme
aspenjim Posted October 7, 2005 Posted October 7, 2005 (edited) My advice is KISS.... Keep it simple. You are trying to run before you learn to crawl. This stuff isn't easy and takes even seasoned gurus lots of patience and practice and perseverance. I highly recommend just using a winnt.sif file (which gets read not executed right after the PC boots from the CD). It is an answer file and is the first place to learn unattended installs. You set yourself up for major failure trying to make all of that stuff work the first try. It may take 30 tries to perfect, and then when you get comfortable, things change (software, windows, updates, installation methods). You can execute your runonceex cmd on your current windows and get a feel for if it will work or not. When you execute it, on the next reboot, it will run and you will see your errors.So keep it simple.... you'll be far ahead of the game.my 2 cents.... and EDIT out your keysaj Edited October 7, 2005 by aspenjim
Zxian Posted October 7, 2005 Posted October 7, 2005 aspenjim has good advice. Start off by making a UA install. Just plain old XP installing on its own. Once you've got that working, then you can move on to including application installs. As for what you've got there, the entry in the cmdlines.txt must be the exact same as the file name, and it is case sensitive. If the file is named RunOnceEx.cmd, enter "RunOnceEx.cmd". If it's named runonceex.cmd, the enter "runonceex.cmd". You've been going back and forth between using capitalizations and not.
Guilherme Posted October 8, 2005 Author Posted October 8, 2005 Perfect instalation... thanks everbody!!!i changed somethings in winnt.sif and the installation was successful
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now