Jump to content

install.cmd vs. RunOnceEx methods...


benjammin

Recommended Posts


personally, ive just converted to runonceEX, i personally like it cuz u get a GUI, instead of .cmd window :rolleyes:

EDIT:

and with runonceEX u can just use an inf 2 install EVERYTHING :) it beats switching 2 cmd and running .reg files from cmd lol

cmd is easier.. less typing (as u said)

but, why not download a trial of vmware and play around a bit?

regards

Link to comment
Share on other sites

what are advantages? RunOnceEx seems to involve much more typing... hehe... just wondering what the advantages of one over the other are...

The most obvious advantage of CMD is: Nothing fails under it.

If you want to be in a mess of where to put QUOTES, use RunOnceEx. :)

Link to comment
Share on other sites

took me about 7hrs to iron out my runonceex file, but that was from learning inf files to testing it about 10x

Note: i wouldnt make an inf then burn it 2 cd and turn around and install windows on your normal pc, chances are first time u do it u will get some sort of error..play with it in vmware first 2 make sure it works well

regards

Link to comment
Share on other sites

i like the runonceex my self but they are right some times the quotes can be tricky like installing adobe reader 6 its switch has the double quote like this -p"-s /v\"/qn\"" now i bleave your supposed to just use a single goute at the end before the f but this one is giving me trouble lol good luck on your runonceex, most progs arnt like this one just a small few

Link to comment
Share on other sites

iam using a runonceex.inf file and have no problems

in this inf r all the settings 4 windows 2000 unattended, preinstall; windows xp unattended, preinstall and aut. deleting desktop icons, logfiles,.....

its very easy to build an inf file

just download one from gosh´s .inf files :)

Link to comment
Share on other sites

Heck, you don't even have to learn inf files. You can do the runonceex as a .cmd.

Not as big a problem with quotes, and you get the gui. You can even build logic in. I have 4 UI's that I maintain. I have a base dir with all the globals, and a dir for each custom. A simple batch file compiles and burns into an ISO.

runonceex.cmd

cmdow @ /HID
@echo off

regedit /s pre_inst.reg

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

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


If EXIST %SYSTEMDRIVE%\Install\ati_drv.cmd (
REG ADD %KEY%\005 /VE /D "ATI Driver" /f
REG ADD %KEY%\005 /V 1 /D "%SYSTEMDRIVE%\Install\ati_drv.cmd" /f
)

If EXIST %SYSTEMDRIVE%\Install\ati_cpl.cmd (
REG ADD %KEY%\010 /VE /D "ATI Control Panel" /f
REG ADD %KEY%\010 /V 1 /D "%SYSTEMDRIVE%\Install\ati_cpl.cmd" /f
)

If EXIST %SYSTEMDRIVE%\Install\nvswap.cmd (
REG ADD %KEY%\012 /VE /D "Nvidia Speaker Config Util" /f
REG ADD %KEY%\012 /V 1 /D "%SYSTEMDRIVE%\Install\ati_cpl.cmd" /f
)

REG ADD %KEY%\015 /VE /D "DivX Standard 5.1.1" /f
REG ADD %KEY%\015 /V 1 /D "%SYSTEMDRIVE%\install\codec.cmd" /f

REG ADD %KEY%\020 /VE /D "Sun Java" /f
REG ADD %KEY%\020 /V 1 /D "%SYSTEMDRIVE%\Install\java.cmd" /f

If EXIST %systemdrive%\install\applications\studiomx\dreamweavermx\setup.exe (
REG ADD %KEY%\025 /VE /D "DreamweaverMX" /f
REG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\applications\studiomx\dreamweavermx\setup.exe -s" /f
REG ADD %KEY%\025 /V 2 /D "taskkill /F /im IEXPLORE.EXE" /f
)

If EXIST %systemdrive%\install\applications\studiomx\fireworksmx\setup.exe (
REG ADD %KEY%\026 /VE /D "FireworksMX" /f
REG ADD %KEY%\026 /V 1 /D "%systemdrive%\install\applications\studiomx\fireworksmx\setup.exe -s" /f
REG ADD %KEY%\026 /V 2 /D "taskkill /F /im IEXPLORE.EXE" /f
)

If EXIST %SYSTEMDRIVE%\Install\applications\studiomx\mxstudio.reg (
REG ADD %KEY%\027 /VE /D "Registering StudioMX" /f
REG ADD %KEY%\027 /V 1 /D "regedit.exe /s %SYSTEMDRIVE%\Install\applications\studiomx\mxstudio.reg" /f
)

If EXIST %SYSTEMDRIVE%\install\Applications\Nero\nero551054.exe (
REG ADD %KEY%\030 /VE /D "Nero Burning ROM v5.5.10.54" /f
REG ADD %KEY%\030 /V 1 /D "%SYSTEMDRIVE%\install\Applications\Nero\nero551054.exe /silent /noreboot" /f
REG ADD %KEY%\030 /V 2 /D "regedit /s %SYSTEMDRIVE%\install\applications\nero\nero.reg" /f
)

REG ADD %KEY%\040 /VE /D "AdAware 6" /f
REG ADD %KEY%\040 /V 1 /D "%SYSTEMDRIVE%\install\Applications\adaware\aaw6.exe /s" /f

REG ADD %KEY%\045 /VE /D "Acrobat Reader 6" /f
REG ADD %KEY%\045 /V 1 /D "%SYSTEMDRIVE%\install\Applications\AdobeReader6\AR6.msi /QB" /f

REG ADD %KEY%\050 /VE /D "Winzip" /f
REG ADD %KEY%\050 /V 1 /D "%ProgramFiles%\WinZip\winzip32.exe" /noqp /autoinstall" /f

if EXIST %SYSTEMDRIVE%\install\applications\itunes\itunessetup.exe (
REG ADD %KEY%\060 /VE /D "iTunes 4.5" /f
REG ADD %KEY%\060 /V 1 /D "%SYSTEMDRIVE%\install\applications\itunes\itunessetup.exe /s /v/qn" /f
)

if EXIST %SYSTEMDRIVE%\install\applications\virtpc\virtpc.msi (
REG ADD %KEY%\070 /VE /D "VirtualPC 2004" /f
REG ADD %KEY%\070 /V 1 /D "%SYSTEMDRIVE%\install\applications\virtpc\virtpc.msi /qn" /f
REG ADD %KEY%\070 /V 2 /D "regedit /s %SYSTEMDRIVE%\install\applications\virtpc\virtpc.reg" /f
)

If EXIST %SYSTEMDRIVE%\install\windvd.cmd (
REG ADD %KEY%\080 /VE /D "WinDVD 4" /f
REG ADD %KEY%\080 /V 1 /D "%SYSTEMDRIVE%\install\windvd.cmd" /f
)

REG ADD %KEY%\090 /VE /D "Symantec AntiVirus Client" /f
REG ADD %KEY%\090 /V 2 /D "%SYSTEMDRIVE%\install\Applications\sav\sav.msi /QB" /f

REG ADD %KEY%\900 /VE /D "Applying Registry Tweaks" /f
REG ADD %KEY%\900 /V 1 /D "regedit.exe /s %SYSTEMDRIVE%\Install\regtweaks.reg" /f

REG ADD %KEY%\910 /VE /D "Removing Install Sources" /f
REG ADD %KEY%\910 /V 1 /D "%SYSTEMDRIVE%\Install\remove-setup.cmd" /f

REG ADD %KEY%\999 /VE /D "Preparing To Restart" /f
REG ADD %KEY%\999 /V 1 /D "%SYSTEMDRIVE%\Finish.cmd" /f

EXIT

Link to comment
Share on other sites

INF are good for the sole purpose, of everthing is in one files. And there in lies the problem, one file. Some like smaller files. But you can do ALMOST everything from a INF file that you can with a batch file.

Embedding quotes in an INF is simple enough, """ will embed the quote. and \" will embed it in the batch file.

I personally consider is a tier level of how hard thigns are.

CMD then INF. It's easier to use a CMD file.

However, REG adds another complexity of it's own.

Link to comment
Share on other sites

I think that the cmd file has an advantage when you do not want to copy the installation files to the HDD. I've created a WinXP DVD with tons of installations, so instead of copying 3GB to the hard drive twice (once the installation files, and once installing the apps themselves) they are just being installed once.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...