MSFN Forum: Help Needed with mine RunOnceEx.cmd - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Help Needed with mine RunOnceEx.cmd Rate Topic: -----

#1 User is offline   Wip 

  • Newbie
  • Group: Members
  • Posts: 36
  • Joined: 04-October 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 14 October 2005 - 02:48 AM

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 Ryan

Well this is were i am :
Posted Image

All Software files are in different maps

And this is mine RunOnceEx.cmd :
cmdow @ /HID
@echo off

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:

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

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

REG ADD %KEY%\001 /VE /D "Preparing Installation..." /f
REG ADD %KEY%\001 /V 1 /D "%CDROM%\prepare.cmd" /f

REG ADD %KEY%\005 /VE /D "Alcohol 120 Percent" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\Software\alc\setup.exe /qn Reboot=Suppress" /f
REG ADD %KEY%\005 /V 2 /D "REGEDIT /S %CDROM%\Software\alcohol\register.reg" /f

REG ADD %KEY%\010 /VE /D "Adobe Acrobat Reader 7" /f
REG ADD %KEY%\010 /V 1 /D "%CDROM%\Software\adobe\acroread703.exe -p"-s /v\"/qn\"" /f

REG ADD %KEY%\015 /VE /D "AVG Antivirus 7 Free Edition" /f
REG ADD %KEY%\015 /V 1 /D "%CDROM%\Software\avg\avg.exe /HIDE /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED" /f

REG ADD %KEY%\020 /VE /D "Kazaa Lite Codec Pack" /f
REG ADD %KEY%\020 /V 1 /D "%CDROM%\Software\codec\klcodec.exe /silent /f

REG ADD %KEY%\025 /VE /D "Crimson Editor 3.7" /f
REG ADD %KEY%\025 /V 1 /D "%CDROM%\Software\crims\crimson.exe /s /v/qn" /f

REG ADD %KEY%\030 /VE /D "Deamon Tools" /f
REG ADD %KEY%\030 /V 1 /D "%CDROM%\Software\deam\deam.exe /qn /Reboot=Suppress /f

REG ADD %KEY%\035 /VE /D "DVD Shrink" /f
REG ADD %KEY%\035 /V 1 /D "%CDROM%\Software\dvd\dvdshrink.exe /s /v/qn" /f

REG ADD %KEY%\040 /VE /D "IMTO MPEG ENCODER" /f
REG ADD %KEY%\040 /V 1 /D "%CDROM%\Software\enc\encoder.exe /s /v/qn" /f

REG ADD %KEY%\045 /VE /D "FireFox 1.7" /f
REG ADD %KEY%\045 /V 1 /D "%CDROM%\Software\fire\firefox.exe /s /v/qn" /f

REG ADD %KEY%\050 /VE /D "Irfan Vieuwer" /f
REG ADD %KEY%\050 /V 1 /D "%CDROM%\Software\irfan\irfan.exe /s /v/qn" /f

REG ADD %KEY%\055 /VE /D "Java Runtime Script" /f
REG ADD %KEY%\055 /V 1 /D "%CDROM%\Software\java\java.exe /s /v/qn" /f

REG ADD %KEY%\060 /VE /D "Microsoft AntiSpyware" /f
REG ADD %KEY%\060 /V 1 /D "%CDROM%\Software\msa\msas.exe /s /v/qn" /f

REG ADD %KEY%\065 /VE /D "Nero 6 " /f
REG ADD %KEY%\065 /V 1 /D "%CDROM%\Software\nero\nero.exe /SILENT /NOREBOOT /SN=1A21-7543-6787-2748-8730-0229 /WRITE_SN /f

REG ADD %KEY%\070 /VE /D "Microsoft Office 2003 Proffesional" /f
REG ADD %KEY%\070 /V 1 /D "%CDROM%\Software\off\SETUP.exe /qb /f

REG ADD %KEY%\075 /VE /D "Paint.net 2.0" /f
REG ADD %KEY%\075 /V 1 /D "%CDROM%\Software\paint\paint2.exe /s /qn" /f

REG ADD %KEY%\080 /VE /D "Quicktime 7" /f
REG ADD %KEY%\080 /V 1 /D "%CDROM%\Software\quick\QuickTimeInstaller.exe /VERYSILENT /SP- /f

REG ADD %KEY%\085 /VE /D "Steam" /f
REG ADD %KEY%\085 /V 1 /D "%CDROM%\Software\steam\Steam.exe /s /v/qn" /f

REG ADD %KEY%\090 /VE /D "VLC Media Player" /f
REG ADD %KEY%\090 /V 1 /D "%CDROM%\Software\vlc\vlc.exe /s /f

REG ADD %KEY%\095 /VE /D "Winamp 5.1" /f
REG ADD %KEY%\095 /V 1 /D "%CDROM%\Software\win\Winamp5.1.exe /s /qb /f

REG ADD %KEY%\100 /VE /D "Winrar 3.5" /f
REG ADD %KEY%\100 /V 1 /D "%CDROM%\Software\wrar\wrar.exe /s /f

REG ADD %KEY%\105 /VE /D "MSN Messenger 7.5" /f
REG ADD %KEY%\105 /V 1 /D "%CDROM%\Software\msn\Install_MSN_Messenger.exe /qb" /f

REG ADD %KEY%\110 /VE /D "Microsoft.NET Framework 1.1" /f
REG ADD %KEY%\110 /V 1 /D "%CDROM%\Software\net\netfxsp1.exe /s /v/qn" /f

EXIT



If you have any questions just ask :D Thnx for reading and helping !

Thnx

Wip


#2 User is offline   OrcoXP 

  • Member
  • PipPip
  • Group: Members
  • Posts: 148
  • Joined: 03-July 03

  Posted 14 October 2005 - 03:10 AM

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,RunOnceExProcess


this will allow you to separate the apps into groups...like System Tools, IM& P2P

And 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 done

Attached File(s)



#3 User is offline   Bensit 

  • Newbie
  • Group: Members
  • Posts: 11
  • Joined: 06-December 04

Posted 15 October 2005 - 09:01 AM

I've been struggling with this one too:

REG ADD %KEY%\060 /VE /D "Microsoft AntiSpyware" /f
REG ADD %KEY%\060 /V 1 /D "%CDROM%\Software\msa\msas.exe /s /v/qn" /f

This way you get an error after the installation saying you have to reinstall.....

Haven't figurerd it out yet.

#4 User is offline   Wip 

  • Newbie
  • Group: Members
  • Posts: 36
  • Joined: 04-October 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 17 October 2005 - 02:37 AM

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....

#5 User is offline   Wip 

  • Newbie
  • Group: Members
  • Posts: 36
  • Joined: 04-October 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 October 2005 - 03:42 AM

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 files

Also 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$ :
Posted Image

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 @ /HID

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:


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"

EXIT


Well 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 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 "Installing Applications" /F

REG ADD %KEY%\001 /VE /D "Preparing Installation..." /F
REG ADD %KEY%\001 /V 1 /D "%CDROM%\prepare.cmd" /F

REG ADD %KEY%\005 /VE /D "Alcohol 120 Percent" /F
REG ADD %KEY%\005 /V 1 /D "%CDROM%\Software\alc\setup.exe /qn Reboot=Suppress" /F
REG ADD %KEY%\005 /V 2 /D "REGEDIT /S %CDROM%\Software\alcohol\register.reg" /F

REG ADD %KEY%\010 /VE /D "Adobe Acrobat Reader 7" /F
REG ADD %KEY%\010 /V 1 /D "%CDROM%\Software\adobe\acroread703.exe -p"-s /v\"/qn\"" /F

REG ADD %KEY%\015 /VE /D "AVG Antivirus 7 Free Edition" /F
REG ADD %KEY%\015 /V 1 /D "%CDROM%\Software\avg\avg.exe /HIDE /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED" /F

REG ADD %KEY%\020 /VE /D "Kazaa Lite Codec Pack" /F
REG ADD %KEY%\020 /V 1 /D "%CDROM%\Software\codec\klcodec.exe /silent /F

REG ADD %KEY%\025 /VE /D "Crimson Editor 3.7" /F
REG ADD %KEY%\025 /V 1 /D "%CDROM%\Software\crims\crimson.exe /s /F

REG ADD %KEY%\030 /VE /D "Deamon Tools" /F
REG ADD %KEY%\030 /V 1 /D "%CDROM%\Software\deam\deam.exe /qn /Reboot=Suppress /F

REG ADD %KEY%\035 /VE /D "DVD Shrink" /F
REG ADD %KEY%\035 /V 1 /D "%CDROM%\Software\dvd\dvdshrink.exe /s  /F

REG ADD %KEY%\040 /VE /D "IMTO MPEG ENCODER" /F
REG ADD %KEY%\040 /V 1 /D "%CDROM%\Software\enc\encoder.exe /s  /F

REG ADD %KEY%\045 /VE /D "FireFox 1.7" /F
REG ADD %KEY%\045 /V 1 /D "%CDROM%\Software\fire\firefox.exe /s /qn /F

REG ADD %KEY%\050 /VE /D "Irfan Vieuwer" /F
REG ADD %KEY%\050 /V 1 /D "%CDROM%\Software\irfan\irfan.exe /s  /F

REG ADD %KEY%\055 /VE /D "Java Runtime Script" /F
REG ADD %KEY%\055 /V 1 /D "%CDROM%\Software\java\java.exe /s /qb /F

REG ADD %KEY%\060 /VE /D "Microsoft AntiSpyware" /F
REG ADD %KEY%\060 /V 1 /D "%CDROM%\Software\msa\msas.exe /s /v /qb /F

REG ADD %KEY%\065 /VE /D "Nero 6" /F
REG ADD %KEY%\065 /V 1 /D "%CDROM%\Software\nero\nero.exe /SILENT /NOREBOOT /SN=1A21-7543-6787-2748-8730-0229 /WRITE_SN /F

REG ADD %KEY%\070 /VE /D "Microsoft Office 2003 Proffesional" /F
REG ADD %KEY%\070 /V 1 /D "%CDROM%\Software\off\SETUP.exe /qb /F

REG ADD %KEY%\075 /VE /D "Paint.net 2.0" /F
REG ADD %KEY%\075 /V 1 /D "%CDROM%\Software\paint\paint2.exe /s /qn /F

REG ADD %KEY%\080 /VE /D "Quicktime 7" /F
REG ADD %KEY%\080 /V 1 /D "%CDROM%\Software\quick\QuickTimeInstaller.exe /VERYSILENT /SP- /F

REG ADD %KEY%\085 /VE /D "Steam" /F
REG ADD %KEY%\085 /V 1 /D "%CDROM%\Software\steam\Steam.exe /s /v/qn /F

REG ADD %KEY%\090 /VE /D "VLC Media Player" /F
REG ADD %KEY%\090 /V 1 /D "%CDROM%\Software\vlc\vlc.exe /s /F

REG ADD %KEY%\095 /VE /D "Winamp 5.1" /F
REG ADD %KEY%\095 /V 1 /D "%CDROM%\Software\win\Winamp5.1.exe /s /qb /F

REG ADD %KEY%\100 /VE /D "Winrar 3.5" /F
REG ADD %KEY%\100 /V 1 /D "%CDROM%\Software\wrar\wrar.exe /s /F

REG ADD %KEY%\105 /VE /D "MSN Messenger 7.5" /F
REG ADD %KEY%\105 /V 1 /D "%CDROM%\Software\msn\Install_MSN_Messenger.exe /qb /F

REG ADD %KEY%\110 /VE /D "Microsoft.NET Framework 1.1" /F
REG ADD %KEY%\110 /V 1 /D "%CDROM%\Software\net\netfxsp1.exe /s /v /qn /F

REG ADD %KEY%\115 /VE /D "Register Tweaks" /F
REG ADD %KEY%\115 /V 1 /D "%CDROM%\install\regtweaks.reg" /F

REG ADD %KEY%\120 /VE /D "Cleaning Up" /F
REG ADD %KEY%\120 /V 1 /D "%CDROM%\cleanup.cmd" /F


EXIT


#6 User is offline   sdax2 

  • Group: Members
  • Posts: 6
  • Joined: 21-March 04

Posted 22 October 2005 - 10:05 PM

@ OrcoXP


How about posting your .cmd and .reg files that you reference in your GUIRunOnceEx.cmd.



Thanks

#7 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,195
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 23 October 2005 - 03:02 AM

View PostWip, on Oct 18 2005, 10:42 AM, said:

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 off

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:

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

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

REG ADD %KEY%\001 /VE /D "Preparing Installation..." /f
REG ADD %KEY%\001 /V 1 /D "%CDROM%\prepare.cmd" /f
Well 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.

#8 User is offline   OrcoXP 

  • Member
  • PipPip
  • Group: Members
  • Posts: 148
  • Joined: 03-July 03

Posted 24 October 2005 - 03:18 AM

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:

#1
Remove Kazaa Lite Codec Pack and the Quicktime Installer and replace them with Kazaa Lite Mega Codec Pack found here

#2
RyanVM has a silent installer for Adobe Acrobat Reader located here...so you don't have to worry about the commandline switches.

#3
RyanVM 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

#4
Nero 6 is a Winrar SFX...so you can add the commands directly in the SFX info rather than calling it from your script

#5
MS 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

#6
The 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

#7
You 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

#9
I would just add the items from prepare.cmd in your cleanup.cmd file...just to cut down on the things going on

#10
You see to have a lot of open quotes...you should scan through it to see which ones need to be closed


Wow, I don't usually talk this much...lol

#9 User is offline   Wip 

  • Newbie
  • Group: Members
  • Posts: 36
  • Joined: 04-October 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 02 November 2005 - 03:14 AM

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 :P

Quote

You see to have a lot of open quotes...you should scan through it to see which ones need to be closed

You 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!

#10 User is offline   OrcoXP 

  • Member
  • PipPip
  • Group: Members
  • Posts: 148
  • Joined: 03-July 03

Posted 07 November 2005 - 11:36 PM

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 "Installing Applications" /F

REG ADD %KEY%\001 /VE /D "Preparing Installation..." /F
REG ADD %KEY%\001 /V 1 /D "%CDROM%\prepare.cmd" /F

REG ADD %KEY%\005 /VE /D "Alcohol 120 Percent" /F
REG ADD %KEY%\005 /V 1 /D "%CDROM%\Software\alc\setup.exe /qn Reboot=Suppress" /F
REG ADD %KEY%\005 /V 2 /D "REGEDIT /S %CDROM%\Software\alcohol\register.reg" /F

REG ADD %KEY%\010 /VE /D "Adobe Acrobat Reader 7" /F
REG ADD %KEY%\010 /V 1 /D "%CDROM%\Software\adobe\acroread703.exe -p"-s /v\"/qn\"" /F

REG ADD %KEY%\015 /VE /D "AVG Antivirus 7 Free Edition" /F
REG ADD %KEY%\015 /V 1 /D "%CDROM%\Software\avg\avg.exe /HIDE /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED" /F

REG ADD %KEY%\020 /VE /D "Kazaa Lite Codec Pack" /F
REG ADD %KEY%\020 /V 1 /D "%CDROM%\Software\codec\klcodec.exe /silent" /F <--Replace with Kazaa Lite Mega Codec Pack

REG ADD %KEY%\025 /VE /D "Crimson Editor 3.7" /F
REG ADD %KEY%\025 /V 1 /D "%CDROM%\Software\crims\crimson.exe /s" /F

REG ADD %KEY%\030 /VE /D "Deamon Tools" /F
REG ADD %KEY%\030 /V 1 /D "%CDROM%\Software\deam\deam.exe /qn /Reboot=Suppress" /F

REG ADD %KEY%\035 /VE /D "DVD Shrink" /F
REG ADD %KEY%\035 /V 1 /D "%CDROM%\Software\dvd\dvdshrink.exe /s" /F

REG ADD %KEY%\040 /VE /D "IMTO MPEG ENCODER" /F
REG 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 Pack

REG ADD %KEY%\045 /VE /D "FireFox 1.7" /F
REG ADD %KEY%\045 /V 1 /D "%CDROM%\Software\fire\firefox.exe /s /qn" /F

REG ADD %KEY%\050 /VE /D "Irfan Vieuwer" /F
REG ADD %KEY%\050 /V 1 /D "%CDROM%\Software\irfan\irfan.exe /s" /F <--You have an extra SPACE here before the /F

REG ADD %KEY%\055 /VE /D "Java Runtime Script" /F
REG ADD %KEY%\055 /V 1 /D "%CDROM%\Software\java\java.exe /s /qb" /F

REG ADD %KEY%\060 /VE /D "Microsoft AntiSpyware" /F
REG ADD %KEY%\060 /V 1 /D "%CDROM%\Software\msa\msas.exe /s /v /qb" /F

REG ADD %KEY%\065 /VE /D "Nero 6" /F
REG ADD %KEY%\065 /V 1 /D "%CDROM%\Software\nero\nero.exe /SILENT /NOREBOOT /SN=1A21-7543-6787-2748-8730-0229 /WRITE_SN" /F

REG ADD %KEY%\070 /VE /D "Microsoft Office 2003 Proffesional" /F
REG ADD %KEY%\070 /V 1 /D "%CDROM%\Software\off\SETUP.exe /qb" /F

REG ADD %KEY%\075 /VE /D "Paint.net 2.0" /F
REG ADD %KEY%\075 /V 1 /D "%CDROM%\Software\paint\paint2.exe /s /qn" /F

REG ADD %KEY%\080 /VE /D "Quicktime 7" /F
REG ADD %KEY%\080 /V 1 /D "%CDROM%\Software\quick\QuickTimeInstaller.exe /VERYSILENT /SP-" /F <--Replace with Kazaa Lite Mega Codec Pack

REG ADD %KEY%\085 /VE /D "Steam" /F
REG ADD %KEY%\085 /V 1 /D "%CDROM%\Software\steam\Steam.exe /s /v/qn" /F

REG ADD %KEY%\090 /VE /D "VLC Media Player" /F
REG ADD %KEY%\090 /V 1 /D "%CDROM%\Software\vlc\vlc.exe /s" /F <--Maybe use BSPlayer or MPC from Kazaa Lite Mega Codec Pack

REG ADD %KEY%\095 /VE /D "Winamp 5.1" /F
REG 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" /F
REG ADD %KEY%\100 /V 1 /D "%CDROM%\Software\wrar\wrar.exe /s" /F

REG ADD %KEY%\105 /VE /D "MSN Messenger 7.5" /F
REG ADD %KEY%\105 /V 1 /D "%CDROM%\Software\msn\Install_MSN_Messenger.exe /qb" /F

REG ADD %KEY%\110 /VE /D "Microsoft.NET Framework 1.1" /F
REG 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 applied

REG ADD %KEY%\115 /VE /D "Register Tweaks" /F
REG ADD %KEY%\115 /V 1 /D "%CDROM%\install\regtweaks.reg" /F

REG ADD %KEY%\120 /VE /D "Cleaning Up" /F
REG ADD %KEY%\120 /V 1 /D "%CDROM%\cleanup.cmd" /F


EXIT

#11 User is offline   Danielb 

  • Newbie
  • Group: Members
  • Posts: 13
  • Joined: 19-November 05

Posted 19 November 2005 - 12:42 AM

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 off

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

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

REG ADD %KEY%\005 /VE /D "Adobe Reader 7.05" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\AdbeRdr705_enu_full.exe /qn" /f

REG ADD %KEY%\055 /VE /D "Java Runtime 5.05" /F
REG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\jre505.exe /s  /qb" /F

REG ADD %KEY%\015 /VE /D "AVG Antivirus 7" /F
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\avg.exe /HIDE /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED" /F

REG ADD %KEY%\100 /VE /D "Winrar 3.5" /F
REG ADD %KEY%\100 /V 1 /D "%systemdrive%\install\winrar.exe /s" /F

REG ADD %KEY%\040 /VE /D "Spybot Search n Destroy 1.4" /f
REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\spybot.exe\spybot.exe\" /VERYSILENT /SP-" /f >> %windir%\apps.log

REG ADD %KEY%\090 /VE /D "VLC Media Player" /F
REG ADD %KEY%\090 /V 1 /D "%systemdrive%\install\vlc.exe /VERYSILENT /s" /F


EXIT


Its just for testing at the moment the applications will run from the dvd when i am happy it will all work.


Thankyou

This post has been edited by Danielb: 19 November 2005 - 12:43 AM


#12 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 19 November 2005 - 01:22 AM

REG ADD %KEY%\090 /VE /D "VLC Media Player" /F
REG ADD %KEY%\090 /V 1 /D "%systemdrive%\install\vlc.exe /S" /F

Your switch was some kind of mix netween Inno Setup and perhaps Wise. It is a Nullsoft installer and they use uppercase /S

This 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" /F
REG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\jre505.exe /s /v/qb" /F

This post has been edited by MHz: 19 November 2005 - 01:29 AM


#13 User is offline   Danielb 

  • Newbie
  • Group: Members
  • Posts: 13
  • Joined: 19-November 05

Posted 19 November 2005 - 02:05 AM

Yeeeeeeeeeeeh. Was the dam quote.


REG ADD %KEY%\004 /VE /D "Java Runtime 5.0" /f
REG ADD %KEY%\004 /V 1 /D "%systemdrive%\install\java 5.0.exe /s /v " /qn /f

This post has been edited by Danielb: 19 November 2005 - 02:06 AM


#14 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 19 November 2005 - 02:49 AM

REG ADD %KEY%\004 /VE /D "Java Runtime 5.0" /f
REG ADD %KEY%\004 /V 1 /D "\"%systemdrive%\install\java 5.0.exe\" /s /v\"/qn\"" /f

Sometimes 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"


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy