This section contains information on how to obtain, configure and install software packages that are used in the software.bat, osindsoftare.bat and other DiegoStart scripts. Some of the commands used include variables such as %SWDIR% which are set on the scripts themselves, so if you want to use these commands you need to either set the variables first or replace them by the full path to the location of the files.
The Windows updates section contains information on downloading the required updates for Windows. There is currently only Information for Windows XP.
7zip is a free program that can be used to compress and decompress files in common formats such as zip, rar, tar, bz2, etc. Download the program to D:\DiegoStart\winsetup\software\common and save it as 7zip.exe. The next step is to uncomment/add the following line to the osindsoftware.bat installation script which can be found at D:\DiegoStart\winsetup\scripts\common:
echo Installing 7-Zip && start /wait 7zip.exe /S
Remember than to edit a batch file you need to right click on it and then select Edit.
Adobe Acrobat Reader
Download the latest Adobe Reader. Make sure to uncheck the "Yahoo Toolbar" and "Photoshop Album" prior to download, unless you really want those. Proceed to download. You will get a download manager link. Launch the link and download the software. At the end you will end up with a file called: AdbeRdr80_en_US.exe.
This is a FEAD optimizer file and you cannot use it to install in unattended mode. The reason for this is that even though you can pass silent install flags to the FEAD optimizer, when you run it from the command line with the start /wait command, the batch script will only wait for the files to be expanded and not for adobe to be installed. This behavior will create problems since you can end up with two installers that use MSI trying to install simultaneously, so one of them will fail as MSI installer files can only be run one at a time. Open the command prompt, go to where you downloaded the program and run:
D: cd D:\ D:\AdbeRdr80_en_US.exe -nos_s -nos_ne -nos_oD:\DiegoStart\winsetup\software\common\AdbeRdr
In versions prior to 8.0, a user with no Administrator rights could get a pop up window called Install Program As Other User, simply click on your username and then hit OK. You will see a new window popup that says 1155. If you hit cancel on the Install Program As Other User window, the folder where files where extracted will be deleted.
The only step left is to add the command to install Adobe Reader. Since this software should work on all versions of Windows, it is added to the osindsoftware.bat script located in D:\DiegoStart\scripts\common.
echo Installing Acrobat Reader && start /wait msiexec /i "%SWDIR%\AdbeRdr\AcroRead.msi" /qb EULA_ACCEPT=YES ALLUSERS=1 REBOOT=ReallySuppress
The MSI installer for the 7.0.x series had the version number hard coded (Adobe Reader 7.0.8.msi), so if you are installing the old versions, make sure to change "AcroRead.msi" with "Adobe Reader 7.0.8.msi" or the corresponding version that you want.
Firefox 2.x Versions
Download Firefox to D:\DiegoStart\winsetup\software\common\firefox and rename the file from Firefox Setup 2.0.exe to firefox.exe.
Edit the firefox.ini file located in D:\DiegoStart\winsetup\software\common\firefox according to yor preferences.
Enable the installation of Firefox 2.0 in the file osindsoftware.bat by removing the comment in the line:
REM echo Installing Firefox 2.0 && start /wait %SWDIR%\firefox\firefox.exe /S /INI %SWDIR%\firefox\firefox.ini && xcopy /e /y %SWDIR%\firefox-profile\* "C:\Program Files\Mozilla Firefox\defaults\profile\"
Note that the command above includes copying the files in the folder firefox-profile to the Firefox installation folder. Those files correspond to a customized profile that includes a default page, links, CA certificates, etc. If you do not have a customized profile you may want to remove everything after firefox.ini from the command shown above.
Firefox 1.5.0.x Versions
Download and extract Firefox to D:\DiegoStart\winsetup\software\common\firefox. Since Firefox comes in executable format you should use 7zip or other program to extract the files.
Edit the file config.ini (use Wordpad since this is a Unix file and Notepad will not recognize the end of lines) by changing the following lines:
From: Run Mode=Normal To: Run Mode=Silent
If you want to change the grouping of the Start Menu shortcuts (I like to put Firefox inside a folder called Internet Software with Thunderbird, WinSCP, etc), you can modify line:
From: Program Folder Path=[PROGRAMS] To: Program Folder Path="[PROGRAMS]\Internet Software"
In order to install firefox simply modify the osindsoftware.bat script by uncommenting the line:
REM echo Installing Mozilla Firefox && start /wait %SWDIR%\firefox\setup.exe && xcopy /e /y %SWDIR%\firefox-profile\* "C:\Program Files\Mozilla Firefox\defaults\profile\"
As you can see from the line above, the contents of the folder called firefox-profile is being copied from to the location of the default profile in the system. This will allow you to customize all links, bookmarks, ssl certificates, etc, so that all your users get a customized firefox browser the first time they run the software. In order to create a customized profile simply run the firefox browser on a newly installed machine, then customize everything you need and finally copy all the files from the user profile folder located in:
C:\Documents and Settings\Administrator\Application Data\Mozilla\Firefox\Profiles\4zsoiil3.default
Ghostscript and Ghostview
Ghostcript is an interpreter for the Postcript language and Ghostview a graphical interface for Ghostscript. Download GSview and Ghostscript. Decompress the files with 7zip or other compression software to the folders ghostview and ghostscript respectively
Use the following commands to install the software in unattended mode. Please note that Ghostscript must be installed first.
echo Installing Ghostcript && cd %SWDIR%\ghostscript && start /wait setupgs.exe "%programfiles%\gs" && cd ..\ echo Installing Ghostview && cd %SWDIR%\ghostview && start /wait setup.exe "%programfiles%\gv" && cd ..\
Java Development Kit and Runtime Environment
In order to enable the installation of these packages use the following command or uncomment the appropriate lines in the osindsoftware.bat script:
echo Installing J2SE && start /wait %SWDIR%\jdk.exe /s /v"/qn IEXPLORER=1 MOZILLA=1 REBOOT=ReallySuppress" echo Installing J2re && start /wait %SWDIR%\jre.exe /s /v"/qn ADDLOCAL=jrecore IEXPLORER=1 MOZILLA=1 REBOOT=ReallySuppress WEBSTARTICON=0"
Please note that even though the Java Development Kit (JDK) includes the Java Runtime environment (JRE), the JDK does not correctly install the Java plugin on your web browses and for that reason it is needed to install the JRE as well.
The Maple installation CD contains a section called Windows Single User Silent Installation in the Install.html file where you can read more about how to install the software in unattended mode.
Create a folder called maple in D:\DiegoStart\winsetup\software\common. Copy the Windows folder from the Maple 10 installation cd inside your maple folder (you have to end up with maple\Windows). Create an answer file for the installation called mapleinstaller.txt that contains the following information (adjust the USER_PURCHASE_CODE value):
INSTALLER_UI=SILENT USER_INSTALL_DIR=c:\\Program\ Files\\Maple\ 10 MULTI_USERS=1 DESKTOP_SHORTCUTS=Yes USER_REQUESTED_RESTART=No RUN_ACTIVATION_BOOLEAN_2=0 USER_PURCHASE_CODE=XXXXXXXXXXXXXXXX USER_PROXY_YES=0
The answer file should be located in the maple folder that you created originally. In order to install maple you must add or uncomment the following line in the software.bat script for each system type where you want maple installed:
echo Installing Maple && cd Z:\software\common\maple\Windows\Disk1\InstData\VM && start /wait InstallMaple10.exe -f Z:\software\common\maple\mapleinstaller.txt
Mathematica 5.2 NCN version (Stand alone)
The official instructions can be found at the Wolfram Website. Create a folder called mathematica and copy all the files from inside the Windows folder to the mathematica one. Unlike what you did for Maple, you do not need to have mathematica\Windows in this case. You will also need to get the file mathpass from a computer where you have already installed the software. This file will be located at: C:\Documents and Settings\All Users\Application Data\Mathematica\Licensing and should be copied inside the mathematica folder under the common software.
Use the following command to install from the software.bat script:
echo Installing Mathematica && start /wait Z:\software\common\mathematica\setup.exe -s -f1"Z:\software\common\mathematica\install.iss" -f2"C:\mathematica.log" && copy /y "Z:\software\common\mathematica\mathpass" "C:\Documents and Settings\All Users\Application Data\Mathematica\Licensing\"
Matlab R14 SP2
Make a folder called matlab inside the common software directory and copy the contents of all Matlab cds in there, overwriting files when asked to do so. The matlab installer comes with an example answer file and all you need to do is fill in the blanks. The answer file and the license.dat file should also be included in the matlab folder that you made. Here is a sample installer.ini file:
destination=C:\matlabR14 plp=XX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX name=User Name Here company=Your Company Name Here license=yes CD2=Z:\software\common\matlab CD3=Z:\software\common\matlab outlog=c:\matlab_install.log license_path=z:\software\common\matlab\license.dat lmgr_files=false lmgr_service=false timeout=1000 readonly=true update=false visible=true product=all
This is the command used to install matlab
echo Installing Matlab && cd Z:\software\common\matlab && start /wait setup.exe -if Z:\software\common\matlab\installer.ini
Microsoft Office 11 (2003) Administrative Installation Point (AIP)
Creating the AIP
If you wish to install Microsoft Office as part of DiegoStart, you need to create and Administrative installation point that contains all the setup files. You will also need to patch the AIP with all the office updates and then generate an answer file that you will keep in D:\DiegoStart\winsetup\answerfiles\office11.
1. Put the Office 11 cd in your cdrom Unit. The drive letter for my cdrom unit is F. Cancel setup if it autostarts.
2. Open a command prompt from Start-->Run by typing cmd and pressing ok.
3. Now change to the cdrom unit and start the AIP setup
F: F:\>setup.exe /a
4. You will be prompted for the Organization name, Install Location and CD Key. Fill those to match your needs. The Office AIP should to be installed in the folder: D:\DiegoStart\winsetup\software\common\office11
5. After it is done you will see a window that says Office 11 setup has completed successfully.
Patching the Office AIP
Obtaining the updates
Download and save the updates listed below to the folder D:\DiegoStart\winsetup\software\common\office11\updates (this folder is part of the DiegoStart tree so it should already exist):
Office 2003 Service Pack 2 9/27/2005 File size: 101.8 MB Update for Outlook 2003 Junk E-mail Filter (KB907492) 11/08/05 File size: 3.2 MB Update for Office 2003 (KB907417) 11/08/05 File size: 299 KB Update for Outlook 2003 (KB913807) 3/10/2006 File size: 8.6 MB Update for Office 2003 Alternative User Input (KB912440) 5/09/2006 File Size: 1.3 MB Update for Word 2003 (KB917334) 6/13/2006 File size: 5.8 MB Update for PowerPoint 2003 (KB916518) 6/13/2006 File size: 2.8 MB Update for Office 2003 (KB914455) 7/10/2006 size: 339 KB Update for Excel 2003 (KB918419) 7/10/2006 File size: 5.1 MB Update for Office 2003 (KB917151) 7/11/2006 File size: 10.8 MB Update for Office 2003 (KB921566) 8/7/2006 File size: 10.8 MB Update for InfoPath 2003 (KB920103) 8/7/2006 File size: 2.9 MB Update for Outlook 2003 Junk E-mail Filter (KB921580) 09/11/06 File size: 3.2 MB Update for Publisher 2003 (KB894542) 9/12/2006 File size: 2.7 MB Update for Excel 2003 (KB923088) 10/6/2006 File size: 5.1 MB Update for Word 2003 (KB923094) 10/6/2006 File size: 5.8 MB Update for Outlook 2003 Junk E-mail Filter (KB923095) 10/6/2006 File size: 3.2 MB Update for Office 2003 (KB923097) 10/6/2006 File size: 1.3 MB Update for Office 2003 (KB923272) 10/6/2006 File size: 10.8 MB Update for Office 2003 (KB924424) 10/6/2006 File size: 1.6 MB Update for PowerPoint 2003 (KB923091) 10/6/2006 File size: 2.9 MB
Applying the updates
For your convenience, there is a batch file that does the patching automatically if the patches have been downloaded to the appropriate location listed above. This script is called updateo11aip.bat and it is included with DiegoStart. It should be located in:
Simply run this script from the command line after downloading all the updates listed above and your AIP will be fully updated.
In the spirit of explaining how the updates are applied, you can do them manually one by one as follows:
Uncompress all the updates by either double-clicking on each one and extracting them to D:\DiegoStart\winsetup\software\common\office11\updates, or if you do not want to have to agree to the license agreement in the gui, you can do it from the command line as shown below. Note that you only need to keep the files with extension .msp, delete anything else:
FILE.EXE /q /c /t:D:\DiegoStart\winsetup\software\common\office11\updates where FILE.EXE is each one of files you downloaded.
Apply all the updates to the AIP. The command used is:
start /wait msiexec /p PATH_TO_MSP /a PATH_TO_MSI SHORTFILENAMES=TRUE /qb /L* PATH_TO_LOG_FILE.TXT
For your convenience, there is a batch file that does the patching automatically if the patches have been downloaded and extracted. It is called updateo11aip.bat and it is included with DiegoStart. It should be located in: D:\DiegoStart\winsetup\software\common\office11\updates
NOTE: If you have changed your installation to a drive letter other than D, you will need to first edit the script and adjust the drive letter accordingly.
Creating the answer file
Once you have created an AIP for Office, you will need to create an answer file that will be used to install Office on client computers. You need to download and install the Office Resource Kit that is appropriate for your version of Office, we currently use Office 11 (2003) for this example.
Launch the Custom Installation Wizard located at Start->Programs->Microsoft Office->Microsoft Office Tools->Microsoft Office 2003 Resource Kit and use it to create an answer file for Office. Once you are done, save the answer file with MST extension at: D:\DiegoStart\winsetup\answerfiles\office11\O11ANSWER.MST
Please note that you can create different answer files to include or remove features depending on the type of system that you will install. Once you have one or more answer files, you decide which answer file is used for each type of system by modyfing the appropriate installation line in the software.bat scripts located at D:\DiegoStart\winsetup\scripts\winxp.
A sample MST answer file cannot be provided since it contains the CD Key information used to install Office.
Installing Office in unattended mode
The following command line launches the installation of Office in unattended mode
echo Installing Office 11 && cd Z:\software\common\office11 && start /wait setup.exe TRANSFORMS=Z:\answerfiles\Office11\011ANSWER.MST /qb-
This line should be added to each one of the system type sections located in the software.bat batch script for each different operating system that you are installing.
Upgrading Office in unattended mode
Please note that with time there will be updates for Office and to install them on systems that you have DiegoStarted, you can simply use the following procedure:
Apply all new patches to your Office AIP. On the client machine open the command prompt Mount the network share to the acces the Office installation files:
net use Z: \\10.0.0.1\winsetup /user installer mountP4D$
Run the command:
Z: && cd Z:\winsetup\software\common\office11 && msiexec /i PRO11.MSI REINSTALL=ALL REINSTALLMODE=vomu /qb-
Now unmount the network share
net use /d /y Z:
Microsoft Office 12 (2007) Unattended install
Microsoft no longer uses the same Administrative Installation Point and highly complicated patching methodology from Office 11. Start by creating the folder:
Now copy all the files from the Office 12 cd to that folder.
You will now run the Office Customization Tool to create an answer file which you will save in a new office12 folder inside the Diegostart answerfiles folder.
# Launch command prompt D: cd D:\Diegostart\winsetup\software\common\office12 setup.exe /admin
Follow the steps in the GUI to customize your office installation. It is very important that in the section Licensing and user interface under Setup you set the drop down menu for display level to Basic and uncheck all the boxes below. Once you are ready, save the file to D:\Diegostart\winsetup\answerFiles\office12, the extension will be .MSP
You must download and extract all updates to the following folder:
All the files placed in the folder above must have the msp (patches) file extension for the updates to be applied to your admin point. You can extract each update from the command line as follows:
update-file.exe /quiet /extract:D:\DiegoStart\winsetup\software\common\office12\Updates
Otherwise, you may use your favorite compression software to unpack the msp files into the Updates folder.
This is done by running setup with the /adminfile switch and the full path to the answer file. The following line should be added to the software.bat script.
echo Installing Office 12 && start /wait Z:\software\common\office12\setup.exe /adminfile Z:\answerfiles\Office12\OEM.MSP
Nero Burning Rom
While version 7 is out, it does not seem to have been received very well by the community because it is too big, and has so many other features that are not really needed to burn cds or dvds, so we will keep providing Nero 6 as an example.
Download Nero6 to D:\DiegoStart\winsetup\software\common and rename the file as nero.exe. In order to allow users to burn cds without giving them Administrator rights, you will also need to get Nero BurnRights Installer and save it to that folder.
You also need to modify the registry file that contains your Nero Key so that the installation is not a demo version but rather a registered version. This file is called Nero.reg and it is located at D:\DiegoStart\winsetup\scripts\regfiles\Common. The file looks like this:
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Ahead\Nero - Burning Rom\Info] "Company"="Your Company Name Here" "Serial5"="Your Nero 5 Key here" "Serial6"="Your Nero 6 Key here" "Serial7"="Your Nero 7 Key here" "User"="Your Name"
Now you need to enable nero by removing the REM comment on the osindsoftware.bat script or by adding the line:
echo Installing Nero Burning Rom && regedit /s Z:\scripts\regfiles\common\Nero.reg && start /wait %SWDIR%\nero.exe /silent /noreboot && start /wait %SWDIR%\NeroBurnRightsInstaller.exe /silent /burnrights:all /noreboot
Note from the command above that we first add the registry key file so that we get a registered version installed, then we install Nero and finally set the burn rights with the downloaded software.
Obtain the setup file cal_win_1011.exe and rename it as calendar.exe in the common software directory. Then uncomment or add the command shown below to your software.bat script:
echo Installing Oracle Calendar && start /wait Z:\software\common\calendar\calendar.exe /s /v"/qn ALLUSERS=2"
This is a free SSH client. Download [ http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe Putty] and save it as putty.exe in the common software folder. Putty does not require any installation so simply enable the command that copies the executable to the computer's All Users\Desktop folder so that it is available to any user. As usual this is done in the osindsoftware.bat script.
echo Installing Putty && copy /B /Y %SWDIR%\putty.exe "C:\Documents and Settings\All Users\Desktop\"
Download the stand alone Quicktime installer. If the previous link expires you can also try here. Save the file to the common software folder and then enable the Quicktime installation on the osindsofware.bat script. The command line looks like:
echo Installing Quicktime && start /wait %SWDIR%\QuickTimeInstaller.exe /s /v/qn
Download Real Player and save the installer as RealPlayer.exe on the common software folder. Add or uncomment the following line to the osindsoftware.bat script:
echo Installing RealPlayer && start /wait %SWDIR%\RealPlayer.exe -s
The installation of this mail client is almost identical to that of Firefox. Download Thunderbird and extract the contents of the installer file to a folder called thunderbird inside the common software folder.
Modify the file config.ini the same way you did with Firefox:
Run Mode=Silent Program Folder Path="[COMMON_PROGRAMS]\Internet Software"
Now uncomment or add the command to install Thunderbird in the osindsoftware.bat script:
echo Installing Thunderbird && start /wait %SWDIR%\thunderbird\setup.exe
You can also create a customized profile and copy the files to the folder D:\DiegoStart\winsetup\software\common\thunderbird-profile. You will also need to add a section to copy the files to C:\Program Files\Mozilla Thunderbird\defaults\profile for your customized profile to work. Just look at how the Firefox profile was done and adjust it for Thunderbird.
McAfee Virus Scan Enterprise
In order to install the software, you need to get the MSI installer files. In my current workplace, the Virus Scan Software is distributed as an exe, and after expanding it I get a FEAD package that also needs to be uncompressed. To do so, I first uncompress the exe file to a folder called virusscan80i-p11 using 7zip and then expand the FEAD package as follows:
D:\DiegoStart\winsetup\software\common\virusscan80i-p11>SETUP.EXE -nos_ne -nos_nd -nos_oD:\DiegoStart\winsetup\software\common\virusscan
Now you can delete the virusscan80i-p11 folder and add the following line to osindsoftware.bat to enable installation of Virus Scan:
echo Installing VirusScan && cd %SWDIR%\virusscan && start /wait msiexec /i VSE800.MSI /qb- /l* C:\vssetup.log && cd ..\
This is a nice software utility that allows you to compare files. Being free just makes it even nicer :). Download the WinMerge setup file to the common software folder renaming it as WinMerge.exe. If download fails you should try a mirror site.
To enable installation of WinMerge simply modify osindsoftare.bat by adding or uncommenting the command:
echo Installing WinMerge && start /wait %SWDIR%\WinMerge.exe SP- /SILENT /NORESTART
WinSCP needs the creation of a file called winscp.ini so that it can be installed in unattended mode. Here is a basic example of the file:
[Setup] Lang=en Dir=C:\Program Files\WinSCP3 Group=Internet Software\WinSCP3 NoIcons=0 Components=main,shellext,pageant,puttygen
Create this file in the same place where you put the WinSCP.exe installer. The last step is enabling WinSCP with the following command line in the osindsoftware.bat script:
echo Installing WinSCP && start /wait %SWDIR%\winscp.exe /SILENT /LOADINF=Z:\packages\common\winscp.ini
Hmm, why is this not in alphabetical order as everything else? There is a reason and it is to remind you that these plugins must be the last software installed in the osindsoftware.bat script to make sure that Firefox has already been installed. If you want to be able to obtain the installer files, you will need to sign-up for a free Intranet Distribution License. After downloading the files please rename them as follows:
install_flash_player_active_x.msi -> flashplayer-IE.msi install_flash_player_plugin.msi -> flashplayer-other.msi sw_lic_full_installer.msi -> shockwave.msi
The following commands can be used to install the software in unattended mode form the batch script:
REM ---- Install Flash and Shockwave last after firefox is installed ----- echo Installing Flash for IE && start /wait msiexec /i %SWDIR%\flashplayer-IE.msi /qb- echo Installing Flash for Firefox && start /wait msiexec /i %SWDIR%\flashplayer-other.msi /qb- echo Installing Shockwave for Browsers && start /wait msiexec /i %SWDIR%\shockwave.msi /qb- REM ----------------------------------------------------------------------