Hej All,
In this blogpost, i will explain how to install and upgrade the PDFCreator application. PDFCreator is a free tool to create PDF files.
Download the newest version of PDFCreator from here:
http://www.pdfforge.org/products/pdfcreator/download
Silent Installation
The downloaded setup file is wrapped with Inno Setup. Here is the silent installation commandline:
PDFCreator-0_9_8_setup.exe /silent /nocancel /norestart /DontUseYahooSearch /SP-
When you run PDFCreator-0_9_8_setup.exe /?, here are the options;

Custom Installation
If you would like to perform custom installation, you can record the settings(this is similar to old installshield setup -r) into an .ini file. The command line would be like this;
PDFCreator-0_9_8_setup.exe /SAVEINF="C:\Temp\PDFCreator098_Custom.ini"
To apply customized .ini file;
PDFCreator-0_9_8_setup.exe /LOADINF="C:\Temp\PDFCreator098_Custom.ini"
Uninstall and Upgrade to newest version
Due to upgrade the PDFCreator to a newest version, you will have to uninstall currently installed version first. To uninstall existing version:
"C:\Program Files\PDFCreator\unins000.exe" /SILENT
Once you have uninstalled the existing version, you can run silent install for the new version.
PDFCreator-0_9_8_setup.exe /silent /nocancel /norestart /DontUseYahooSearch /SP-
Important! When you run this, you will have an error message that it cannot download toolbar.msi, which is a plugin for Internet Explorer. I have recorded a customized ini file, where I have unchecked the plugin installation. You can also add into your silent install commandline which components to install. You can do this by adding /COMPONENTS=","
Here is the customized ini file, you can copy+paste into notepad and save as .ini file
[Setup]
Lang=english
Dir=C:\Program Files\PDFCreator
Group=PDFCreator
NoIcons=0
SetupType=custom
Components=program,ghostscript,comsamples,helpfiles,helpfiles\english,languages,languages\english
Tasks=winexplorer
Printername=PDFCreator
ServerInstallation=0
Win9xPrinterdriver=0
WinNtPrinterdriver=0
Win2k32bitPrinterdriver=0
Finally, here are the Inno Setup switches ;
/SP- Disables the This will install... Do you wish to continue?
prompt at the beginning of Setup. Of course, this will have no
effect if the DisableStartupPrompt [Setup] section directive was set
to yes.
/SILENT, /VERYSILENT Instructs Setup to be silent or very silent.
When Setup is silent the wizard and the background window are not
displayed but the installation progress window is. When a setup is
very silent this installation progress window is not displayed.
Everything else is normal so for example error messages during
installation are displayed and the startup prompt is (if you haven't
disabled it with DisableStartupPrompt or the '/SP-' command line
option explained above)
If a restart is necessary and the '/NORESTART' command isn't used
(see below) and Setup is silent, it will display a Reboot now?
message box. If it's very silent it will reboot without asking.
/LOG Causes Setup to create a log file in the user's TEMP directory
detailing file installation actions taken during the installation
process. This can be a helpful debugging aid. For example, if you
suspect a file isn't being replaced when you believe it should be
(or vice versa), the log file will tell you if the file was really
skipped, and why.
The log file is created with a unique name based on the current
date. (It will not overwrite or append to existing files.)
Currently, it is not possible to customize the filename.
The information contained in the log file is technical in nature
and therefore not intended to be understandable by end users.
Nor is it designed to be machine-parseable; the format of the
file is subject to change without notice.
/NOCANCEL Prevents the user from cancelling during the installation
process, by disabling the Cancel button and ignoring clicks on the
close button. Useful along with /SILENT.
/NORESTART Instructs Setup not to reboot even if it's necessary.
/LOADINF="filename" Instructs Setup to load the settings from the
specified file after having checked the command line. This file can
be prepared using the '/SAVEINF=' command as explained below.
Don't forget to use quotes if the filename contains spaces.
/SAVEINF="filename" Instructs Setup to save installation settings to
the specified file.
Don't forget to use quotes if the filename contains spaces.
/LANG=language Specifies the language to use. language specifies the
internal name of the language as specified in a [Languages] section
entry.
When a valid /LANG parameter is used, the Select Language dialog
will be suppressed.
/DIR="x:\dirname" Overrides the default directory name displayed on
the Select Destination Location wizard page. A fully qualified
pathname must be specified.
/GROUP="folder name" Overrides the default folder name displayed on
the Select Start Menu Folder wizard page. If the [Setup] section
directive DisableProgramGroupPage was set to yes, this command line
parameter is ignored.
/NOICONS Instructs Setup to initially check the Don't create any
icons check box on the Select Start Menu Folder wizard page.
/COMPONENTS="comma separated list of component names" Overrides the
default components settings. Using this command line parameter
causes Setup to automatically select a custom type.
The uninstaller program (unins???.exe) accepts optional command line
parameters. These can be useful to system administrators, and to
other programs calling the uninstaller program.
/SILENT
When specified, the uninstaller will not ask the user any questions
or display a message stating that uninstall is complete. Shared
files that are no longer in use are deleted automatically without
prompting. Any critical error messages will still be shown on the
screen.
/NORESTART
Instructs the uninstaller not to reboot even if it's necessary.
Good luck with the Deployment 
Posted
13 aug 2009 13:06
by
Mahir Topal