User Tools

Site Tools


userspace:pdf24

PDF 24 6.3.2

Feel free to contact me :)

Tested with Opsi 4.0.4.5
requiredWinstVersion >= 4.10.5
Tested with Windows 7 Enterprise x64/x86, Server 2003 x86, Server 2012 x64
By Compilenix 2014-04-07

Download: installable opsi package (~ 15 MiB)

Download: my Notepad++ Syntax Highlighting
Download: Visual Studio Code Syntax Highlighting

Tree:
|-- setup_data
|   |-- pdf24-creator.exe
|   `-- setup.inf
|-- check_msi-exitcode.ins
|-- delsub.ins
|-- pdf24_logo.png
|-- pdf24_logo_original.png
|-- setup.ins
`-- uninstall.ins

What is does, and what not

It Does:

  1. Do a default install/uninstall (german)
  2. Searching for updates is disabled
  3. Works with x86 and x64 Systems
  4. Use the check_msi-exitcode script from “Der-Matze”: check_msi-exitcode

Notes

You can change the install language by editing the “setup.inf”, at the “setup_data” directory.

control

control
[Package]
version: 1.1
depends: 
incremental: False
 
[Product]
type: localboot
id: pdf24
name: PDF24 Creator
description: 
advice: 
version: 6.3.2
priority: 0
licenseRequired: False
productClasses: 
setupScript: setup.ins
uninstallScript: uninstall.ins
updateScript: 
alwaysScript: 
onceScript: 
customScript: 
userLoginScript: 
 
[Changelog]
pdf24 [6.3.2-1.1] release; urgency=high
-- Kevin Weis <kevin.weis@faw.de> 2014-04-07
  * update
  * minor changes
 
 
pdf24 [6.2-1.0] release; urgency=high
-- Kevin Weis <kevin.weis@faw.de>  2014-01-17.1014
  * update
 
 
pdf24 [5.7-1.0] release; urgency=high
-- Kevin Weis <kevin.weis@faw.de>  Do, 10.10.2012 14:00 +0200
 
	- update auf Version 5.7
 
pdf24 [5.6-1.0] release; urgency=high
 
	- update auf Version 5.6 (notwendig wegen Administrator-Update-Problem)
 
pdf24 (5.0-1.1) release; urgency=high
 
  -- Kevin Weis <kevin.weis@faw.de>  11:35 23.11.2012
	- update auf Version 5.0
	- msi installer gelöscht
 
pdf24 (3.2.0-1) testing; urgency=low
 
  * Initial package
 
 -- Kevin Weis <kevin.weis@faw.de>  Fr, 12 Okt 2012 10:34:53 +0200

check_msi-exitcode.ins

check_msi-exitcode.ins
SetLogLevel = 1
Set $ExitCode$ = GetLastExitCode
 
If ( $ExitCode$ = "0" Or $ExitCode$ ="1641" Or $ExitCode$ ="3010" )
	If ( $ExitCode$ = "0" )
		SetLogLevel = 5
		Comment "ExitCode = " + $ExitCode$ + " Action completed successfully."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1641" )
		SetLogLevel = 5
		Comment "ExitCode = " + $ExitCode$ + " ERROR_SUCCESS_REBOOT_INITIATED The installer has started a reboot. This error code Not available on Windows Installer version 1.0."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "3010" )
		SetLogLevel = 5
		Comment "ExitCode = " + $ExitCode$ + " ERROR_SUCCESS_REBOOT_REQUIRED A reboot is required to complete the install. This does Not include installs where the ForceReboot action is run. This error code Not available on Windows Installer version 1.0."
		SetLogLevel = 1
	EndIf
 
 
Else
 
 
	If ( $ExitCode$ = "13" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_INVALID_DATA The data is invalid."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_INVALID_DATA The data is invalid."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "87" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_INVALID_PARAMETER One of the parameters was invalid."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_INVALID_PARAMETER One of the parameters was invalid."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "120" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_CALL_NOT_IMPLEMENTED This function is Not available For this platform. It is only available on Windows 2000 And Windows XP with Window Installer version 2.0."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_CALL_NOT_IMPLEMENTED This function is Not available For this platform. It is only available on Windows 2000 And Windows XP with Window Installer version 2.0."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1259" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_APPHELP_BLOCK This error code only occurs when using Windows Installer version 2.0 And Windows XP Or later. If Windows Installer determines a product may be incompatible with the current operating system, it displays a dialog informing the user And asking whether to try to install anyway. This error code is returned If the user chooses Not to try the installation."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_APPHELP_BLOCK This error code only occurs when using Windows Installer version 2.0 And Windows XP Or later. If Windows Installer determines a product may be incompatible with the current operating system, it displays a dialog informing the user And asking whether to try to install anyway. This error code is returned If the user chooses Not to try the installation."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1601" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_SERVICE_FAILURE The Windows Installer service could Not be accessed. Contact your support personnel to verify that the Windows Installer service is properly registered."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_SERVICE_FAILURE The Windows Installer service could Not be accessed. Contact your support personnel to verify that the Windows Installer service is properly registered."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1602" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_USEREXIT User cancel installation."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_USEREXIT User cancel installation."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1603" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_FAILURE Fatal error during installation."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_FAILURE Fatal error during installation."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1604" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_SUSPEND Installation suspended, incomplete."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_SUSPEND Installation suspended, incomplete."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1605" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_UNKNOWN_PRODUCT This action is only valid For products that are currently installed."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_UNKNOWN_PRODUCT This action is only valid For products that are currently installed."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1606" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_UNKNOWN_FEATURE Feature ID Not registered."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_UNKNOWN_FEATURE Feature ID Not registered."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1607" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_UNKNOWN_COMPONENT Component ID Not registered."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_UNKNOWN_COMPONENT Component ID Not registered."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1608" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_UNKNOWN_PROPERTY Unknown property."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_UNKNOWN_PROPERTY Unknown property."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1609" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_INVALID_HANDLE_STATE Handle is In an invalid state."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_INVALID_HANDLE_STATE Handle is In an invalid state."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1610" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_BAD_CONFIGURATION The configuration data For this product is corrupt. Contact your support personnel."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_BAD_CONFIGURATION The configuration data For this product is corrupt. Contact your support personnel."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1611" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_INDEX_ABSENT Component qualifier Not present."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_INDEX_ABSENT Component qualifier Not present."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1612" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_SOURCE_ABSENT The installation source For this product is Not available. Verify that the source exists And that you can access it."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_SOURCE_ABSENT The installation source For this product is Not available. Verify that the source exists And that you can access it."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1613" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_PACKAGE_VERSION This installation package cannot be installed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_PACKAGE_VERSION This installation package cannot be installed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1614" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_PRODUCT_UNINSTALLED Product is uninstalled."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_PRODUCT_UNINSTALLED Product is uninstalled."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1615" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_BAD_QUERY_SYNTAX SQL query syntax invalid Or unsupported."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_BAD_QUERY_SYNTAX SQL query syntax invalid Or unsupported."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1616" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_INVALID_FIELD Record field does Not exist."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_INVALID_FIELD Record field does Not exist."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1618" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_ALREADY_RUNNING Another installation is already In progress. Complete that installation before proceeding with this install."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_ALREADY_RUNNING Another installation is already In progress. Complete that installation before proceeding with this install."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1619" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_PACKAGE_OPEN_FAILED This installation package could Not be opened. Verify that the package exists And that you can access it, Or contact the application vendor to verify that this is a valid Windows Installer package."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_PACKAGE_OPEN_FAILED This installation package could Not be opened. Verify that the package exists And that you can access it, Or contact the application vendor to verify that this is a valid Windows Installer package."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1620" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_PACKAGE_INVALID This installation package could Not be opened. Contact the application vendor to verify that this is a valid Windows Installer package."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_PACKAGE_INVALID This installation package could Not be opened. Contact the application vendor to verify that this is a valid Windows Installer package."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1621" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_UI_FAILURE There was an error starting the Windows Installer service user interface. Contact your support personnel."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_UI_FAILURE There was an error starting the Windows Installer service user interface. Contact your support personnel."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1622" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_LOG_FAILURE Error opening installation log file. Verify that the specified log file location exists And is writable."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_LOG_FAILURE Error opening installation log file. Verify that the specified log file location exists And is writable."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1623" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_LANGUAGE_UNSUPPORTED This language of this installation package is Not supported by your system."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_LANGUAGE_UNSUPPORTED This language of this installation package is Not supported by your system."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1624" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_TRANSFORM_FAILURE Error applying transforms. Verify that the specified transform paths are valid."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_TRANSFORM_FAILURE Error applying transforms. Verify that the specified transform paths are valid."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1625" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_PACKAGE_REJECTED This installation is forbidden by system policy. Contact your system administrator."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_PACKAGE_REJECTED This installation is forbidden by system policy. Contact your system administrator."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1626" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_FUNCTION_NOT_CALLED Function could Not be executed."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_FUNCTION_NOT_CALLED Function could Not be executed."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1627" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_FUNCTION_FAILED Function failed during execution."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_FUNCTION_FAILED Function failed during execution."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1628" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_INVALID_TABLE Invalid Or unknown table specified."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_INVALID_TABLE Invalid Or unknown table specified."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1629" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_DATATYPE_MISMATCH Data supplied is of wrong type."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_DATATYPE_MISMATCH Data supplied is of wrong type."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1630" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_UNSUPPORTED_TYPE Data of this type is Not supported."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_UNSUPPORTED_TYPE Data of this type is Not supported."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1631" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_CREATE_FAILED The Windows Installer service failed to start. Contact your support personnel."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_CREATE_FAILED The Windows Installer service failed to start. Contact your support personnel."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1632" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_TEMP_UNWRITABLE The temp folder is either full Or inaccessible. Verify that the temp folder exists And that you can write to it."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_TEMP_UNWRITABLE The temp folder is either full Or inaccessible. Verify that the temp folder exists And that you can write to it."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1633" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_PLATFORM_UNSUPPORTED This installation package is Not supported on this platform. Contact your application vendor."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_PLATFORM_UNSUPPORTED This installation package is Not supported on this platform. Contact your application vendor."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1634" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_NOTUSED Component Not used on this machine"
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_NOTUSED Component Not used on this machine"
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1635" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_PATCH_PACKAGE_OPEN_FAILED This patch package could Not be opened. Verify that the patch package exists And that you can access it, Or contact the application vendor to verify that this is a valid Windows Installer patch package."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_PATCH_PACKAGE_OPEN_FAILED This patch package could Not be opened. Verify that the patch package exists And that you can access it, Or contact the application vendor to verify that this is a valid Windows Installer patch package."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1636" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_PATCH_PACKAGE_INVALID This patch package could Not be opened. Contact the application vendor to verify that this is a valid Windows Installer patch package."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_PATCH_PACKAGE_INVALID This patch package could Not be opened. Contact the application vendor to verify that this is a valid Windows Installer patch package."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1637" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_PATCH_PACKAGE_UNSUPPORTED This patch package cannot be processed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_PATCH_PACKAGE_UNSUPPORTED This patch package cannot be processed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1638" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_PRODUCT_VERSION Another version of this product is already installed. Installation of this version cannot continue. To configure Or remove the existing version of this product, use Add/Remove Programs on the Control Panel."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_PRODUCT_VERSION Another version of this product is already installed. Installation of this version cannot continue. To configure Or remove the existing version of this product, use Add/Remove Programs on the Control Panel."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1639" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_INVALID_COMMAND_LINE Invalid command line argument. Consult the Windows Installer SDK For detailed command line help."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_INVALID_COMMAND_LINE Invalid command line argument. Consult the Windows Installer SDK For detailed command line help."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1640" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_REMOTE_DISALLOWED Installation from a Terminal Server client session Not permitted For current user."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_REMOTE_DISALLOWED Installation from a Terminal Server client session Not permitted For current user."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1642" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_PATCH_TARGET_NOT_FOUND The installer cannot install the upgrade patch because the program being upgraded may be missing Or the upgrade patch updates a different version of the program. Verify that the program to be upgraded exists on your computer And that you have the correct upgrade patch. This error code is Not available on Windows Installer version 1.0."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_PATCH_TARGET_NOT_FOUND The installer cannot install the upgrade patch because the program being upgraded may be missing Or the upgrade patch updates a different version of the program. Verify that the program to be upgraded exists on your computer And that you have the correct upgrade patch. This error code is Not available on Windows Installer version 1.0."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1643" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_PATCH_PACKAGE_REJECTED The patch package is Not permitted by system policy. This error code is available with Windows Installer versions 2.0 Or later."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_PATCH_PACKAGE_REJECTED The patch package is Not permitted by system policy. This error code is available with Windows Installer versions 2.0 Or later."
		SetLogLevel = 1
	EndIf
 
	If ( $ExitCode$ = "1644" )
		SetLogLevel = 5
		LogError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_TRANSFORM_REJECTED One Or more customizations are Not permitted by system policy. This error code is available with Windows Installer versions 2.0 Or later."
		IsFatalError "ExitCode = " + $ExitCode$ + " ERROR_INSTALL_TRANSFORM_REJECTED One Or more customizations are Not permitted by system policy. This error code is available with Windows Installer versions 2.0 Or later."
		SetLogLevel = 1
	EndIf
EndIf
 
SetLogLevel = $DefaultLogLevel$

delsub.ins

delsub.ins
Set $UninstallCommand$ = 'msiexec.exe /X ' + $MSI$ + ' /qb! REBOOT=ReallySuppress'
 
KillTask "firefox.exe"
KillTask "iexplore.exe"
KillTask "chrome.exe"
KillTask "jqs.exe"
KillTask "java.exe"
KillTask "javaw.exe"
 
SetLogLevel = 6
Message "Uninstall " + $DisplayName$
WinBatch_Uninstall /TimeOutSeconds 120
SetLogLevel = 1
Sub "%ScriptPath%\check_msi-exitcode.ins"
SetLogLevel = 1
 
Message "Uninstall " + $ProductId$ + " done"
 
[WinBatch_Uninstall]
$UninstallCommand$

setup.ins

setup.ins
[Initial]
SetLogLevel = 5
ExitOnError = True
ScriptErrorMessages = On
TraceMode = Off
StayOnTop = False
 
[Actions]
RequiredWinstVersion >= "4.10.5"
Message "Prepare..."
 
DefVar $UninstallProgram$
DefVar $LogDir$
DefVar $ProductName$
DefVar $ProductVersion$
DefVar $MinimumSpace$
DefVar $InstallDir$
DefVar $ExitCode$
DefVar $DefaultLogLevel$
DefVar $Setup_Data$
 
Set $LogDir$			= "%SystemDrive%\tmp"
Set $ProductName$		= "PDF 24"
Set $ProductVersion$   = "6.3.2"
Set $MinimumSpace$	= "41 MB"
Set $InstallDir$		= "%ProgramFilesSysnativeDir%\PDF24"
Set $DefaultLogLevel$   = "5"
Set $Setup_Data$		= "%ScriptPath%\setup_data"
 
ShowBitMap "%ScriptPath%\pdf24_logo.png" $ProductName$
SetLogLevel = $DefaultLogLevel$
 
If Not ( HasMinimumSpace ( "%SystemDrive%", $MinimumSpace$ ))
	LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductName$
	IsFatalError
Else
	Sub "%ScriptPath%\delsub.ins"
 
	Message "Install " + $ProductName$ + " " + $ProductVersion$
	WinBatch_install
	SetLogLevel = 2
	Sub "%ScriptPath%\check_msi-exitcode.ins"
	SetLogLevel = $DefaultLogLevel$
EndIf
 
Message "Install complete"
 
[WinBatch_install]
"$Setup_Data$\pdf24-creator.exe" /NOUPDATE /LOADINF="$Setup_Data$\setup.inf" /sp- /verysilent /norestart

uninstall.ins

uninstall.ins
[Initial]
SetLogLevel = 4
ExitOnError = True
ScriptErrorMessages = On
TraceMode = Off
StayOnTop = False
 
[Actions]
RequiredWinstVersion >= "4.10.5"
Message "Prepare..."
 
DefVar $UninstallProgram$
DefVar $LogDir$
DefVar $ProductName$
DefVar $ProductVersion$
DefVar $MinimumSpace$
DefVar $InstallDir$
DefVar $ExitCode$
DefVar $DefaultLogLevel$
DefVar $Setup_Data$
 
Set $LogDir$			= "%SystemDrive%\tmp"
Set $ProductName$		= "PDF 24"
Set $ProductVersion$   = "6.3.2"
Set $MinimumSpace$	= "41 MB"
Set $InstallDir$		= "%ProgramFilesSysnativeDir%\PDF24"
Set $DefaultLogLevel$   = "4"
Set $Setup_Data$		= "%ScriptPath%\setup_data"
 
ShowBitMap "%ScriptPath%\pdf24_logo.png" $ProductName$
SetLogLevel = $DefaultLogLevel$
 
Sub "%ScriptPath%\delsub.ins"
userspace/pdf24.txt · Last modified: 2021/08/23 08:37 (external edit)