Wip Posted October 14, 2005 Posted October 14, 2005 Well because its is my first unattended xp creation , i would like some help over here so i don't make mistakes with bad switches or commands. Well i'm a starter so i don't make use of commands throw usage of .ini files, its just simple : install software without configuration about serial keys or including packages. I had a look for switches on the forum and used them in mine RunOnceEx.cmd, Because of the many ways and people editing setup files or ini files i'm not sure about all switches of mine. And also i don't even know when a file is a msi package or just a .exe . Well i did has much as i could and download also handy packages from RyanWell this is were i am :All Software files are in different mapsAnd this is mine RunOnceEx.cmd :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:SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\001 /VE /D "Preparing Installation..." /fREG ADD %KEY%\001 /V 1 /D "%CDROM%\prepare.cmd" /fREG ADD %KEY%\005 /VE /D "Alcohol 120 Percent" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\Software\alc\setup.exe /qn Reboot=Suppress" /fREG ADD %KEY%\005 /V 2 /D "REGEDIT /S %CDROM%\Software\alcohol\register.reg" /fREG ADD %KEY%\010 /VE /D "Adobe Acrobat Reader 7" /fREG ADD %KEY%\010 /V 1 /D "%CDROM%\Software\adobe\acroread703.exe -p"-s /v\"/qn\"" /fREG ADD %KEY%\015 /VE /D "AVG Antivirus 7 Free Edition" /fREG ADD %KEY%\015 /V 1 /D "%CDROM%\Software\avg\avg.exe /HIDE /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED" /fREG ADD %KEY%\020 /VE /D "Kazaa Lite Codec Pack" /fREG ADD %KEY%\020 /V 1 /D "%CDROM%\Software\codec\klcodec.exe /silent /fREG ADD %KEY%\025 /VE /D "Crimson Editor 3.7" /fREG ADD %KEY%\025 /V 1 /D "%CDROM%\Software\crims\crimson.exe /s /v/qn" /fREG ADD %KEY%\030 /VE /D "Deamon Tools" /fREG ADD %KEY%\030 /V 1 /D "%CDROM%\Software\deam\deam.exe /qn /Reboot=Suppress /fREG ADD %KEY%\035 /VE /D "DVD Shrink" /fREG ADD %KEY%\035 /V 1 /D "%CDROM%\Software\dvd\dvdshrink.exe /s /v/qn" /fREG ADD %KEY%\040 /VE /D "IMTO MPEG ENCODER" /fREG ADD %KEY%\040 /V 1 /D "%CDROM%\Software\enc\encoder.exe /s /v/qn" /fREG ADD %KEY%\045 /VE /D "FireFox 1.7" /fREG ADD %KEY%\045 /V 1 /D "%CDROM%\Software\fire\firefox.exe /s /v/qn" /fREG ADD %KEY%\050 /VE /D "Irfan Vieuwer" /fREG ADD %KEY%\050 /V 1 /D "%CDROM%\Software\irfan\irfan.exe /s /v/qn" /fREG ADD %KEY%\055 /VE /D "Java Runtime Script" /fREG ADD %KEY%\055 /V 1 /D "%CDROM%\Software\java\java.exe /s /v/qn" /fREG ADD %KEY%\060 /VE /D "Microsoft AntiSpyware" /fREG ADD %KEY%\060 /V 1 /D "%CDROM%\Software\msa\msas.exe /s /v/qn" /fREG ADD %KEY%\065 /VE /D "Nero 6 " /fREG ADD %KEY%\065 /V 1 /D "%CDROM%\Software\nero\nero.exe /SILENT /NOREBOOT /SN=1A21-7543-6787-2748-8730-0229 /WRITE_SN /fREG ADD %KEY%\070 /VE /D "Microsoft Office 2003 Proffesional" /fREG ADD %KEY%\070 /V 1 /D "%CDROM%\Software\off\SETUP.exe /qb /fREG ADD %KEY%\075 /VE /D "Paint.net 2.0" /fREG ADD %KEY%\075 /V 1 /D "%CDROM%\Software\paint\paint2.exe /s /qn" /fREG ADD %KEY%\080 /VE /D "Quicktime 7" /fREG ADD %KEY%\080 /V 1 /D "%CDROM%\Software\quick\QuickTimeInstaller.exe /VERYSILENT /SP- /fREG ADD %KEY%\085 /VE /D "Steam" /fREG ADD %KEY%\085 /V 1 /D "%CDROM%\Software\steam\Steam.exe /s /v/qn" /fREG ADD %KEY%\090 /VE /D "VLC Media Player" /fREG ADD %KEY%\090 /V 1 /D "%CDROM%\Software\vlc\vlc.exe /s /fREG ADD %KEY%\095 /VE /D "Winamp 5.1" /fREG ADD %KEY%\095 /V 1 /D "%CDROM%\Software\win\Winamp5.1.exe /s /qb /fREG ADD %KEY%\100 /VE /D "Winrar 3.5" /fREG ADD %KEY%\100 /V 1 /D "%CDROM%\Software\wrar\wrar.exe /s /fREG ADD %KEY%\105 /VE /D "MSN Messenger 7.5" /fREG ADD %KEY%\105 /V 1 /D "%CDROM%\Software\msn\Install_MSN_Messenger.exe /qb" /fREG ADD %KEY%\110 /VE /D "Microsoft.NET Framework 1.1" /fREG ADD %KEY%\110 /V 1 /D "%CDROM%\Software\net\netfxsp1.exe /s /v/qn" /fEXITIf you have any questions just ask Thnx for reading and helping !Thnx Wip
OrcoXP Posted October 14, 2005 Posted October 14, 2005 Well for starters...it seems good...I can't see any problems with it but you can replace this: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:with this: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:and you can add the following line in to do one section of RunOnceEX and then start another immediately after it...(without REG ADD...)rundll32.exe iernonce.dll,RunOnceExProcessthis will allow you to separate the apps into groups...like System Tools, IM& P2PAnd any time the line gets too complicated you can make a separate CMD file for it and then call on it...I'll attach min and you can see mostly what I have doneGUIRunOnce.cmd
Bensit Posted October 15, 2005 Posted October 15, 2005 I've been struggling with this one too:REG ADD %KEY%\060 /VE /D "Microsoft AntiSpyware" /fREG ADD %KEY%\060 /V 1 /D "%CDROM%\Software\msa\msas.exe /s /v/qn" /fThis way you get an error after the installation saying you have to reinstall.....Haven't figurerd it out yet.
Wip Posted October 17, 2005 Author Posted October 17, 2005 thnx OrcoXP!!! Well i will try it out soon enough and thanx for the attachement Well Bensit í'll have a look because i don't know what to do otherwise....
Wip Posted October 18, 2005 Author Posted October 18, 2005 well OrcoXP after running RunOnceEx.cmd i noticed it didn't work properly.. It worked later.. but i found out that the local paths to some batch files or wrong and also to files that are located in the Software directory.What i get is a : Working Windows XP SP2 but without software, because he can't find the setup or .exe filesAlso i get more users then instead of 1 Maybe it is becuase of SP2 intro that ask you for updates and internet connection to download these as fast as possible..Well here it is index of $OEM$ :Well i used a example of prepare.cmd that looks like this ( some words are dutch because i followed also a handy dutch tutorial which can be found on www.driverpacks.net ) :cmdow @ /HIDFOR %%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:DEL "%systemroot%\*.bmp"DEL "%systemroot%\Web\Wallpaper\*.jpg"DEL "%systemroot%\system32\dllcache\*.scr"DEL "%systemroot%\system32\*.scr"DEL "%AllUsersProfile%\Start Menu\Windows Update.lnk"DEL "%AllUsersProfile%\Start Menu\Programmatoegang en -instellingen.lnk"DEL "%AllUsersProfile%\Start Menu\Windows-catalogus.lnk"EXITWell thise file is located in the directory $OEM$ and the error reports that /prepare.cmd cannot be found. And here again the working RunOnceEx.cmd with wrong local paths to .exe files :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:\CD.TXT SET CDROM=%%i:SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /FREG ADD %KEY%\001 /VE /D "Preparing Installation..." /FREG ADD %KEY%\001 /V 1 /D "%CDROM%\prepare.cmd" /FREG ADD %KEY%\005 /VE /D "Alcohol 120 Percent" /FREG ADD %KEY%\005 /V 1 /D "%CDROM%\Software\alc\setup.exe /qn Reboot=Suppress" /FREG ADD %KEY%\005 /V 2 /D "REGEDIT /S %CDROM%\Software\alcohol\register.reg" /FREG ADD %KEY%\010 /VE /D "Adobe Acrobat Reader 7" /FREG ADD %KEY%\010 /V 1 /D "%CDROM%\Software\adobe\acroread703.exe -p"-s /v\"/qn\"" /FREG ADD %KEY%\015 /VE /D "AVG Antivirus 7 Free Edition" /FREG ADD %KEY%\015 /V 1 /D "%CDROM%\Software\avg\avg.exe /HIDE /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED" /FREG ADD %KEY%\020 /VE /D "Kazaa Lite Codec Pack" /FREG ADD %KEY%\020 /V 1 /D "%CDROM%\Software\codec\klcodec.exe /silent /FREG ADD %KEY%\025 /VE /D "Crimson Editor 3.7" /FREG ADD %KEY%\025 /V 1 /D "%CDROM%\Software\crims\crimson.exe /s /FREG ADD %KEY%\030 /VE /D "Deamon Tools" /FREG ADD %KEY%\030 /V 1 /D "%CDROM%\Software\deam\deam.exe /qn /Reboot=Suppress /FREG ADD %KEY%\035 /VE /D "DVD Shrink" /FREG ADD %KEY%\035 /V 1 /D "%CDROM%\Software\dvd\dvdshrink.exe /s /FREG ADD %KEY%\040 /VE /D "IMTO MPEG ENCODER" /FREG ADD %KEY%\040 /V 1 /D "%CDROM%\Software\enc\encoder.exe /s /FREG ADD %KEY%\045 /VE /D "FireFox 1.7" /FREG ADD %KEY%\045 /V 1 /D "%CDROM%\Software\fire\firefox.exe /s /qn /FREG ADD %KEY%\050 /VE /D "Irfan Vieuwer" /FREG ADD %KEY%\050 /V 1 /D "%CDROM%\Software\irfan\irfan.exe /s /FREG ADD %KEY%\055 /VE /D "Java Runtime Script" /FREG ADD %KEY%\055 /V 1 /D "%CDROM%\Software\java\java.exe /s /qb /FREG ADD %KEY%\060 /VE /D "Microsoft AntiSpyware" /FREG ADD %KEY%\060 /V 1 /D "%CDROM%\Software\msa\msas.exe /s /v /qb /FREG ADD %KEY%\065 /VE /D "Nero 6" /FREG ADD %KEY%\065 /V 1 /D "%CDROM%\Software\nero\nero.exe /SILENT /NOREBOOT /SN=1A21-7543-6787-2748-8730-0229 /WRITE_SN /FREG ADD %KEY%\070 /VE /D "Microsoft Office 2003 Proffesional" /FREG ADD %KEY%\070 /V 1 /D "%CDROM%\Software\off\SETUP.exe /qb /FREG ADD %KEY%\075 /VE /D "Paint.net 2.0" /FREG ADD %KEY%\075 /V 1 /D "%CDROM%\Software\paint\paint2.exe /s /qn /FREG ADD %KEY%\080 /VE /D "Quicktime 7" /FREG ADD %KEY%\080 /V 1 /D "%CDROM%\Software\quick\QuickTimeInstaller.exe /VERYSILENT /SP- /FREG ADD %KEY%\085 /VE /D "Steam" /FREG ADD %KEY%\085 /V 1 /D "%CDROM%\Software\steam\Steam.exe /s /v/qn /FREG ADD %KEY%\090 /VE /D "VLC Media Player" /FREG ADD %KEY%\090 /V 1 /D "%CDROM%\Software\vlc\vlc.exe /s /FREG ADD %KEY%\095 /VE /D "Winamp 5.1" /FREG ADD %KEY%\095 /V 1 /D "%CDROM%\Software\win\Winamp5.1.exe /s /qb /FREG ADD %KEY%\100 /VE /D "Winrar 3.5" /FREG ADD %KEY%\100 /V 1 /D "%CDROM%\Software\wrar\wrar.exe /s /FREG ADD %KEY%\105 /VE /D "MSN Messenger 7.5" /FREG ADD %KEY%\105 /V 1 /D "%CDROM%\Software\msn\Install_MSN_Messenger.exe /qb /FREG ADD %KEY%\110 /VE /D "Microsoft.NET Framework 1.1" /FREG ADD %KEY%\110 /V 1 /D "%CDROM%\Software\net\netfxsp1.exe /s /v /qn /FREG ADD %KEY%\115 /VE /D "Register Tweaks" /FREG ADD %KEY%\115 /V 1 /D "%CDROM%\install\regtweaks.reg" /FREG ADD %KEY%\120 /VE /D "Cleaning Up" /FREG ADD %KEY%\120 /V 1 /D "%CDROM%\cleanup.cmd" /FEXIT
sdax2 Posted October 23, 2005 Posted October 23, 2005 @ OrcoXPHow about posting your .cmd and .reg files that you reference in your GUIRunOnceEx.cmd.Thanks
Yzöwl Posted October 23, 2005 Posted October 23, 2005 Well thise file is located in the directory $OEM$ and the error reports that /prepare.cmd cannot be found.And this is mine RunOnceEx.cmd :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:SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\001 /VE /D "Preparing Installation..." /fREG ADD %KEY%\001 /V 1 /D "%CDROM%\prepare.cmd" /fWell if you look at the code you will see why!The CD-ROM is being set as a drive letter, in the first lines, (example G:).In your code you are using %CDROM%\prepare.cmd which is equivalent to, (example G:\prepare.cmd). However your prepare.cmd is located at %CDROM%\$OEM$, (example G:\$OEM$\prepare.cmd). You would either need to place prepare.cmd at the root of your CD or the line would need changing in order to reflect the true location.P.S Removing the serial number for Nero would be a good idea.
OrcoXP Posted October 24, 2005 Posted October 24, 2005 Yeah, Yzöwl is right...your paths are messed up. You should leave the software installers and scripts on the CD.I have mine in here: %CDROM%\VALUEADD\3RDPARTY\Software\I would just take anything out of $OEM$ that doesn't need to be copied to the harddrive...It'll just take more time to copy it...if it's even copying it with the folder structure the way you have it currently.I added some variables to clean up the look of my GUIRunOnce.cmd.You can do this using the SET command...I have %CDROM% for the CD and %FROM% for the full path.NOTE: I extract my Installshield installers to be able to supply the command line switches...and this tends to make a log file in the directory of the installer...If you do this too, make sure you add the switch for creating the log file elsewhere (see "nVidia PureVideo" in my previous attachment).Other suggestions I have for you are:#1Remove Kazaa Lite Codec Pack and the Quicktime Installer and replace them with Kazaa Lite Mega Codec Pack found here#2RyanVM has a silent installer for Adobe Acrobat Reader located here...so you don't have to worry about the commandline switches.#3RyanVM also has a silent installer for Java Runtime and one for Microsoft.NET Framework 1.1 that includes a hotfix. These are also located here#4Nero 6 is a Winrar SFX...so you can add the commands directly in the SFX info rather than calling it from your script#5MS Office 2003 Resource Kit has a custom install wizard that will create a MST (transform file) that you can select your options, I have found that you can create an administrative installation, slipstream SPs and hotfixes, create the MST with your desired options and then put Office and Frontpage in the same folder to save a few hundred MBs#6The installer for Paint .Net v2.5 (which is still in beta) will be changing how things are done a little...read this thread in Ricks forums#7You have an installer for Winamp that is an EXE but uses the /QB switch? Check this out. (Stay tuned for v5.11)#8@115, use this instead: REG ADD %KEY%\115 /V 1 /D "REGEDIT /S %CDROM%\install\regtweaks.reg" /F#9I would just add the items from prepare.cmd in your cleanup.cmd file...just to cut down on the things going on#10You see to have a lot of open quotes...you should scan through it to see which ones need to be closedWow, I don't usually talk this much...lol
Wip Posted November 2, 2005 Author Posted November 2, 2005 Yeah! Yzöwl and OrcoXP thnx for gratefull help !I would defintly use all your points OrcoXP and keep you in touch . last week i had vacation and i 'haven't a look for it already! So what i understand is that everything what's inside the $OEM$ directory gets installed to the hardrive..So i could better remove the directory software to the root of the cd and then the command lines should be working ( as they are right now ) and prepare.cmd and cleanup.cmd also right ? And the packages of RyanVM doen'st needed to be closed by a command line(switch) only /F right ?? ??I will have a look at my switches so i will post my RunOnceEx.cmd later.. And at least my last point You see to have a lot of open quotes...you should scan through it to see which ones need to be closedYou mean the command line switches ?? Or more references to cleanup.cmd ?? Because the command /F is just for closing right ?Sorry for being such a Big Noob but i hope to learn more and Thnx!
OrcoXP Posted November 8, 2005 Posted November 8, 2005 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:\CD.TXT SET CDROM=%%i:SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /FREG ADD %KEY%\001 /VE /D "Preparing Installation..." /FREG ADD %KEY%\001 /V 1 /D "%CDROM%\prepare.cmd" /FREG ADD %KEY%\005 /VE /D "Alcohol 120 Percent" /FREG ADD %KEY%\005 /V 1 /D "%CDROM%\Software\alc\setup.exe /qn Reboot=Suppress" /FREG ADD %KEY%\005 /V 2 /D "REGEDIT /S %CDROM%\Software\alcohol\register.reg" /FREG ADD %KEY%\010 /VE /D "Adobe Acrobat Reader 7" /FREG ADD %KEY%\010 /V 1 /D "%CDROM%\Software\adobe\acroread703.exe -p"-s /v\"/qn\"" /FREG ADD %KEY%\015 /VE /D "AVG Antivirus 7 Free Edition" /FREG ADD %KEY%\015 /V 1 /D "%CDROM%\Software\avg\avg.exe /HIDE /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED" /FREG ADD %KEY%\020 /VE /D "Kazaa Lite Codec Pack" /FREG ADD %KEY%\020 /V 1 /D "%CDROM%\Software\codec\klcodec.exe /silent" /F <--Replace with Kazaa Lite Mega Codec PackREG ADD %KEY%\025 /VE /D "Crimson Editor 3.7" /FREG ADD %KEY%\025 /V 1 /D "%CDROM%\Software\crims\crimson.exe /s" /FREG ADD %KEY%\030 /VE /D "Deamon Tools" /FREG ADD %KEY%\030 /V 1 /D "%CDROM%\Software\deam\deam.exe /qn /Reboot=Suppress" /FREG ADD %KEY%\035 /VE /D "DVD Shrink" /FREG ADD %KEY%\035 /V 1 /D "%CDROM%\Software\dvd\dvdshrink.exe /s" /FREG ADD %KEY%\040 /VE /D "IMTO MPEG ENCODER" /FREG ADD %KEY%\040 /V 1 /D "%CDROM%\Software\enc\encoder.exe /s" /F <--You have an extra SPACE here before the /F <--Replace with Kazaa Lite Mega Codec PackREG ADD %KEY%\045 /VE /D "FireFox 1.7" /FREG ADD %KEY%\045 /V 1 /D "%CDROM%\Software\fire\firefox.exe /s /qn" /FREG ADD %KEY%\050 /VE /D "Irfan Vieuwer" /FREG ADD %KEY%\050 /V 1 /D "%CDROM%\Software\irfan\irfan.exe /s" /F <--You have an extra SPACE here before the /FREG ADD %KEY%\055 /VE /D "Java Runtime Script" /FREG ADD %KEY%\055 /V 1 /D "%CDROM%\Software\java\java.exe /s /qb" /FREG ADD %KEY%\060 /VE /D "Microsoft AntiSpyware" /FREG ADD %KEY%\060 /V 1 /D "%CDROM%\Software\msa\msas.exe /s /v /qb" /FREG ADD %KEY%\065 /VE /D "Nero 6" /FREG ADD %KEY%\065 /V 1 /D "%CDROM%\Software\nero\nero.exe /SILENT /NOREBOOT /SN=1A21-7543-6787-2748-8730-0229 /WRITE_SN" /FREG ADD %KEY%\070 /VE /D "Microsoft Office 2003 Proffesional" /FREG ADD %KEY%\070 /V 1 /D "%CDROM%\Software\off\SETUP.exe /qb" /FREG ADD %KEY%\075 /VE /D "Paint.net 2.0" /FREG ADD %KEY%\075 /V 1 /D "%CDROM%\Software\paint\paint2.exe /s /qn" /FREG ADD %KEY%\080 /VE /D "Quicktime 7" /FREG ADD %KEY%\080 /V 1 /D "%CDROM%\Software\quick\QuickTimeInstaller.exe /VERYSILENT /SP-" /F <--Replace with Kazaa Lite Mega Codec PackREG ADD %KEY%\085 /VE /D "Steam" /FREG ADD %KEY%\085 /V 1 /D "%CDROM%\Software\steam\Steam.exe /s /v/qn" /FREG ADD %KEY%\090 /VE /D "VLC Media Player" /FREG ADD %KEY%\090 /V 1 /D "%CDROM%\Software\vlc\vlc.exe /s" /F <--Maybe use BSPlayer or MPC from Kazaa Lite Mega Codec PackREG ADD %KEY%\095 /VE /D "Winamp 5.1" /FREG ADD %KEY%\095 /V 1 /D "%CDROM%\Software\win\Winamp5.1.exe /s /qb" /F <--What source are you using for this? If it's from the official source (winamp.com) then you don't need "/qb"REG ADD %KEY%\100 /VE /D "Winrar 3.5" /FREG ADD %KEY%\100 /V 1 /D "%CDROM%\Software\wrar\wrar.exe /s" /FREG ADD %KEY%\105 /VE /D "MSN Messenger 7.5" /FREG ADD %KEY%\105 /V 1 /D "%CDROM%\Software\msn\Install_MSN_Messenger.exe /qb" /FREG ADD %KEY%\110 /VE /D "Microsoft.NET Framework 1.1" /FREG ADD %KEY%\110 /V 1 /D "%CDROM%\Software\net\netfxsp1.exe /s /v /qn" /F <--RyanVM has a version of this with the hotfix already appliedREG ADD %KEY%\115 /VE /D "Register Tweaks" /FREG ADD %KEY%\115 /V 1 /D "%CDROM%\install\regtweaks.reg" /FREG ADD %KEY%\120 /VE /D "Cleaning Up" /FREG ADD %KEY%\120 /V 1 /D "%CDROM%\cleanup.cmd" /FEXIT
Danielb Posted November 19, 2005 Posted November 19, 2005 (edited) Hi everyone. I read the rules and it looks like its ok to bring up old topics.Do the installs have to run silently? When i test mine, VLC player asks me for all the usual steps, will this happen during the unattended installation too? It would kind of defeat the whole idea of unattended installation lol. Any one know where i can get info on all the different switches. I have just been copying other people and experimenting. Heres mine so far.cmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\005 /VE /D "Adobe Reader 7.05" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\AdbeRdr705_enu_full.exe /qn" /fREG ADD %KEY%\055 /VE /D "Java Runtime 5.05" /FREG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\jre505.exe /s /qb" /FREG ADD %KEY%\015 /VE /D "AVG Antivirus 7" /FREG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\avg.exe /HIDE /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED" /FREG ADD %KEY%\100 /VE /D "Winrar 3.5" /FREG ADD %KEY%\100 /V 1 /D "%systemdrive%\install\winrar.exe /s" /FREG ADD %KEY%\040 /VE /D "Spybot Search n Destroy 1.4" /fREG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\spybot.exe\spybot.exe\" /VERYSILENT /SP-" /f >> %windir%\apps.logREG ADD %KEY%\090 /VE /D "VLC Media Player" /FREG ADD %KEY%\090 /V 1 /D "%systemdrive%\install\vlc.exe /VERYSILENT /s" /FEXITIts just for testing at the moment the applications will run from the dvd when i am happy it will all work.Thankyou Edited November 19, 2005 by Danielb
MHz Posted November 19, 2005 Posted November 19, 2005 (edited) REG ADD %KEY%\090 /VE /D "VLC Media Player" /FREG ADD %KEY%\090 /V 1 /D "%systemdrive%\install\vlc.exe /S" /FYour switch was some kind of mix netween Inno Setup and perhaps Wise. It is a Nullsoft installer and they use uppercase /SThis looks incorrect also. I add a /v to pass the following silent parameters to the msi.REG ADD %KEY%\055 /VE /D "Java Runtime 5.05" /FREG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\jre505.exe /s /v/qb" /F Edited November 19, 2005 by MHz
Danielb Posted November 19, 2005 Posted November 19, 2005 (edited) Yeeeeeeeeeeeh. Was the dam quote.REG ADD %KEY%\004 /VE /D "Java Runtime 5.0" /fREG ADD %KEY%\004 /V 1 /D "%systemdrive%\install\java 5.0.exe /s /v " /qn /f Edited November 19, 2005 by Danielb
MHz Posted November 19, 2005 Posted November 19, 2005 REG ADD %KEY%\004 /VE /D "Java Runtime 5.0" /fREG ADD %KEY%\004 /V 1 /D "\"%systemdrive%\install\java 5.0.exe\" /s /v\"/qn\"" /fSometimes is best to wrap the /qn in quotes as above. You have a space in the filename so it will need to be quoted as well.Now that looks like this when added to registry."C:\install\java 5.0.exe" /s /v"/qn"
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