Unattended software installation/deployment

Transcription

Unattended software installation/deployment
How to deploy/install silently, unattended
Firefox, Thunderbird, Adobe Reader, Flash
Player, Java, BGInfo, VLC Player, IZarc,
7Zip, Silverlight, Synedra View, Oracle 6i &
K.I.S., Quicktime
Unattended
software
installation/
deployment
Using PDQ Deploy.
Alternatively MS MDT, SCCM
David Bauer
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
Index
Unattended & silent software deployment/installing ............................................................................ 4
Firefox .................................................................................................................................................. 5
Tested with: ..................................................................................................................................... 5
What this does? ............................................................................................................................... 5
Requirements .................................................................................................................................. 5
Steps ................................................................................................................................................ 5
Deploying Add-ons .......................................................................................................................... 7
Links: ................................................................................................................................................ 9
Thunderbird ....................................................................................................................................... 11
Tested with: ................................................................................................................................... 11
Requirements: ............................................................................................................................... 11
Steps .............................................................................................................................................. 11
Links ............................................................................................................................................... 11
Adobe Reader .................................................................................................................................... 12
Tested with: ................................................................................................................................... 12
Requirements: ............................................................................................................................... 12
Steps .............................................................................................................................................. 12
Links ............................................................................................................................................... 13
Adobe Flash Player ............................................................................................................................ 14
Tested with: ................................................................................................................................... 14
What this does? ............................................................................................................................. 14
Requirements: ............................................................................................................................... 14
Steps .............................................................................................................................................. 14
Links ............................................................................................................................................... 15
TODO Adobe Air ................................................................................................................................ 16
Tested with: ................................................................................................................................... 16
What this does? ............................................................................................................................. 16
Requirements: ............................................................................................................................... 16
Steps .............................................................................................................................................. 16
Links ............................................................................................................................................... 16
Java .................................................................................................................................................... 17
Tested with: ................................................................................................................................... 17
Requirements: ............................................................................................................................... 17
Steps .............................................................................................................................................. 17
S. 1
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
Links ............................................................................................................................................... 19
BGInfo ................................................................................................................................................ 20
Tested with: ................................................................................................................................... 20
What it does? ................................................................................................................................ 20
Requirements: ............................................................................................................................... 20
Steps .............................................................................................................................................. 20
Links ............................................................................................................................................... 22
VLC Player .......................................................................................................................................... 23
Tested with: ................................................................................................................................... 23
Requirements: ............................................................................................................................... 23
Steps .............................................................................................................................................. 23
Links ............................................................................................................................................... 24
IZarc ................................................................................................................................................... 25
Tested with: ................................................................................................................................... 25
What this does? ............................................................................................................................. 25
Requirement .................................................................................................................................. 25
Steps .............................................................................................................................................. 25
Links ............................................................................................................................................... 25
7Zip .................................................................................................................................................... 26
Tested with: ................................................................................................................................... 26
What this does? ............................................................................................................................. 26
Requirement .................................................................................................................................. 26
Steps .............................................................................................................................................. 26
Links ............................................................................................................................................... 26
Silverlight ........................................................................................................................................... 27
Tested with: ................................................................................................................................... 27
What this does? ............................................................................................................................. 27
Requirement .................................................................................................................................. 27
Steps .............................................................................................................................................. 27
Links ............................................................................................................................................... 27
Synedra View ..................................................................................................................................... 28
Tested with: ................................................................................................................................... 28
What this does? ............................................................................................................................. 28
Requirement .................................................................................................................................. 28
Steps .............................................................................................................................................. 28
S. 2
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
Links ............................................................................................................................................... 28
Oracle Developer/2000 6i & K.I.S. ..................................................................................................... 29
Tested with: ................................................................................................................................... 29
What this does? ............................................................................................................................. 29
Requirement .................................................................................................................................. 29
Steps .............................................................................................................................................. 29
Links ............................................................................................................................................... 31
Quicktime .......................................................................................................................................... 33
Tested with: ................................................................................................................................... 33
What this does? ............................................................................................................................. 33
Requirement .................................................................................................................................. 33
Steps .............................................................................................................................................. 33
General References ........................................................................................................................... 34
Changes ............................................................................................................................................. 35
S. 3
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
Unattended & silent software deployment/installing
Using PDQ Deploy
(Alternatively Microsoft SCCM, MDT, but not tested with them)
After trying to deploy software by GPO and not being successful, and after researching a lot trough
different internet sources, forums, IT Specialists blogs, etc., I present you here the easiest way to
deploy the presented programs.
General notes:
Make a folder accessible by all clients with subfolders for each software that you want to deploy.
When using PDQ Deploy, make sure to check the checkbox “Include entire directory” if your
installation file is dependent on another files of the same folder. For example you could have a batch
file as the installer, and knowing that the batch file references other files in the same folder, these
must be included to.
DF = deployment folder. The subfolder where you store the installers and files needed by PDQ
Deploy.
For details about msiexec parameters see the following links:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa367988%28v=vs.85%29.aspx
http://ss64.com/nt/msiexec.html
Use /q to install the software completely silent or better /qb! to show a progress bar.
S. 4
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
Firefox
Updated: 18 June 2012
Tested with:
 FF 10.0.2, W7 x86 and WXP SP3
 FF 11.0, W7 x86 and WXP SP3
 FF 12.0, W7 x86
 FF 13.0, W7 x86
 FF 13.0.1 W7 x86
What this does?
 Installs Firefox silently, without user interaction needed and:
o disables the 'Automatically check for updates' option
o disables the 'Always check to see if Firefox is the default browser on start-up option
o disables the 'know your rights' button from displaying on first run
o disables the request to send performance data from displaying
 Firefox is not set as default browser
Requirements
 ZIP decompression tool
 Firefox installer -> http://www.mozilla.com/firefox
Steps
 Unpack the .exe installer of Firefox into the DF
 Create a file in the DF (see the image below) (the name is not important)with the extension
.js and put the following inside it
/*
//
//
//
Not tested version */
ROT 13 encoding when using a .cfg configuration file
pref("general.config.obscure_value", 13);
pref("general.config.filename", "autoconfig.cfg");
/* Tested version */
pref("general.config.obscure_value", 0);
pref("general.config.filename", "autoconfig.js");
This file will tell FF the name of the configuration file.
Store it in the folder
S. 5
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/

The configuration file itself must be stored in the folder core. This file must be created by
you, the name is not important.

A good idea is to do a clear install of FF on a client, configure it all like you want and the copy
ONLY the desired preferences present in the prefs.js file in the configuration file, in our case
autoconfig.js. DO NOT copy all the preferences of the file, only the needed one!!!
FF stores the user preferences in a file called prefs.js. In my computer(W7 x86) it could be
found under C:\Users\UserName\AppData\Roaming\Mozilla\Firefox\Profiles\..\

See here that the preferences in the prefs.js file are defined as user_prefs. When copying the
text to the configuration file (autoconfig.js) replace all user_prefs keywords by the keyword
pref. If you want to lock preferences so that the user cannot change them use the keyword
lockPref. The difference between pref and lockPref is that pref allows the user to change the
preference at runtime, but after restarting FF, the settings are reset again. lockPref locks the
preference completely, so they cannot be changed, even at runtime.
“It is very sad that Mozilla does not offer a keyword to set default values, which can be then
changed for ever by the user; that would be really interesting.”
For example using lockPref("browser.startup.homepage", "http://www.google.at"); will set
the homepage and the user will not be able to change it.
Another examples:
// disable default browser check
pref("browser.shell.checkDefaultBrowser", false);
pref("browser.startup.homepage_override.mstone", "ignore");
// disables the 'know your rights' button from displaying on first run
pref("browser.rights.3.shown", true);
// disables the request to send performance data from displaying
pref("toolkit.telemetry.prompted", 2);
pref("toolkit.telemetry.rejected", true);
// disables the new FF13 feature speedial
pref(browser.newtabpage.enabled, false);
If you want to change more preferences you can see the full list opening the address
about:config on FF. The changed preferences will be saved on the prefs.js file.
S. 6
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
Press the button and you are in. To change a preference, double click it. Be careful here!

Create a new file called override.ini in the core folder and copy in the following:
[XRE]
// Disable the porfile migration window at first FF startup
EnableProfileMigrator=false
// Here you can disable the extension manager, so that the user cannot install addons by himself.
//EnableExtensionManager=false
The information on this file is added by FF to the file application.ini encountered in the same
folder. Do not change the application.ini file directly, it still may work in this FF version, but
future version will only support changes in the override.ini file according to internet sources.
Deploying Add-ons
 Install the add-ons in the clean install of FF.
You will then find the extensions under %programfiles%Mozilla Firefox\extensions\
Copy all extensions in this folder, except the one that comes with the installation of Firefox
(See image below), to the \Firefox\core\extensions\ folder.
S. 7
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
Some extensions are saved as .xpi and others as folders. Do not change these files to .zip and
then decompressing like other sources say, this is not right and will not work for all
extensions.

In the tested version of FF, the user is asked to enable the installed add-on at first start after
installation. This can be completely disabled adding the following preferences:
pref("extensions.autoDisableScopes", 0);
pref("extensions.shownSelectionUI", true);
Look at https://developer.mozilla.org/en/Installing_extensions under "Disabling install
locations". There you can see which directory has which number.
The configuration item extensions.autoDisableScopes simply lists the directories that should be
disabled (disabled here means that addons from this directory are NOT automatically installed).
For example: If you want to disable the user's profile directory you set
extensions.autoDisableScopes to 2, because the profile directory has the number 2. If you want
to disable the user's profile directory and the application directory you set
extensions.autoDisableScopes to 2+4 = 6.
Starting with Firefox 8, the default value of extensions.autoDisableScopes is 15 (1+2+4+8), that
means ALL directories are disabled. Setting 11 (1+2+8), means all directories except the
application directory (which has the number 4) are disabled. Of course you can also change it to
0, which would disable no directories at all.
S. 8
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/

You should control if the add-ons were successfully installed, because I had a case were an
old add-on were not replaced automatically by the new one. I removed the old one, then
after restarting the program the new add-on was automatically activated, but it stayed
always with the message “restart the program to finish the installation”. The solution was to
deactivate the new add-on, then after one restart more from the program, it was finally
installed.

Next create a text file like SetupFirefox.ini. Read the following link to know what to put in the
file: https://wiki.mozilla.org/Installer:Command_Line_Arguments
In the last step you must create a .bat file and put the following inside it:

@echo off
"%~dp0setup.exe" /INI="%~dp0SetupFirefox.ini"
This is all, you do not need extra parameters to run it silently; defining the .ini file makes it to
run silent automatically.
Links:
http://mockbox.net/configmgr-sccm/174-install-and-configure-firefox-silently.html
http://mike.kaply.com/2012/02/14/customizing-the-firefox-installer-on-windows-2012/
http://forums.mozillazine.org/viewtopic.php?f=23&t=2320715&start=15
http://wpkg.org/Firefox
http://www.thomaskoetzing.de/index.php?option=com_smf&Itemid=0&topic=3613.0;wap2
https://wiki.mozilla.org/Installer:Command_Line_Arguments
S. 9
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
https://developer.mozilla.org/En/A_Brief_Guide_to_Mozilla_Preferences
S. 10
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
Thunderbird
Updated 11 June 2012
Tested with:
 Thunderbird 10.0.2, W7 x86 and WXP SP3
 Thunderbird 11.0, W7 x86 and WXP SP3
 Thunderbird 12.0.1, W7 x86
 Thunderbird 13.0, W7 x86
 Thunderbird 13.0.1, W7 x86
Requirements:
 ZIP decompression tool
 Thunderbird installer -> http://www.mozilla.org/de/thunderbird/
Steps
 Same as FF
autoconfig.js
// only needed when app.update.enabled = true
// for references -> http://kb.mozillazine.org/App.update.auto
// pref("app.update.auto", false);
pref("app.update.enabled", false);
pref("extensions.autoDisableScopes", 0);
pref("extensions.pendingOperations", false);
pref("extensions.shownSelectionUI", true);
pref("extensions.update.enabled", false);
pref("mail.rights.version", 1);
pref("mail.shell.checkDefaultClient", false);
pref("mail.winsearch.enable", true);
pref("mail.ui.show.migration.on.upgrade", false);
pref("app.update.showInstalledUI", false);
pref("browser.startup.homepage_override.mstone", "ignore");
pref("mailnews.start_page_override.mstone", "ignore");
pref("toolkit.telemetry.prompted", true);
Links
http://www.mozilla.org/de/thunderbird/
http://wpkg.org/Thunderbird
http://kb.mozillazine.org/Knowledge_Base
S. 11
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
Adobe Reader
Updated: 20 June 2012
Tested with:
 AR 10.1.0, W7 x86 and WXP SP3
 AR 10.1.3, W7 x86
Requirements:
 ZIP decompression tool
 Adobe Reader .msi installer ftp://ftp.adobe.com/pub/adobe/reader/win/
Note: Adobe publishes a .msi version for each XX.YY.zz version (e.g. 10.0, 10.1, etc. should
have a .msi verison, 10.1.1 does not), so it could be that the last version is not a .msi file. It is
possible to decompress the last .exe version and patch the last .msi file, but this is out of the
scope of this documentation. If you want to give it a try anyways see
http://www.404techsupport.com/2009/06/how-to-apply-patches-msp-to-group-policydeployed-software-msi/
 Adobe Customization Wizard ->
http://www.adobe.com/support/downloads/detail.jsp?ftpID=4950
 https://www.adobe.com/cfusion/mmform/index.cfm?name=distribution_form&pv=rdr
“Is this last really needed? I do not know.” I think this is only needed when you repackage the
installer and distribute this file.
Steps
 First you need to create the customization file .mst that will automatically configure the
installation. Open the Adobe Customization Wizard program; open the .msi file of adobe and
select menu Transform -> Generate Transform. Use the same name as the .msi file
 See on http://blog.stealthpuppy.com/deployment/deploying-adobe-reader-x/ what you can
change.
 You have 2 different deployment methods:
1. Using the last .msi installer, use the customization wizard from adobe to make the .mst
file and install it with a batch file like following:
@Echo Off
msiexec /i "%~dp0AdbeRdr1010_de_DE.msi" ALLUSERS=1 /qb! /norestart TRANSFORMS="%~dp0adobe.mst"
If you want to have a log file of the installation process use the following batch code
@Echo Off
msiexec /i "%~dp0AdbeRdr1010_de_DE.msi" ALLUSERS=1 /qb! /norestart
TRANSFORMS="%~dp0adobe.mst" L*v logfile.txt
2. If the last version of adobe does not offer a .msi version do the following:
2.1 Download the last .exe installer and unzip it in the deployment folder
S. 12
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
2.2 Download the last .msp patch file and save it in the deployment folder where you
unzipped the .exe file.
2.3 Now you only need to add the following to the [Startup] section in the setup.ini file:
CmdLine=/spb /rs
2.4 An adapt the [product] section in the setup.ini file with the following:
[Product]
msi=AcroRead.msi
CmdLine=TRANSFORMS="adobe.mst" ALLUSERS=1 /qb!
PATCH=AdbeRdrUpd1013.msp
Executing the setup.exe now will read the setup.ini, install the .msi and then patch it with the
.msp
Your deployment folder should look like this:
Links
http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/reader/pdfs/depl
oying_reader9.pdf
http://blogs.adobe.com/dmcmahon/2010/11/29/using-setup-ini-to-customise-adobe-readeracrobatinstallation/
http://ss64.com/nt/msiexec.html
http://blog.s4tealthpuppy.com/deployment/deploying-adobe-reader-x/
http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/deploying_reader9.pdf
http://rheaheuermann.wordpress.com/2011/06/12/adobe-reader-10-0-1/
S. 13
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
Adobe Flash Player
Updated: 25 June 2012
Tested with:
 Adobe Flash Player ActiveX 11.1.102.62 x86, W7 x86 and WXP SP3
 Adobe Flash Player Plugin 11.1.102.62 x86, W7 x86 and WXP SP3
 Adobe Flash Player ActiveX 11.2.202.228 x86, W7 x86
 Adobe Flash Player Plugin 11.2.202.228 x86, W7 x86
 Adobe Flash Player ActiveX 11.2.202.333 x86, W7 x86
 Adobe Flash Player Plugin 11.2.202.333 x86, W7 x86
 Adobe Flash Player ActiveX 11.2.202.335 x86, W7 x86
 Adobe Flash Player Plugin 11.2.202.335 x86, W7 x86
 Adobe Flash Player ActiveX 11.3.300.257 x86, W7 x86
 Adobe Flash Player Plugin 11.3.300.257 x86, W7 x86
 Adobe Flash Player Plugin 11.3.300.262 x86, W7 x86
What this does?
 Installs Flash Player ActiveX or/and Plugin silently without user interaction…
o disabling auto update
Requirements:
 Flash Player .msi installer ->
http://www.adobe.com/products/flashplayer/distribution3.html
Steps
Note: starting with version 11.3 the installer for 32 and 64 bits are in the same installer, which
automatically decides which version to install.

To avoid that the update service runs, create a file mms.cfg and put the following inside it
AutoUpdateInterval=0
AutoUpdateDisable=1

Create a file install.cmd with the following inside. Adapt the installer name.
S. 14
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
@echo off
echo Installing Adobe Flash Player ActiveX...
msiexec.exe /qb! /norestart /i
"%~dp0install_flash_player_11_active_x.msi"
echo Disabling auto updates...
if exist "%windir%\SysWOW64\Macromed\Flash\" xcopy "%~dp0mms.cfg"
"C:\Windows\SysWOW64\Macromed\Flash\" /e /i /h /y
if exist "%windir%\System32\Macromed\Flash\" xcopy "%~dp0mms.cfg"
"C:\Windows\System32\Macromed\Flash\" /e /i /h /y
REM Return exit code
exit /B %EXIT_CODE%
Your deployment folder should look like this:
Creating a .mst file and setting the property ISCHECKFORPRODUCTUPDATES = 0 does not work like
many sources says.
Links
http://www.adobe.com/products/flashplayer/fp_distribution3.html
http://www.adobe.com/devnet/flashplayer/articles/flash_player_admin_guide.html
S. 15
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
TODO Adobe Air
Created: 14 June 2012
Tested with:
 Adobe Air, W7 x86 and WXP SP3
What this does?
 Installs Adobe Air silently without user interaction and:
o disables auto update
Requirements:
 Adobe Air .msi installer -> http://get.adobe.com/de/air/

Steps
Links
http://help.adobe.com/en_US/air/redist/WS485a42d56cd19641-70d979a8124ef20a34b8000.html#WS485a42d56cd19641-70d979a8124ef20a34b-7ffd
http://www.itninja.com/software/adobe/air-runtime/2-4880
S. 16
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
Java
Updated: 14 June 2012
Tested with:
 Java 6 Update 31, W7 x86 and WXP SP3
 Java 7 Update 3, W7 x86
 Java 7 Update 4, W7 x86
 Java 7 Update 5, W7 x86
Requirements:
 InstEd -> http://www.instedit.com/
 Offline version of the Java installer -> http://www.java.com/de/download/manual.jsp
 No running programs
Do not deploy without being sure Firefox and IE are closed, otherwise the installation will
appear as successfully, but java will not work in the browser.
Steps
 Click the installer. When the License Agreement screen pops up:
If Windows XP:
"c:\Documents and Settings\<username>\Local Settings\Application
Data\Sun\Java\jre1.7.0_5 directory"
If Windows 7:
"C:\Users\<username>\AppData\LocalLow\Sun\Java\jre1.7.0_5\"
If Windows 7 x64:
"C:\Users\<username>\AppData\LocalLow\Sun\Java\jre1.7.0_5_x64\"



In that directory you will find the 'jre1.7.0_05.msi' and a Data1.cab file. The jre1.7.0_05.msi
file is the one we can use to deploy "Java Runtime Environment Version 7.0 Update 5" by
using MSI technology. Don't forget Data1.cab because this is an uncompressed msi:
Right click on the .msi file and select “InstEd It!”
Menu Transform -> New Transform -> select name for the new file
Change the desired options as shown on the following image:
S. 17
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
Attention: DO NOT change the .msi file directly because the file is digital signed and if you
change it the signature gets lost.
.exe is the single executable installer for the JRE
AUTOUPDATECHECK:
- If there is no J2RE previously installed, Java Update auto check is disabled by default. However,
when Java Plug-in is running, it will trigger Java Update to prompt user to see if they want to enable
the update check. If so, Java Update auto check will be enabled at subsequence startup.
- If there is old J2RE and Java Update already installed and if the auto check was disabled, new Java
Update auto check will continue be disabled.
- If there is old J2RE and Java Update already installed and if the auto check was enabled, new Java
Update auto check will be disabled after the system restart or user relogin.
Notice that if AUTOUPDATECHECK=1 or no option is passed to J2SE installer, Java Update will behave
as it is today: auto update check will be enabled by default and the scheduler will run at user login on
supported platforms.
ADDLOCAL is either jrecore[,extra][,other_US] or ALL
S. 18
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
IEXPLORER=1 indicates that the JRE should be registered with the Internet Explorer browser
NETSCAPE6=1 indicates that the JRE should be registered with Netscape 6 or later browsers
MOZILLA=1 indicates that the JRE should be registered with Mozilla 1.1 and later browsers
INSTALLDIR specifies the drive and path of the installation
REBOOT=Suppress indicates that if locked files are encountered the computer should not be
rebooted
JAVAUPDATE=0 indicates that Java Update feature is disabled
EULA=1 indicates that End User License Agreement will be displayed on first use and not during
installation
Remember the Property value "JU=0", this one is needed to supress auto updates. This one seems to
be used if you are logged in with admin rights, even if you have set AUTOUPDATES=0 and
AUTOUPDATECHECK=0.

Then you need a .bat file with the following inside it:
@echo off
taskkill /im iexplore.exe
taskkill /im firefox.exe
msiexec.exe /i "%~dp0jre1.7.0_05.msi" ALLUSERS=1 /qb! /norestart
TRANSFORMS=jre1031.MST
Your deployment folder should look like this:
Links
http://infrablog.escde.net/2010/06/28/ein-leises-java-deployment/
http://www.msiwisdom.com/articles/oracle/260-java-runtime-environment-version-70-update-3
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4995502
S. 19
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
BGInfo
Updated: 05 April 2012
Tested with:
 BGInfo 4.16, W7 x86 and WXP SP3
What it does?
 Creates a folder for BGInfo - %ProgramFiles%\bginfo
 Copies bginfo.exe to the folder
 Copies configuration file to the folder
 Creates a registry entry to enable BGInfo to run automatically when a user logs on
 Accepts EULA automatically
Requirements:
 BGinfo files -> http://technet.microsoft.com/en-us/sysinternals/bb897557
Steps
 Create a file install.vbs with the following content inside it:
 ATTENTION: define the variable configFilePath according to the place where your
configuration file is located.
S. 20
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
'==========================================================================
==============
' BGinfo Installation Script
'==========================================================================
==============
'
' Script Details:
' -------------' This script copies the BGinfo files to the %ProgramFiles%\bginfo folder
and sets the run registry key
'==========================================================================
==============
Option Explicit
'Declare Variables and constants
Dim objShell, objFSO, intErrorCode
'Create objects
Set objShell = CreateObject("WScript.Shell")
Set objFSO = createobject("scripting.filesystemobject")
'==========================================================================
==============
'Main body
'==========================================================================
==============
On Error Resume Next
'Create the bginfo folder
Dim directory
directory = objShell.ExpandEnvironmentStrings("%ProgramFiles%") &
"\bginfo\"
If not objFSO.FolderExists(directory) Then
objFSO.CreateFolder(directory)
End If
'Copy the bginfo file/s
intErrorCode = intErrorCode + objFSO.CopyFile(objShell.CurrentDirectory &
"\Bginfo.exe", directory)
'intErrorCode = intErrorCode + objFSO.CopyFile(objShell.CurrentDirectory &
"\wstat.bgi", directory)
'Add the bginfo shortcut to the run registry key
Dim configFilePath
configFilePath = "\\path\KonfigurationBGInfo.bgi"
intErrorCode = intErrorCode + objshell.RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\bginfo"
, directory & "Bginfo.exe " & configFilePath & " /timer:0 /accepteula",
"REG_SZ")
objShell.Run directory & "Bginfo.exe" & configFilePath &
/accepteula"
" /timer:0
'Cleanup
Set objShell = Nothing
Set objFSO = Nothing
MsgBox intErrorCode
'return errorcode for install to SCCM
WScript.Quit(intErrorCode)
'==========================================================================
==============
S. 21
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
See that this code is not the same used in the URL below.
Links
http://www.mockbox.net/configmgr-sccm/178-install-bginfo-silently.html
http://technet.microsoft.com/en-us/sysinternals/bb897557
S. 22
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
VLC Player
Tested with:
 VLC Player 2.0.0, W7 x86 and WXP SP3
 VLC Player 2.0.1 is packed wrong and needed files are not present. Waiting for new update.
 VLC Player 2.0.2 does not work either
Requirements:
 Some sources say to download the .zip version and not the 7zip version but in my case I only
found the needed vlx.win32.nsi file in the .zip version, so download any version, unpack it
and if you find the file inside it, you are on the right way. ->
http://www.videolan.org/vlc/download-windows.html
 The Nullsoft Scriptable Installer System -> http://nsis.sourceforge.net/Download
Steps
 Unpack the zip file
 The changes are made in the vlc.win32.nsi file
 See the following link for details about what and where to change:
http://www.marcus-bungert.de/archives/1110
 Now generate the new .exe file by right-clicking vlc.win32.nsi and selecting

The new installer will be generated up 1 folder.
Create a batch file and put the following inside it (Attention with the version number!):
@echo off
%~dp0vlc-2.0.1-win32.exe /S /NCRC
S. 23
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
If you are deploying with PDQ Deploy, you can remove the VLC folder, the generated installer
has all you need.
Links
http://www.marcus-bungert.de/archives/1110
http://www.videolan.org/vlc/download-windows.html
S. 24
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
IZarc
Tested with:
 IZarc 4.1.6, W7 x86 and WXP SP3 x86
What this does?
Installs IZarc silently…





without showing a progress window,
without installing extras,
setting the default language,
setting the relationship to all supported file types,
without restarting after installation.
Requirement
 IZarc installer http://www.izarc.org/download.html
Steps
 You only need the following code in a .bat file to run it silently:
@echo off
"%~dp0setup.exe" /SILENT /NOCANDY /Language="German" /ArcTypes=ALL
/NORESTART
Links
http://www.appdeploy.com/packages/detail.asp?id=1705
http://www.izarc.org/faq.html
S. 25
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
7Zip
Tested with:
 7Zip 9.2.0, W7 x86 and WXP SP3
What this does?
 Installs 7Zip silently.
 TODO: It does not set dependencies to any file type.
Requirement
 7Zip .msi installer -> http://www.7-zip.org/download.html
Steps
 PDQ Deploy automatically adds the required parameters to run 7Zip silently. Otherwise if
you want to use a batch file put the following inside it:
msiexec.exe /i "7z920.msi" ALLUSERS=1 /qb! /norestart

This is the same that PDQ Deploy adds when deploying the .msi file.
Links
http://www.7-zip.org/download.html
S. 26
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
Silverlight
Updated: 14 Mai 2012
Tested with:
 Silverlight 5.0.61118.0, W7 x86 and WXP SP3
 Silverlight 5.1.10411, W7 x86
What this does?
Installs Silverlight silently…


without showing a progress window,
deactivating auto update
Requirement
 Silverlight installer -> http://www.microsoft.com/getsilverlight/GetStarted/Install/Default.aspx
Steps
 You only need the following code in a .bat file to run it silently:
@echo off
%~dp0Silverlight.exe /qb! /noupdate
Links
http://blogs.technet.com/b/extreme/archive/2009/04/02/silverlight-installation-switches.aspx
(URL opens word file):
http://www.google.at/url?sa=t&rct=j&q=silverlight%20unattended%20microsoft%20update%20chek
box&source=web&cd=2&ved=0CDIQFjAB&url=http%3A%2F%2Fdownload.microsoft.com%2Fdownlo
ad%2F7%2F8%2Fd%2F78da8ec9-8801-42e5-89e53809386f1316%2Fsilverlight%2520deployment%2520guide.doc&ei=Ff1hT63WMdCK4gTs6yDCA&usg=AFQjCNEBwVHo4WzqivrcwXBeHJD4_mynfg&cad=rja
S. 27
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
Synedra View
Tested with:
 Synedra View 3.1.0.1, W7 x86
 Synedra View 3.1.0.6, W7 x86
What this does?
Installs Synedra View silently…


without showing a progress window,
setting the host
Requirement
 Synedra View installer -> http://www.synedra.com/en/matrix.php
Steps
 You only need the following code in a .bat file to run it silently:
%echo off
"%~dp0View-3.1.0.6.exe" /S /NamingHost=aimserver /DontStartView=1
Links
http://www.synedra.com/intra/documents/productDocu/files/3.1_Artemis/01_synedra_View/01_sy
nedra_View_Dokumentation.html#r_technical_infos.command_line_parameters.xml
S. 28
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
Oracle Developer/2000 6i & K.I.S.
Updated: 01 June 2012
Tested with:
 Oracle Developer/2000 6i
 K.I.S. Mai 2012
What this does?
 Installs Oracle Forms and Reports
 Installs K.I.S.
Requirement
 Oracle Developer/2000 Release 6i cd1 and cd2
 K_inst-Ordner von K.I.S.
 Paths must be adapted to your environment.
Steps

Note that you will need 2 .bat files, 1 for Windows XP and another for newer Windows
versions. For this only copy this code twice and uncomment the corresponding line (see the
last lines of the code).
@ECHO OFF
echo Mit der Ausführung dieser Batch-Datei werden die erforderlichen
Oracle-Datenbank Module installiert, die für das Programm K.I.S. notwendig
sind, sowie K.I.S. selbst.
echo Die Dauer der Ausführung wird auf 10min eingeschätzt, natürlich
Hardware abhängig.
echo.
echo 01 - KIS Ordner wird aufs lokale Laufwerk kopiert...
xcopy \\dilnz\tools\k_inst\images\*.* c:\k_inst\images\*.* /d /r /e /h
/y
xcopy \\dilnz\tools\k_inst\lkfdaten\*.* c:\k_inst\lkfdaten\*.* /d /r /e
/h /y
xcopy \\dilnz\tools\k_inst\v0600\*.* c:\k_inst\v0600\*.* /d /r /e /h /y
xcopy \\dilnz\alle\Vorlagen\Basis_KIS\*.* c:\Vorlagen\*.* /d /r /e /y
echo Schritt 02 erfolgreich durchgeführt.
echo.
echo 02 - Ordner Temp wird angelegt...
mkdir c:\Temp
echo Schritt 02 erfolgreich durchgeführt.
echo.
echo 03 - Benutzerrechte vom Ordner k_inst und Temp werden auf
"Vollzugriff" gesetzt...
Icacls "c:\k_inst" /t /grantr Benutzer:(OI)(CI)f
Icacls "c:\Temp" /t /grantr Benutzer:(OI)(CI)f
Icacls "c:\Vorlagen" /t /grantr Benutzer:(OI)(CI)c
echo Schritt 03 erfolgreich durchgeführt.
echo.
echo Oracle Developer/2000 Release 6i Installation
S. 29
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
echo --------------------------------------------echo 04 - Oracle Forms Developer wird installiert...
REM Module die installiert werden:
REM - Form API 6.0.8.11.3
REM - Forms Builder 6.0.8.11.3
REM - Forms Runtime 6.0.8.11.3
REM - Oracle Net8 Products 8.0.6.0.0-1181195
REM - Oracle Open Client Adapter fr ODBC 6.0.5.29.0
REM - Required Support Files 8.0.6.0.0-1154153
REM - SQL*Plus 8.0.6.0.0-991122
REM - System Support Files 6.0.8.0.0
REM - Tools Utilities 6.0.5.32.0j
"\\dilnz\InstallCD\Oracle\Disk1\INSTALL\orainst.exe" /silent /prd
"\\dilnz\InstallCD\Oracle\Disk1\INSTALL\Nt.prd" /install
w32fapi60,w32fdes60,w32frun60,net80,w32oca60,w32rsf73,w32plus80,w32ssf60,w3
2tutil60 /rspsrc "\\FULLPATH\nt.rsp"
echo Schritt 04 erfolgreich durchgeführt.
echo.
echo 05 - Oracle Reports Developer wird installiert...
REM Module die installiert werden:
REM - Oracle Installer 3.3.1.2.4
REM - Reports Builder 6.0.8.11.3
REM - Reports Runtime 6.0.8.11.3
"\\dilnz\InstallCD\Oracle\Disk1\INSTALL\orainst.exe" /silent /prd
"\\dilnz\InstallCD\Oracle\Disk1\INSTALL\Nt.prd" /install
ntinstall,w32rdes60,w32rrun60 /rspsrc "\\FULLPATH\nt.rsp"
echo Schritt 0 erfolgreich durchgeführt.
echo.
echo 06 - Der Oracle-Patch wird installiert...
REM Module die installiert werden:
REM - Form API 6.0.8.21.3
REM - Form Builder 6.0.8.21.3
REM - Forms Runtime 6.0.8.21.3
REM - Oracle Net8 Client 8.0.6.3.2
REM - Oracle Open Client Adapter fr ODBC 6.0.5.35.0
REM - Reports Builder 6.0.8.20.1
REM - Reports Runtime 6.0.8.20.1
REM - Oracle TCP/IP Protocol Adapter 8.0.6.3.1
REM - Tools Utilities 6.0.5.37.0h
"\\dilnz\InstallCD\Oracle\Disk1\INSTALL\orainst.exe" /silent /prd
"\\dilnz\InstallCD\Oracle\Disk2 Patch\INSTALL\Nt.prd" /install
w32fapi60,w32fdes60,w32frun60,w32netclt80,w32oca60,w32rdes60,w32rrun60,w32t
cp80,w32tutil60 /rspsrc "\\FULLPATH\nt.rsp"
echo Schritt 06 erfolgreich durchgeführt.
echo.
echo 07 - Die .dll Dateien im Ordner k_inst am Tools Laufwerk werden nach
C:\orant\BIN kopiert...
xcopy \\dilnz\tools\k_inst\dll\d2kwut32.dll c:\orant\bin\ /d /r /h /y
xcopy \\dilnz\tools\k_inst\dll\d2kwut60.dll c:\orant\bin\ /d /r /h /y
echo Schritt 07 erfolgreich durchgeführt.
echo.
echo 08 - Das Oracle-Register wird angepasst...
regedit /s forms60_path.reg
regedit /s reports60_path.reg
regedit /s ui_icon.reg
regedit /s nls_lang.reg
S. 30
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
echo Schritt 08 erfolgreich durchgeführt.
echo.
echo 09 - Aus dem Ordner NT-2000 werden die Dateien SQLNET.ORA und
TNSNAMES.ORA auf die lokale Festplatte in das Verzeichnis
\orant\net80\admin kopiert...
xcopy \\dilnz\tools\k_inst\nt-2000\SQLNET.ORA c:\orant\net80\Admin\ /r
/h /y
xcopy \\dilnz\tools\k_inst\nt-2000\TNSNAMES.ORA c:\orant\net80\Admin\
/r /h /y
echo Schritt 09 erfolgreich durchgeführt.
echo.
echo 10 - Das KIS-Register wird angepasst...
Set RegQry=HKLM\Hardware\Description\System\CentralProcessor\0
REG.exe Query %RegQry% | Find /i "x86"
If %ERRORLEVEL% == 0 (
GOTO X86
) ELSE (
GOTO X64
)
:X86
regedit /s "\\dilnz\tools\k_inst\nt-2000\KIS-LW C.reg"
GOTO END
:X64
regedit /s "\\dilnz\tools\k_inst\nt-2000\KIS-LW C x64.reg"
:END
echo Schritt 10 erfolgreich durchgeführt.
echo.
echo 0 - Aus dem Ordner NT-2000 wird die Verknüpfung auf den öffentlichen
Desktop kopiert...
REM fr Windows Vista und Windows 7
xcopy \\dilnz\tools\k_inst\nt-2000\K.I.S..lnk C:\Users\Public\Desktop\
/r /h /y
REM fr Windows XP
REM xcopy \\dilnz\tools\k_inst\nt-2000\K.I.S..lnk
%ALLUSERSPROFILE%\Desktop /r /h /y
echo Schritt 0 erfolgreich durchgeführt.
Links
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/enus/xcopy.mspx?mfr=true
http://superuser.com/questions/142403/batch-file-for-windows7-32-and-64-bits
http://serverfault.com/questions/43794/using-icacls-to-set-permissions-on-user-directories
http://www.winfaq.de/faq_html/Content/tip0500/onlinefaq.php?h=tip0725.htm
S. 31
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
http://itninja.com/question/oracle-forms-and-reports-6-x
S. 32
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
Quicktime
Created: 01 June 2012
Updated: 01 June 2012
Tested with:
 Quicktime 7.72.80.56
What this does?
 Installs Quicktime silently
 You must disable the autoupdate function manually –sadly but true-.
Requirement
 Quicktime installer -> http://www.apple.com/at/quicktime/download/
 ZIP decompression tool
Steps


Unpack the installer
You only need the following files:
o AppleAplicationSupport.msi
o Quicktime.msi
o AppleSoftwareUpdate.msi -> delete this if you don´t want to update Quicktime
automatically

You only need the following code in a .bat file to run it silently:
@echo off
msiexec /i %~dp0AppleApplicationSupport.msi /qb!
msiexec /i %~dp0QuickTime.msi /qb!

To disable autoupdate:
quicktime player -> 2nd menu -> settings -> quicktime settings -> update -> disable the
checkbox
S. 33
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
General References
http://www.adminarsenal.com/pdq-deploy/main/
http://www.adminarsenal.com/pdq-inventory/main
http://en.wikipedia.org/wiki/Software_deployment
http://www.itninja.com/
http://it-grund.blogspot.com
http://wiki.winlite.de/index.php?title=Allgemein:Unbeaufsichtigte_Installation/Schaltertabelle_zur_Silent_Installati
on_von_Programmen
S. 34
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/
Changes
12.04.2012 – V 1.0 Initial release
18.04.2012 – V 1.1 Alpha Flash Player explanation was invalid. New temporary method added
19.04.2012 – V 1.1 Flash Player explanation rewritten with a valid method
03.05.2012 – V 1.2




BGInfo script error bug fix
Flash Player tested with newer version
Adobe: added 2nd deployment method
Tutorial added for Synedra View
05.05.2012 – V 1.2.1


Firefox step 1 corrected
Some text formulation and formatting corrected
15.05.2012 – V 1.2.2




Flash Player steps completed and corrected
Oracle & KIS batch code updated
Silverlight tested with new version
Flash batch code updated and tested with new version
21.05.2012 – V 1.2.3



Adobe reader method 2 rewritten. It now allows you to install the last available patches
/q parameter changed by /passive. Better to have some feedback about the on-going
installation
Other minor text corrections
01.05.2012 – V 1.3


Oracle & K.I.S. text and script was corrected
Quicktime tutorial added
11.06.2012 – V 1.4
S. 35
David Bauer – Software Deployment V 1.4.4 - http://it-grund.blogspot.com/


Adobe Flash Player updated
Firefox and Thunderbird updated
14.06.2012 – V 1.4.1


Java updated
/q and /passive parameter changed by /qb! parameter
18.06.2012 – V 1.4.2

Firefox and Thunderbird updated
20.06.2012 – V 1.4.3

Adobe Reader was not cancelling the restart prompt
04.07.2012 – V 1.4.4


Adobe Flash Player Plugin updated
VLC Player updated to version 2.0.2
S. 36