Adobe Flashpayer 13.0.0.206

Feel free to contact me :)

Tested with Opsi 4.0.4.5
Tested with Windows 7 Enterprise x64/x32, 8 Enterprise x64, 8.1 Pro x64, Server 2003 SP2 x32, Server 2012 Standard
requiredWinstVersion >= 4.11.3
By Compilenix 2014-04-29

Download: installable opsi package (~ 33 MiB)

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

Tree:
|-- setup_data
|   |-- install_flash_player_13_active_x.exe
|   |-- install_flash_player_13_plugin.exe
|   `-- sha1sum.txt
|-- Adobe Flash Player Distribution Adobe.url
|-- check_msi-exitcode.ins
|-- delsub.ins
|-- flashplayer.png
|-- setup.ins
|-- sha1sum.txt
`-- uninstall.ins

What is does, and what not

It Does:

  1. Handle install and uninstall of: ActiveX and Plugin based Flashplayer
  2. Use the check_msi-exitcode script from “Der-Matze”: check_msi-exitcode

Change Log

flashplayer (13.0.0.206-2.1) release; urgency=low;
 -- Kevin Weis <kevin.weis@faw.de> 2014-04-29
  * update
  * catch installer exit-code 1032

TODO

Stop using Adobe Flashplayer!1!!

control

control.txt
[Package]
version: 2.1
depends: 
incremental: False
 
[Product]
type: localboot
id: flashplayer
name: Flash Player
description: 
advice: 
version: 13.0.0.206
priority: 55
licenseRequired: False
productClasses: 
setupScript: setup.ins
uninstallScript: uninstall.ins
updateScript: 
alwaysScript: 
onceScript: 
customScript: 
userLoginScript: 
 
[Changelog]
flashplayer (13.0.0.206-2.1) release; urgency=low;
 -- Kevin Weis <kevin.weis@faw.de> 2014-04-29
  * update
  * catch installer exit-code 1032
 
 
flashplayer (13.0.0.182-2.1) release; urgency=low;
 -- Kevin Weis <kevin.weis@faw.de> 2014-04-22
  * switch message locale from german to english
  * Apply new variables nomination
  * Add "TimeOutSeconds = 120" while uninstalling, to prevent potential hangup
  * If some fatal error occours, the error will now be displayed (as a Message), too.
  * Use the check_msi-exitcode script from “Der-Matze”: https://forum.opsi.org/wiki/userspace:check_msi-exitcode
 
 
flashplayer (13.0.0.182-2.0) release; urgency=high;
 -- Kevin Weis <kevin.weis@faw.de> 2014-04-17
  * update
  * removed: flash-player1_kl.png
 
 
flashplayer (12.0.0.70-2.0) release; urgency=high;
 -- Kevin Weis <kevin.weis@faw.de> 2014-02-24
  * update:
      Flash Player 12.0.0.70 (Internet Explorer)
      Flash Player 12.0.0.70 (Plugin-based browsers)
 
 
flashplayer (12.0.0.43-2.0) release; urgency=high;
 -- Kevin Weis <kevin.weis@faw.de> 2014-01-16
  * update: Flash Player 12.0.0.38 (Internet Explorer); 12.0.0.43 (Plugin-based browsers)
  * remove unused directory "SERVER_DATA"
 
 
flashplayer (11.8.800.94-2.0) urgency=high;
 -- Kevin Weis <kevin.weis@faw.de> 30.07.2013
  * update
 
 
flashplayer (11.7.700.202-2.0) urgency=low;
 -- Kevin Weis <kevin.weis@faw.de>  Mi, 30 Apr 2013
  * update
 
 
flashplayer (11.7.700.169-2.0) urgency=high;
 -- Kevin Weis <kevin.weis@faw.de>  Mi, 30 Apr 2013
  * update
 
 
flashplayer (10.1.202.64-2.0) testing; urgency=low;
flashplayer (11.4.402.265-1.0) urgency=high;
flashplayer (11.6.602.171-1.0) urgency=high;
 -- Kevin Weis <kevinweis@gmx.de>  Di, 19 Apr 2011
  * Initial package

check_msi-exitcode.ins

check_msi-exitcode.ins
SetLogLevel = 1
Set $Temp_ExitCode$ = GetLastExitCode
Set $Temp_Message$ = ""
 
If ( $Temp_ExitCode$ = "0" Or $Temp_ExitCode$ ="1641" Or $Temp_ExitCode$ ="3010" )
	If ( $Temp_ExitCode$ = "0" )
		SetLogLevel = 5
		Comment "ExitCode = " + $Temp_ExitCode$ + " Action completed successfully."
		SetLogLevel = 1
	EndIf
 
	If ( $Temp_ExitCode$ = "1641" )
		SetLogLevel = 5
		Comment "ExitCode = " + $Temp_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 ( $Temp_ExitCode$ = "3010" )
		SetLogLevel = 5
		Comment "ExitCode = " + $Temp_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 ( $Temp_ExitCode$ = "13" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_INVALID_DATA The data is invalid."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "87" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_INVALID_PARAMETER One of the parameters was invalid."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "120" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_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."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1032" )
		SetLogLevel = 5
		Comment "ExitCode = " + $Temp_ExitCode$ + " Your Microsoft Internet Explorer includes the last version of the Adobe Flash Player built-in. Windows Update will inform you when new versions of the Flash Player are available."
		SetLogLevel = 1
	EndIf
 
	If ( $Temp_ExitCode$ = "1259" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_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."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1601" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_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."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1602" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_INSTALL_USEREXIT User cancel installation."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1603" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_INSTALL_FAILURE Fatal error during installation."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1604" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_INSTALL_SUSPEND Installation suspended, incomplete."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1605" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_UNKNOWN_PRODUCT This action is only valid For products that are currently installed."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1606" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_UNKNOWN_FEATURE Feature ID Not registered."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1607" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_UNKNOWN_COMPONENT Component ID Not registered."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1608" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_UNKNOWN_PROPERTY Unknown property."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1609" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_INVALID_HANDLE_STATE Handle is In an invalid state."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1610" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_BAD_CONFIGURATION The configuration data For this product is corrupt. Contact your support personnel."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1611" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_INDEX_ABSENT Component qualifier Not present."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1612" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_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."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1613" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_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."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1614" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_PRODUCT_UNINSTALLED Product is uninstalled."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1615" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_BAD_QUERY_SYNTAX SQL query syntax invalid Or unsupported."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1616" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_INVALID_FIELD Record field does Not exist."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1618" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_INSTALL_ALREADY_RUNNING Another installation is already In progress. Complete that installation before proceeding with this install."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1619" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_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."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1620" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_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."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1621" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_INSTALL_UI_FAILURE There was an error starting the Windows Installer service user interface. Contact your support personnel."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1622" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_INSTALL_LOG_FAILURE Error opening installation log file. Verify that the specified log file location exists And is writable."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1623" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_INSTALL_LANGUAGE_UNSUPPORTED This language of this installation package is Not supported by your system."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1624" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_INSTALL_TRANSFORM_FAILURE Error applying transforms. Verify that the specified transform paths are valid."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1625" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_INSTALL_PACKAGE_REJECTED This installation is forbidden by system policy. Contact your system administrator."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1626" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_FUNCTION_NOT_CALLED Function could Not be executed."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1627" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_FUNCTION_FAILED Function failed during execution."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1628" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_INVALID_TABLE Invalid Or unknown table specified."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1629" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_DATATYPE_MISMATCH Data supplied is of wrong type."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1630" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_UNSUPPORTED_TYPE Data of this type is Not supported."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1631" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_CREATE_FAILED The Windows Installer service failed to start. Contact your support personnel."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1632" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_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."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1633" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_INSTALL_PLATFORM_UNSUPPORTED This installation package is Not supported on this platform. Contact your application vendor."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1634" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_INSTALL_NOTUSED Component Not used on this machine"
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1635" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_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."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1636" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_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."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1637" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_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."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1638" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_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."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1639" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_INVALID_COMMAND_LINE Invalid command line argument. Consult the Windows Installer SDK For detailed command line help."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1640" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_ExitCode$ + " ERROR_INSTALL_REMOTE_DISALLOWED Installation from a Terminal Server client session Not permitted For current user."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1642" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_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."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1643" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_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."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
 
	If ( $Temp_ExitCode$ = "1644" )
		SetLogLevel = 5
		Set $Temp_Message$ = "ExitCode = " + $Temp_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."
		Message "Fatal error: " + $Temp_Message$
		LogError $Temp_Message$
		IsFatalError $Temp_Message$
	EndIf
EndIf
 
SetLogLevel = $DefaultLogLevel$

delsub.ins

delsub.ins
Set $Uninstall_Arguments$ = "-uninstall"
 
If FileExists ( $Setup_ExeActiveX$ )
	Set $Temp_Setup_Exe$ = $Setup_ExeActiveX$
	Message "Uninstall " + $ProductName$ + " ActiveX"
	WinBatch_Uninstall /TimeOutSeconds 120
	Sub "%ScriptPath%\check_msi-exitcode.ins"
	Message "Uninstall " + $ProductName$ + " ActiveX done"
EndIf
 
If FileExists ( $Setup_ExePlugin$ )
	Set $Temp_Setup_Exe$ = $Setup_ExePlugin$
	Message "Uninstall " + $ProductName$ + " Plugin"
	WinBatch_Uninstall /TimeOutSeconds 120
	Sub "%ScriptPath%\check_msi-exitcode.ins"
	Message "Uninstall " + $ProductName$ + " Plugin done"
EndIf
 
 
[WinBatch_Uninstall]
"$Temp_Setup_Exe$" $Uninstall_Arguments$

setup.ins

setup.ins
[Initial]
SetLogLevel = 6
ExitOnError = True
ScriptErrorMessages = Off
TraceMode = Off
StayOnTop = False
 
[Actions]
Message "Prepare..."
RequiredWinstVersion >= "4.11.3"
 
DefVar $DefaultLogLevel$
DefVar $MinimumSpace$
DefVar $ProductName$
DefVar $ProductVersion$
DefVar $Setup_Arguments$
DefVar $Setup_ExeActiveX$
DefVar $Setup_ExePlugin$
DefVar $Temp_ExitCode$
DefVar $Temp_Message$
DefVar $Temp_Setup_Exe$
DefVar $Uninstall_Arguments$
DefVar $Path_SetupData$
 
Set $DefaultLogLevel$	= "6"
Set $MinimumSpace$	= "20 MB"
Set $Path_SetupData$	= "%ScriptPath%\setup_data"
Set $ProductName$		= "Flash Player"
Set $ProductVersion$	= "13.0.0.206"
Set $Setup_ExeActiveX$	= $Path_SetupData$ + "\install_flash_player_13_active_x.exe"
Set $Setup_ExePlugin$	= $Path_SetupData$ + "\install_flash_player_13_plugin.exe"
Set $Temp_Message$	= ""
 
ShowBitMap "%ScriptPath%\flashplayer.png" $ProductName$
SetLogLevel = $DefaultLogLevel$
 
If Not ( HasMinimumSpace ( "%SystemDrive%", $MinimumSpace$ ) )
	Set $Temp_Message$ = "Fatal error: Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductName$
	Message $Temp_Message$
	LogError $Temp_Message$
	IsFatalError $Temp_Message$
EndIf
 
If Not ( FileExists ( $Setup_ExePlugin$ ) ) And Not ( FileExists ( $Setup_ExePlugin$ ) )
	Set $Temp_Message$ = "Fatal error: File not found: " + $Setup_ExeActiveX$ + " _AND_ " + $Setup_ExePlugin$
	Message $Temp_Message$
	LogError $Temp_Message$
	IsFatalError $Temp_Message$
EndIf
 
Message "Install/Update " + $ProductName$ + " " + $ProductVersion$
Sub "%ScriptPath%\delsub.ins"
 
If FileExists ( $Setup_ExeActiveX$ )
	Set $Setup_Arguments$ = "-install"
	Set $Temp_Setup_Exe$ = $Setup_ExeActiveX$
	Message "Install/Update " + $ProductName$ + " " + $ProductVersion$ + " ActiveX"
	WinBatch_Install
	Sub "%ScriptPath%\check_msi-exitcode.ins"
	Message "Install/Update " + $ProductName$ + " " + $ProductVersion$ + " ActiveX done."
Else
	Message "File not found: " + $Setup_ExeActiveX$
	LogWarning "File not found: " + $Setup_ExeActiveX$
EndIf
 
If FileExists ( $Setup_ExePlugin$ )
	Set $Setup_Arguments$ = "-install"
	Set $Temp_Setup_Exe$ = $Setup_ExePlugin$
	Message "Install/Update " + $ProductName$ + " " + $ProductVersion$ + " Plugin"
	WinBatch_Install
	Sub "%ScriptPath%\check_msi-exitcode.ins"
	Message "Install/Update " + $ProductName$ + " " + $ProductVersion$ + " Plugin done"
Else
	Message "File not found: " + $Setup_ExePlugin$
	LogWarning "File not found: " + $Setup_ExePlugin$
EndIf
 
Message "Install/Update complete"
 
 
[WinBatch_Install]
"$Temp_Setup_Exe$" $Setup_Arguments$

uninstall.ins

uninstall.ins
[Initial]
[Initial]
SetLogLevel = 6
ExitOnError = True
ScriptErrorMessages = Off
TraceMode = Off
StayOnTop = False
 
[Actions]
Message "Prepare..."
RequiredWinstVersion >= "4.11.3"
 
DefVar $DefaultLogLevel$
DefVar $MinimumSpace$
DefVar $ProductName$
DefVar $ProductVersion$
DefVar $Setup_Arguments$
DefVar $Setup_ExeActiveX$
DefVar $Setup_ExePlugin$
DefVar $Temp_ExitCode$
DefVar $Temp_Message$
DefVar $Temp_Setup_Exe$
DefVar $Uninstall_Arguments$
DefVar $Path_SetupData$
 
Set $DefaultLogLevel$	= "6"
Set $MinimumSpace$	= "20 MB"
Set $Path_SetupData$	= "%ScriptPath%\setup_data"
Set $ProductName$		= "Flash Player"
Set $ProductVersion$	= "13.0.0.206"
Set $Setup_ExeActiveX$	= $Path_SetupData$ + "\install_flash_player_13_active_x.exe"
Set $Setup_ExePlugin$	= $Path_SetupData$ + "\install_flash_player_13_plugin.exe"
Set $Temp_Message$	= ""
 
ShowBitMap "%ScriptPath%\flashplayer.png" $ProductName$
SetLogLevel = $DefaultLogLevel$
 
If Not ( FileExists ( $Setup_ExePlugin$ ) ) And Not ( FileExists ( $Setup_ExePlugin$ ) )
	Set $Temp_Message$ = "Fatal error: File not found: " + $Setup_ExeActiveX$ + " _AND_ " + $Setup_ExePlugin$
	Message $Temp_Message$
	LogError $Temp_Message$
	IsFatalError $Temp_Message$
EndIf
 
Message "Uninstall " + $ProductName$
Sub "%ScriptPath%\delsub.ins"
Message "Uninstall Done"

QR Code
QR Code userspace:adobe_flashplayer (generated for current page)