[quote=“falko, post: 4173, member: 48”]thanks for the share, still haven’t got around to trying snapins yet but i’m with the info above this should be quite easy to get working.
START /wait GoogleEarth.exe /S /v/qn /V"/qn ALLUSERS=1
say i wanted to deploy something else is it as simple as changing googleearth.exe to the exe that i want?[/quote]
It depends on the installer. But yes most are easy.
START /Wait means the installer will start, and the cmd script will wait for the process to finish before moving on in the script.
The /S is a switch to install it silently. /Qn will make it non interactive.
So it varies, also running .msi is a little diff, you have to have msiexec instead of “START”. Read this page for more info:
[url]http://unattended.sourceforge.net/installers.php[/url]
But you will find you don’t have to change much. See this one for FileZilla, it’s basically the same as google earth:
::::::::::::::::::::::::
@ECHO OFF
Color 4F
@ECHO Installing FileZilla
SLEEP.exe 5
START /wait FileZilla3.5.3.exe /S /v/qn
SLEEP.exe 5
CLS
@ECHO FileZilla Installed…
SLEEP.exe 5
EXIT
::::::::::::::::::::::::
But then you might want registry entries after the install, check out the original adobe reader because that contains registry entries.
I just updated Adobe reader because for some strange reason on some machines it wouldn’t printer colour…?? Anyway check out the new adobe reader script:
::::::::::::::::::::::::
@ECHO OFF
Color 4F
@ECHO DO NOT CLOSE THIS WINDOW
@ECHO Installing Adobe Reader X 3.1.2…
START /wait Reader.exe /msi EULA_ACCEPT=YES /qn
SLEEP.exe 5
::::::::::::::::::::::::
CLS
REGEDIT /S Disable_protected.reg
SLEEP.exe 1
REGEDIT /S Disable_updates.reg
SLEEP.exe 1
REGEDIT /S Units_to_CM.reg
SLEEP.exe 1
REGEDIT /S EULA.reg
CLS
@ECHO INSTALLED ADOBE READER X!
SLEEP.exe 5
EXIT
::::::::::::::::::::::::
If you have any problems I’ll help if I can. A good site resource is Appdeploy.com too. Just recently got renamed to: [url]http://www.itninja.com/[/url]