User Tools

Site Tools


userspace:foxit_pdf_reader

Foxit PDF Reader

Adaptation of the opsi-template scripts for Foxit PDF Reader.
The Foxit Reader is a small, fast, and feature rich PDF viewer which allows you to open, view, and print any PDF file.

We use the Enterprise version, but this script will probably also work with the normal version: http://www.foxitsoftware.com/Secure_PDF_Reader/enterprise.php
Get the most recent msi installer here: http://cdn04.foxitsoftware.com/pub/foxit/reader/desktop/win/6.x/6.2/enu/EnterpriseFoxitReader620.0429_enu.msi

control file

[Package]
version: 1
depends: 
incremental: False
 
[Product]
type: localboot
id: foxit-pdf-reader
name: FoxIt PDF Reader Enterprise
description: FoxIt Reader is a small and fast PDF Reader.
advice: 
version: 6.20.0429
priority: 0
licenseRequired: False
productClasses: 
setupScript: setup3264.ins
uninstallScript: uninstall3264.ins
updateScript: 
alwaysScript: 
onceScript: 
customScript: 
userLoginScript: 
 
[Changelog]
foxit-pdf-reader (6.14.0217-1) testing; urgency=low
 
  * Initial package
 
 -- ICT <ict@gcecad-service.nl>  Mon, 14 Apr 2014 11:31:12 +0000

setup3264.ins

; Copyright (c) uib gmbh (www.uib.de)
; This sourcecode is owned by uib
; and published under the Terms of the General Public License.
; credits: http://www.opsi.org/en/credits/
;
; License Management removed
 
 
[Actions]
requiredWinstVersion >= "4.10.8.6"
 
;DefVar $MsiId32$
;DefVar $UninstallProgram32$
;DefVar $MsiId64$
;DefVar $UninstallProgram64$
DefVar $LogDir$
DefVar $ProductId$  
DefVar $MinimumSpace$
;DefVar $InstallDir32$
;DefVar $InstallDir64$
DefVar $ExitCode$
DefVar $INST_SystemType$
;DefVar $INST_architecture$
DefVar $INST_MsVersion$
 
set $INST_MsVersion$ = GetMsVersionInfo
Set $INST_SystemType$ = GetSystemType
;set $INST_architecture$ = GetProductProperty("install_architecture","system specific")
Set $LogDir$ = "%SystemDrive%\tmp"
 
; ----------------------------------------------------------------
; - Please edit the following values                             -
; ----------------------------------------------------------------
;$ProductId$ should be the name of the product in opsi
; therefore please: only lower letters, no umlauts, 
; no white space use '-' as a seperator
Set $ProductId$       = "foxit-pdf-reader"
Set $MinimumSpace$    = "150 MB"
; the path were we find the product after the installation
;Set $InstallDir32$      = "%ProgramFiles32Dir%\<path to the product>"
;Set $InstallDir64$      = "%ProgramFiles64Dir%\<path to the product>"
; ----------------------------------------------------------------
 
if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
	LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductId$
	isFatalError
	; Stop process and set installation status to failed
endif
if $INST_MsVersion$ < "5.1"
	LogError "Windows XP or newer is required for " + $ProductId$  
	isFatalError
endif
 
comment "Show product picture"
ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$
 
if FileExists("%ScriptPath%\delsub3264.ins")
	comment "Start uninstall sub section"
	Sub "%ScriptPath%\delsub3264.ins"
endif
 
comment "installing"
 
if ($INST_SystemType$ = "x86 System") 
;and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")
	Message "Installing " + $ProductId$ + "..."
	comment "Start setup program"
	Winbatch_install_32
	Sub_check_exitcode
	comment "Copy files"
	Files_install_32 /32Bit
	comment "Patch Registry"
	Registry_install /32Bit
	Registry_install_AllProfiles /AllNTUserDats
	comment "Create shortcuts"
	LinkFolder_install
endif
 
if ($INST_SystemType$ = "64 Bit System") 
;and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
	Message "Installing " + $ProductId$ + "..."
	comment "Start setup program"
	Winbatch_install_32
	;Winbatch_install_64
	Sub_check_exitcode
	comment "Copy files"
	Files_install_64 /64Bit
	comment "Patch Registry"
	Registry_install /64Bit
	Registry_install_AllProfiles /AllNTUserDats
	comment "Create shortcuts"
	LinkFolder_install
	;Winbatch_install2_32
endif
 
[Winbatch_install_32]
"%SystemRoot%\system32\msiexec.exe" /qb-! /package "%ScriptPath%\files\EnterpriseFoxitReader620.0429_enu.msi" DESKTOP_SHORTCUT=0 VIEW_IN_BROWSER=0 LAUCHCHECKDEFAULT=0 UI_EXITDIALOGOPTIONALCHECKBOX=0 ADDLOCAL=ALL REMOVE=FX_CREATOR,FX_FIREFOXPLUGIN,FX_SPELLCHECK,FX_SE
 
;[Winbatch_install2_32]
;"%SystemRoot%\system32\regedit.exe" /s "%ScriptPath%\files\foxit.reg"
 
[Files_install_32]
; Example of recursively copying some files into the installation directory:
;
; copy -s "%ScriptPath%\files\*.*" "$InstallDir32$"
 
[Winbatch_install_64]
; Choose one of the following examples as basis for your installation
; You can use $LicenseKey$ var to pass a license key to the installer
;
; === Nullsoft Scriptable Install System ================================================================
; "%ScriptPath%\Setup.exe" /S
;
; === MSI package =======================================================================================
; You may use the parameter PIDKEY=$Licensekey$
; msiexec /i "%ScriptPath%\some.msi" /l* "$LogDir$\$ProductId$.install_log.txt" /qb! ALLUSERS=2 REBOOT=ReallySuppress
;
; === InstallShield + MSI=====================================================================================
; Attention: The path to the log file should not contain any whitespaces
; "%ScriptPath%\setup.exe" /s /v" /l* $LogDir$\$ProductId$.install_log.txt /qb! ALLUSERS=2 REBOOT=ReallySuppress"
; "%ScriptPath%\setup.exe" /s /v" /qb! ALLUSERS=2 REBOOT=ReallySuppress"
;
; === InstallShield =====================================================================================
; Create setup.iss answer file by running: setup.exe /r /f1"c:\setup.iss"
; "%ScriptPath%\setup.exe" /s /sms /f1"%ScriptPath%\setup.iss" /f2"$LogDir$\$ProductId$.install_log.txt"
;
; === Inno Setup ========================================================================================
; http://unattended.sourceforge.net/InnoSetup_Switches_ExitCodes.html
; You may create setup answer file by: setup.exe /SAVEINF="filename"
; You may use an answer file by the parameter /LOADINF="filename"
; "%ScriptPath%\setup.exe" /sp- /silent /norestart /nocancel /SUPPRESSMSGBOXES
 
[Files_install_64]
; Example of recursively copying some files into the installation directory:
;
; copy -s "%ScriptPath%\files\*.*" "$InstallDir64$"
 
[Registry_install]
; Example of setting some values of an registry key:
;
; openkey [HKEY_LOCAL_MACHINE\Software\$ProductId$]
; set "name1" = "some string value"
; set "name2" = REG_DWORD:0001
; set "name3" = REG_BINARY:00 af 99 cd
 
[Registry_install_AllProfiles]
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Annotation]
set "PopupOpacity" = REG_DWORD:00000070
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Annotation\Ink]
set "AllowCreate" = "Yes"
set "TimeOut" = "2"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Find]
set "Option_Case" = REG_DWORD:00000000
set "Option_WholeWord" = REG_DWORD:00000000
set "Option_IncBmark" = REG_DWORD:00000000
set "Option_IncCom" = REG_DWORD:00000000
set "Option_IncForm" = REG_DWORD:00000000
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\GlobalData\Widget]
set "HighLightBar" = REG_DWORD:00000001
set "HighLight" = REG_DWORD:00000001
set "HighLightColor" = REG_DWORD:16770269
set "ReqiredColor" = REG_DWORD:16756912
set "EnableAutoComplete" = REG_DWORD:00000001
set "OpenPropertyAfterCreate" = REG_DWORD:00000001
set "RunAutoRecognitionAfterConvert" = REG_DWORD:00000000
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Markup]
set "CommentAuthorType" = REG_DWORD:00000000
set "CustomAuthor"=""
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\plugins\Speech]
set "bDefAttribute" = "1"
set "bDefVoice" = "1"
set "bReadComments" = "1"
set "nPitch" = "5"
set "nRate" = "5"
set "csVoice" = "Microsoft Sam"
set "csTokenId" = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\MSSam"
set "nVolume" = "10"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\plugins\Updater]
set "UpdateMode" = "0"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Preferences\CreatePDF]
set "PageSizeType" = REG_DWORD:00000000
set "FixedPageSizeType" = REG_DWORD:00000000
set "PageDirection" = REG_DWORD:00000000
set "PageWidth" = REG_DWORD:00061200
set "Pageheight" = REG_DWORD:00079200
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Preferences\Display]
set "bDispGrid" = "0"
set "bLogicalPage" = "1"
set "bActionChangeZoom" = "0"
set "bUseClearType" = "0"
set "dbDefScale" = "1.000000"
set "nMarginSize" = "8"
set "bCustomMargin" = "0"
set "nFacingCount" = "2"
set "bCustomFacing" = "0"
set "nShowMode" = "1"
set "nZoomToMode" = "4"
set "csNavigationTab" = "ShowHideThumbnails"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Preferences\Documents]
set "bMultiInstance" = "0"
set "bPromptCloseTabs" = "1"
set "clrDocFore" = "0"
set "clrDocBack" = "16777215"
set "bReplaceColor" = "0"
set "bTwoColor" = "1"
set "bCustomColor" = "0"
set "nUnit" = "4"
set "bAlertFullScreen" = "1"
set "AllowHideControls" = "1"
set "nOpenFileMode" = "0"
set "bReadmodeInBrowser" = "0"
set "bPDFAViewMode" = "1"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Preferences\EmbedDocAssociation]
set "bEmbedDoc" = "0"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Preferences\FullScreen]
set "clrFulScreenBackColor" = "0"
set "bFulScreenShowBookmark" = "0"
set "bFulScreenShowScrollbar" = "0"
set "bFulScreenShowStatusBar" = "0"
set "bFulScreenShowTabBar" = "0"
set "bFulScreenShowMenuBar" = "0"
set "bFulScreenShowExitBtn" = "0"
set "bFulScreenSinglePageMode" = "1"
set "bFulScreenShowHandDown" = "1"
set "bFulScreenIgnoreTrans" = "0"
set "bFulScreenNavCtrlDi" = "0"
set "TransType" = ""
set "TransDi" = ""
set "TransDiOpp" = ""
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Preferences\General]
set "bFixedSnapShotDpi" = "0"
set "nSnapShotDpi" = "72"
set "bPrintUseGraphics" = "0"
set "bIsCheckTextLink" = "1"
set "bMenuExclusiveRow" = "1"
set "bHandToolSelect" = "1"
set "bAutoHideStauts" = "0"
set "bCertifiePlugins" = "1"
set "nGetWord" = "1"
set "bShowTabCloseBtn" = "0"
set "nTabMaxWidth" = "150"
set "nMinMode" = "0"
set "CurrentTool" = "Hand"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Preferences\History\Options]
set "bUseHistoryOpening" = "1"
set "bLastSession" = "0"
set "nSaveMaxSize" = "50"
set "nRecentlyUseListSize" = "4"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Preferences\IeAssociation]
set "bShowInbrowser" = "1"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Preferences\Internet]
set "bHideQuickSearchBar" = "0"
set "bDisabledQuickSearch" = "0"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Preferences\InternetSearch]
set "bHideQuickSearchBar" = REG_DWORD:00000000
set "bDisabledQuickSearch" = REG_DWORD:00000000
set "bHideAskBtn" = REG_DWORD:00000001
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Preferences\Languages]
set "installLangid" = "49001d"
set "langid" = "49001d"
set "nChooseLan" = "0"
set "nShowAllLanguage" = "1"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Preferences\Others]
set "bEnableSharePointFeatures" = REG_DWORD:00000000
set "bEnableJS" = "0"
set "nPreferItem" = "Spelling"
set "nAdvertiseId" = "0"
set "bShowAD" = "1"
set "nFileSaveType" = "0"
set "bCheckExpireDate" = "1"
set "bCheckRegister" = "1"
set "bCheckStandardSave" = "1"
set "bCheckStandardLimited" = "1"
set "bCheckStandardFeature" = "1"
set "csInitialOpenDir" = ""
set "bSeparateMenubar" = "1"
set "bShowXFAWarn" = "1"
set "bShowWelcomeDlg" = "1"
set "bShowTraileDlg" = "1"
set "bShowOpenURLMessageBox" = "0"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Preferences\PrevThumAssociation]
set "nPrevHndlrInc" = "1"
set "nThumHndlrInc" = "1"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Preferences\Readering]
set "nMsaaMode" = "2"
set "nMsaaPageCount" = "50"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Preferences\Trust Manager]
set "bSafeMode" = "1"
set "bDisableSafeforTrusted" = "0"
set "bRMSEncryptTrusted" = "1"
set "bSignatureValidTrusted" = "1"
set "csSitesDateManage" = ""
set "nSitesAccessRight" = "3"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Ribbon]
set "IsRibbonMinimize" = REG_DWORD:00000000
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Ribbon\Ribbon Quick Access Toolbar]
set "0" = "File_Main_Open"
set "1" = "File_Main_Save"
set "2" = "File_Main_Print"
set "3" = "Share_Sendto_Email"
set "4" = "Home_Create_FromBlankPage"
set "5" = "Button_Undo"
set "6" = "Button_Redo"
set "ShowQATOnBottom" = REG_DWORD:00000000
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Signature]
set "OpenWithCheck" = REG_DWORD:00000000
set "InstantlySign" = REG_DWORD:00000001
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\SnapShot]
set "CheckSnapShot" = REG_DWORD:00000001
set "UseFixedSnapShotDpi" = "0"
set "FixedSnapShotDpi" = "72"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\SpellCheck]
set "Enabled" = REG_DWORD:00000000
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\StartPage\Advertisement]
set "nSelIndex" = REG_DWORD:4294967295
set "csVersion" = "c0.0"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\StartPage\Update]
set "ad_lastdate" = "15817"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\TextView\FindInfo]
set "bTextAutoWidth" = "0"
set "bMatchWholeWord" = "0"
set "bSearchDown" = "1"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\TextView\ReplaceInfo]
set "bTextAutoWidth" = "0"
set "bMatchWholeWord" = "0"
set "bSearchDown" = "1"
set "nSaveType" = "0"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\TextView\TextWidthInfo]
set "nTextWidth" = "78"
set "bTextKeepColumn" = "1"
set "bTextAutoRotate" = "1"
set "bTextAutoWidth" = "1"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows]
set "IsTabbedToolbarMode" = REG_DWORD:00000000
set "bShowStatusBar" = REG_DWORD:00000001
set "IsHideAllToolbars" = REG_DWORD:00000000
set "IsToolBarLock" = REG_DWORD:00000001
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\BaseControlBar-59626]
set "IsVisible" = REG_DWORD:00000000
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\ControlBar-59626]
set "ID" = REG_DWORD:00059626
set "RectRecentFloat" = REG_BINARY:e0 00 00 00 f3 00 00 00 cf 01 00 00 e7 02 00 00
set "RectRecentDocked" = REG_BINARY:00 00 00 00 00 00 00 00 ef 00 00 00 f4 01 00 00
set "RecentFrameAlignment" = REG_DWORD:00004096
set "RecentRowIndex" = REG_DWORD:00000000
set "IsFloating" = REG_DWORD:00000000
set "MRUWidth" = REG_DWORD:00032767
set "PinState" = REG_DWORD:00000000
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\ControlBars-Summary]
set "Bars" = REG_DWORD:00000000
set "ScreenCX" = REG_DWORD:00001920
set "ScreenCY" = REG_DWORD:00001080
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\DockManager-128]
set "DockingCBAndSliders" = REG_BINARY:00 00 00 00 02 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 ff ff ff ff ff ff ff ff 00 00 00 00 00 00 00 00 05 00 00 00 05 00 00 00 00 00 00 00 02 00 00 00 05 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 ea e8 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 ea e8 00 00 01 00 00 00 ea e8 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Foxit Professioner Tools\1]
set "ButtonName" = "Open"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Foxit Professioner Tools\10]
set "ButtonName" = "Undo"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Foxit Professioner Tools\11]
set "ButtonName" = "Redo"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Foxit Professioner Tools\2]
set "ButtonName" = "Save"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Foxit Professioner Tools\3]
set "ButtonName" = "Print"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Foxit Professioner Tools\4]
set "ButtonName" = "FullScreen"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Foxit Professioner Tools\5]
set "ButtonName" = "Hand"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Foxit Professioner Tools\6]
set "ButtonName" = "Select Text"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Foxit Professioner Tools\7]
set "ButtonName" = "Annot"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Foxit Professioner Tools\8]
set "ButtonName" = "GoBack"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Foxit Professioner Tools\9]
set "ButtonName" = "GoForward"
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\MenuBar]
set "ID" = REG_DWORD:00059398
set "RectRecentFloat" = REG_BINARY:0a 00 00 00 0a 00 00 00 6e 00 00 00 6e 00 00 00
set "RectRecentDocked" = REG_BINARY:00 00 00 00 00 00 00 00 65 07 00 00 19 00 00 00
set "RecentFrameAlignment" = REG_DWORD:00008192
set "RecentRowIndex" = REG_DWORD:00000000
set "IsFloating" = REG_DWORD:00000000
set "MRUWidth" = REG_DWORD:00032767
set "PinState" = REG_DWORD:00000000
set "IsVisible" = REG_DWORD:00000001
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Toolbars\Toolbar\Basic]
set "RectRecentFloat" = REG_BINARY:0a 00 00 00 0a 00 00 00 6e 00 00 00 6e 00 00 00
set "RectRecentDocked" = REG_BINARY:00 00 00 00 19 00 00 00 bc 01 00 00 3d 00 00 00
set "RecentFrameAlignment" = REG_DWORD:00008192
set "RecentRowIndex" = REG_DWORD:00000001
set "IsFloating" = REG_DWORD:00000000
set "MRUWidth" = REG_DWORD:00000771
set "PinState" = REG_DWORD:00000000
set "IsVisible" = REG_DWORD:00000001
set "IsDefaultLayout" = REG_DWORD:00000001
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Toolbars\Toolbar\Comments]
set "RectRecentFloat" = REG_BINARY:0a 00 00 00 0a 00 00 00 6e 00 00 00 6e 00 00 00
set "RectRecentDocked" = REG_BINARY:87 04 00 00 19 00 00 00 de 04 00 00 3d 00 00 00
set "RecentFrameAlignment" = REG_DWORD:00008192
set "RecentRowIndex" = REG_DWORD:00000001
set "IsFloating" = REG_DWORD:00000000
set "MRUWidth" = REG_DWORD:00000467
set "PinState" = REG_DWORD:00000000
set "IsVisible" = REG_DWORD:00000000
set "IsDefaultLayout" = REG_DWORD:00000001
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Toolbars\Toolbar\Convert]
set "RectRecentFloat" = REG_BINARY:0a 00 00 00 0a 00 00 00 6e 00 00 00 6e 00 00 00
set "RectRecentDocked" = REG_BINARY:87 04 00 00 19 00 00 00 fd 04 00 00 3d 00 00 00
set "RecentFrameAlignment" = REG_DWORD:00008192
set "RecentRowIndex" = REG_DWORD:00000001
set "IsFloating" = REG_DWORD:00000000
set "MRUWidth" = REG_DWORD:00000142
set "PinState" = REG_DWORD:00000000
set "IsVisible" = REG_DWORD:00000000
set "IsDefaultLayout" = REG_DWORD:00000001
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Toolbars\Toolbar\docuSign]
set "RectRecentFloat" = REG_BINARY:0a 00 00 00 0a 00 00 00 6e 00 00 00 6e 00 00 00
set "RectRecentDocked" = REG_BINARY:3d 05 00 00 19 00 00 00 7d 05 00 00 3d 00 00 00
set "RecentFrameAlignment" = REG_DWORD:00008192
set "RecentRowIndex" = REG_DWORD:00000001
set "IsFloating" = REG_DWORD:00000000
set "MRUWidth" = REG_DWORD:00000046
set "PinState" = REG_DWORD:00000000
set "IsVisible" = REG_DWORD:00000000
set "IsDefaultLayout" = REG_DWORD:00000001
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Toolbars\Toolbar\Drawing]
set "RectRecentFloat" = REG_BINARY:0a 00 00 00 0a 00 00 00 6e 00 00 00 6e 00 00 00
set "RectRecentDocked" = REG_BINARY:00 00 00 00 3d 00 00 00 94 01 00 00 61 00 00 00
set "RecentFrameAlignment" = REG_DWORD:00008192
set "RecentRowIndex" = REG_DWORD:00000007
set "IsFloating" = REG_DWORD:00000000
set "MRUWidth" = REG_DWORD:00000375
set "PinState" = REG_DWORD:00000000
set "IsVisible" = REG_DWORD:00000000
set "IsDefaultLayout" = REG_DWORD:00000001
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Toolbars\Toolbar\Edit]
set "RectRecentFloat" = REG_BINARY:0a 00 00 00 0a 00 00 00 6e 00 00 00 6e 00 00 00
set "RectRecentDocked" = REG_BINARY:00 00 00 00 3d 00 00 00 f4 00 00 00 61 00 00 00
set "RecentFrameAlignment" = REG_DWORD:00008192
set "RecentRowIndex" = REG_DWORD:00000002
set "IsFloating" = REG_DWORD:00000000
set "MRUWidth" = REG_DWORD:00000233
set "PinState" = REG_DWORD:00000000
set "IsVisible" = REG_DWORD:00000000
set "IsDefaultLayout" = REG_DWORD:00000001
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Toolbars\Toolbar\Favorite]
set "RectRecentFloat" = REG_BINARY:0a 00 00 00 0a 00 00 00 6e 00 00 00 6e 00 00 00
set "RectRecentDocked" = REG_BINARY:00 00 00 00 3d 00 00 00 6c 01 00 00 61 00 00 00
set "RecentFrameAlignment" = REG_DWORD:00008192
set "RecentRowIndex" = REG_DWORD:00000003
set "IsFloating" = REG_DWORD:00000000
set "MRUWidth" = REG_DWORD:00000353
set "PinState" = REG_DWORD:00000000
set "IsVisible" = REG_DWORD:00000000
set "IsDefaultLayout" = REG_DWORD:00000001
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Toolbars\Toolbar\Format]
set "RectRecentFloat" = REG_BINARY:0a 00 00 00 0a 00 00 00 6e 00 00 00 6e 00 00 00
set "RectRecentDocked" = REG_BINARY:00 00 00 00 3d 00 00 00 4a 03 00 00 61 00 00 00
set "RecentFrameAlignment" = REG_DWORD:00008192
set "RecentRowIndex" = REG_DWORD:00000004
set "IsFloating" = REG_DWORD:00000000
set "MRUWidth" = REG_DWORD:00000831
set "PinState" = REG_DWORD:00000000
set "IsVisible" = REG_DWORD:00000000
set "IsDefaultLayout" = REG_DWORD:00000001
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Toolbars\Toolbar\Forms]
set "RectRecentFloat" = REG_BINARY:0a 00 00 00 0a 00 00 00 6e 00 00 00 6e 00 00 00
set "RectRecentDocked" = REG_BINARY:00 00 00 00 3d 00 00 00 79 00 00 00 61 00 00 00
set "RecentFrameAlignment" = REG_DWORD:00008192
set "RecentRowIndex" = REG_DWORD:00000006
set "IsFloating" = REG_DWORD:00000000
set "MRUWidth" = REG_DWORD:00000110
set "PinState" = REG_DWORD:00000000
set "IsVisible" = REG_DWORD:00000000
set "IsDefaultLayout" = REG_DWORD:00000001
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Toolbars\Toolbar\Measurement Format]
set "RectRecentFloat" = REG_BINARY:15 00 00 00 3a 00 00 00 1a 00 00 00 95 00 00 00
set "RectRecentDocked" = REG_BINARY:00 00 00 00 00 00 00 00 e8 01 00 00 21 00 00 00
set "RecentFrameAlignment" = REG_DWORD:00008192
set "RecentRowIndex" = REG_DWORD:00000000
set "IsFloating" = REG_DWORD:00000001
set "MRUWidth" = REG_DWORD:00000479
set "PinState" = REG_DWORD:00000000
set "IsVisible" = REG_DWORD:00000000
set "IsDefaultLayout" = REG_DWORD:00000001
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Toolbars\Toolbar\Measurements]
set "RectRecentFloat" = REG_BINARY:15 00 00 00 3a 00 00 00 8c 00 00 00 70 00 00 00
set "RectRecentDocked" = REG_BINARY:00 00 00 00 00 00 00 00 74 00 00 00 21 00 00 00
set "RecentFrameAlignment" = REG_DWORD:00008192
set "RecentRowIndex" = REG_DWORD:00000000
set "IsFloating" = REG_DWORD:00000001
set "MRUWidth" = REG_DWORD:00000113
set "PinState" = REG_DWORD:00000000
set "IsVisible" = REG_DWORD:00000000
set "IsDefaultLayout" = REG_DWORD:00000001
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Toolbars\Toolbar\Property]
set "RectRecentFloat" = REG_BINARY:0a 00 00 00 0a 00 00 00 6e 00 00 00 6e 00 00 00
set "RectRecentDocked" = REG_BINARY:00 00 00 00 3d 00 00 00 4c 00 00 00 61 00 00 00
set "RecentFrameAlignment" = REG_DWORD:00008192
set "RecentRowIndex" = REG_DWORD:00000005
set "IsFloating" = REG_DWORD:00000000
set "MRUWidth" = REG_DWORD:00000065
set "PinState" = REG_DWORD:00000000
set "IsVisible" = REG_DWORD:00000000
set "IsDefaultLayout" = REG_DWORD:00000001
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Toolbars\Toolbar\Reading]
set "RectRecentFloat" = REG_BINARY:0a 00 00 00 0a 00 00 00 6e 00 00 00 6e 00 00 00
set "RectRecentDocked" = REG_BINARY:00 00 00 00 3d 00 00 00 bc 00 00 00 61 00 00 00
set "RecentFrameAlignment" = REG_DWORD:00008192
set "RecentRowIndex" = REG_DWORD:00000008
set "IsFloating" = REG_DWORD:00000000
set "MRUWidth" = REG_DWORD:00000177
set "PinState" = REG_DWORD:00000000
set "IsVisible" = REG_DWORD:00000000
set "IsDefaultLayout" = REG_DWORD:00000001
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Toolbars\Toolbar\ShowHideToolBarFind]
set "RectRecentFloat" = REG_BINARY:0a 00 00 00 0a 00 00 00 6e 00 00 00 6e 00 00 00
set "RectRecentDocked" = REG_BINARY:bc 01 00 00 19 00 00 00 c3 02 00 00 3d 00 00 00
set "RecentFrameAlignment" = REG_DWORD:00008192
set "RecentRowIndex" = REG_DWORD:00000001
set "IsFloating" = REG_DWORD:00000000
set "MRUWidth" = REG_DWORD:00000248
set "PinState" = REG_DWORD:00000000
set "IsVisible" = REG_DWORD:00000001
set "IsDefaultLayout" = REG_DWORD:00000001
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Toolbars\Toolbar\View]
set "RectRecentFloat" = REG_BINARY:0a 00 00 00 0a 00 00 00 6e 00 00 00 6e 00 00 00
set "RectRecentDocked" = REG_BINARY:c3 02 00 00 19 00 00 00 87 04 00 00 3d 00 00 00
set "RecentFrameAlignment" = REG_DWORD:00008192
set "RecentRowIndex" = REG_DWORD:00000001
set "IsFloating" = REG_DWORD:00000000
set "MRUWidth" = REG_DWORD:00000441
set "PinState" = REG_DWORD:00000000
set "IsVisible" = REG_DWORD:00000001
set "IsDefaultLayout" = REG_DWORD:00000001
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Toolbars\ToolBarButtons\Basic]
set "SendToEvernote" = REG_DWORD:00000000
set "FullScreen" = REG_DWORD:00000000
set "Text View" = REG_DWORD:00000000
set "Portfolio View" = REG_DWORD:00000000
set "ChangeToolbarMode" = REG_DWORD:00000000
set "SPServer" = REG_DWORD:00000000
set "SnapShot" = REG_DWORD:00000000
set "Sign" = REG_DWORD:00000000
set "Validate all signatures" = REG_DWORD:00000000
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Toolbars\ToolBarButtons\Comments]
set "Comments Mgr" = REG_DWORD:00000000
set "File Attachment" = REG_DWORD:00000000
set "Typewriter" = REG_DWORD:00000000
set "Textbox" = REG_DWORD:00000000
set "Callout" = REG_DWORD:00000000
set "Underline" = REG_DWORD:00000000
set "StrikeOut" = REG_DWORD:00000000
set "Squiggly" = REG_DWORD:00000000
set "Replace" = REG_DWORD:00000000
set "Caret" = REG_DWORD:00000000
set "Stamp" = REG_DWORD:00000000
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Toolbars\ToolbarParameters]
set "Tooltips" = REG_DWORD:00000001
set "ShortcutKeys" = REG_DWORD:00000001
set "LargeIcons" = REG_DWORD:00000000
set "MenuAnimation" = REG_DWORD:00000000
set "RecentlyUsedMenus" = REG_DWORD:00000000
set "MenuShadows" = REG_DWORD:00000000
set "ShowAllMenusAfterDelay" = REG_DWORD:00000001
set "Look2000" = REG_DWORD:00000001
;set "CommandsUsage" = REG_BINARY:07 00 00 00 04 00 3b 09 00 00 01 00 00 00 e3 08 00 00 01 00 00 00 31 04 00 00 04 00 00 00 41 e1 00 00 01 00 00 00
set "CommandsUsage" = REG_BINARY:00 00 00 00 00 00
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\UIVersion]
set "Major" = REG_DWORD:00000011
set "Minor" = REG_DWORD:00000000
 
openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\WindowPlacement]
set "MainWindowRect" = REG_BINARY:dc 00 00 00 dc 00 00 00 7c 06 00 00 df 03 00 00
set "Flags" = REG_DWORD:00000002
set "ShowCmd" = REG_DWORD:00000003
 
 
; Set classic mode
;openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows]
;set "bShowStatusBar" = REG_DWORD:00000001
;set "IsTabbedToolbarMode" = REG_DWORD:00000000
;set "IsHideAllToolbars" = REG_DWORD:00000000
;set "IsToolBarLock" = REG_DWORD:00000001
 
; Disable updater
;openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\plugins\Updater]
;set "UpdateMode" = "0"
 
; Set measurement unit to millimeters
;openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Preferences\Documents]
;set "nUnit" = "4"
 
; Disable javascript
;openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Preferences\Others]
;set "bEnableJS" = "0"
 
; Disable spellcheck
;openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\SpellCheck]
;set "Enabled" = REG_DWORD:00000000
 
; set view settings of menu bar
;openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\MenuBar]
;set "ID" = REG_DWORD:00059398
;set "RectRecentFloat" = REG_BINARY:0a 00 00 00 0a 00 00 00 6e 00 00 00 6e 00 00 00
;set "RectRecentDocked" = REG_BINARY:00 00 00 00 00 00 00 00 65 04 00 00 19 00 00 00
;set "RecentFrameAlignment" = REG_DWORD:00008192
;set "RecentRowIndex" = REG_DWORD:00000000
;set "IsFloating" = REG_DWORD:00000000
;set "MRUWidth" = REG_DWORD:00032767
;set "PinState" = REG_DWORD:00000000
;set "IsVisible" = REG_DWORD:00000001
 
; Turn off toolbars
;openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Toolbars\Toolbar\Comments]
;set "IsVisible" = REG_DWORD:00000000
;set "RectRecentFloat" = REG_BINARY:0a 00 00 00 0a 00 00 00 6e 00 00 00 6e 00 00 00
;set "RectRecentDocked" = REG_BINARY:00 00 00 00 19 00 00 00 de 00 00 00 3d 00 00 00
;set "RecentFrameAlignment" = REG_DWORD:00008192
;set "RecentRowIndex" = REG_DWORD:00000001
;set "IsFloating" = REG_DWORD:00000000
;set "MRUWidth" = REG_DWORD:00032767
;set "PinState" = REG_DWORD:00000000
;set "IsDefaultLayout" = REG_DWORD:00000001
;openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Toolbars\Toolbar\Convert]
;set "IsVisible" = REG_DWORD:00000000
;set "RectRecentFloat" = REG_BINARY:0a 00 00 00 0a 00 00 00 6e 00 00 00 6e 00 00 00
;set "RectRecentDocked" = REG_BINARY:00 00 00 00 19 00 00 00 99 00 00 00 3d 00 00 00
;set "RecentFrameAlignment" = REG_DWORD:00008192
;set "RecentRowIndex" = REG_DWORD:00000001
;set "IsFloating" = REG_DWORD:00000000
;set "MRUWidth" = REG_DWORD:00032767
;set "PinState" = REG_DWORD:00000000
;set "IsDefaultLayout" = REG_DWORD:00000001
;openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Toolbars\Toolbar\docuSign]
;set "IsVisible" = REG_DWORD:00000000
;set "RectRecentFloat" = REG_BINARY:0a 00 00 00 0a 00 00 00 6e 00 00 00 6e 00 00 00
;set "RectRecentDocked" = REG_BINARY:00 00 00 00 19 00 00 00 39 00 00 00 3d 00 00 00
;set "RecentFrameAlignment" = REG_DWORD:00008192
;set "RecentRowIndex" = REG_DWORD:00000001
;set "IsFloating" = REG_DWORD:00000000
;set "MRUWidth" = REG_DWORD:00032767
;set "PinState" = REG_DWORD:00000000
;set "IsDefaultLayout" = REG_DWORD:00000001
 
; Set view settings of Toolbars
;openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Toolbars\Toolbar\Basic]
;set "RectRecentFloat" = REG_BINARY:0a 00 00 00 0a 00 00 00 6e 00 00 00 6e 00 00 00
;set "RectRecentDocked" = REG_BINARY:00 00 00 00 19 00 00 00 1c 01 00 00 3d 00 00 00
;set "RecentFrameAlignment" = REG_DWORD:00008192
;set "RecentRowIndex" = REG_DWORD:00000001
;set "IsFloating" = REG_DWORD:00000000
;set "MRUWidth" = REG_DWORD:00000401
;set "PinState" = REG_DWORD:00000000
;set "IsVisible" = REG_DWORD:00000001
;set "IsDefaultLayout" = REG_DWORD:00000001
 
;[HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Toolbars\Toolbar\View]
;set "RectRecentFloat" = REG_BINARY:0a 00 00 00 0a 00 00 00 6e 00 00 00 6e 00 00 00
;set "RectRecentDocked" = REG_BINARY:23 02 00 00 19 00 00 00 e7 03 00 00 3d 00 00 00
;set "RecentFrameAlignment" = REG_DWORD:00008192
;set "RecentRowIndex" = REG_DWORD:00000001
;set "IsFloating" = REG_DWORD:00000000
;set "MRUWidth" = REG_DWORD:00000441
;set "PinState" = REG_DWORD:00000000
;set "IsVisible" = REG_DWORD:00000001
;set "IsDefaultLayout" = REG_DWORD:00000001
 
; Turn off a few buttons on basic toolbar
;openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Toolbars\ToolBarButtons\Basic]
;set "PrevPage" = REG_DWORD:00000000
;set "NextPage" = REG_DWORD:00000000
;set "GoToPage" = REG_DWORD:00000000
 
; Turn on all buttons on view toolbar
;openkey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0\Windows\Toolbars\ToolBarButtons\View]
;set "GoBack" = REG_DWORD:00000001
;set "GoForward" = REG_DWORD:00000001
;set "MarqueeZoom" = REG_DWORD:00000001
;set "Loupe Tool" = REG_DWORD:00000001
;set "Magnifier Tool" = REG_DWORD:00000001
;set "FitVisible" = REG_DWORD:00000001
;set "ScaleIn" = REG_DWORD:00000001
;set "ScaleOut" = REG_DWORD:00000001
;set "RotateCW" = REG_DWORD:00000001
;set "RotateCCW" = REG_DWORD:00000001
 
; todo: nogmaals checken en print as grayscale default aanzetten!
 
; Remove stored start menu order
deletekey [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu]
 
[LinkFolder_install]
; Example of deleting a folder from AllUsers startmenu:
;
; set_basefolder common_programs
; delete_subfolder $ProductId$
;
; Example of creating an shortcut to the installed exe in AllUsers startmenu:
;
; set_basefolder common_programs
; set_subfolder $ProductId$
;
; set_link
; 	name: $ProductId$
; 	target: <path to the program>
; 	parameters:
; 	working_dir: $InstallDir$
; 	icon_file:
; 	icon_index:
; end_link
;
; Example of creating an shortcut to the installed exe on AllUsers desktop:
;
; set_basefolder common_desktopdirectory
; set_subfolder ""
;
; set_link
; 	name: $ProductId$
; 	target: <path to the program>
; 	parameters: <some_param>
; 	working_dir: $InstallDir$
; 	icon_file: <path to icon file>
; 	icon_index: 2
; end_link
 
 
[Sub_check_exitcode]
comment "Test for installation success via exit code"
set $ExitCode$ = getLastExitCode
; informations to exit codes see
; http://msdn.microsoft.com/en-us/library/aa372835(VS.85).aspx
; http://msdn.microsoft.com/en-us/library/aa368542.aspx
if ($ExitCode$ = "0")
	comment "Looks good: setup program gives exitcode zero"
else
	comment "Setup program gives a exitcode unequal zero: " + $ExitCode$
	if ($ExitCode$ = "1605")
		comment "ERROR_UNKNOWN_PRODUCT	1605	This action is only valid for products that are currently installed."
		comment "Uninstall of a not installed product failed - no problem"
	else
		if ($ExitCode$ = "1641")
			comment "looks good: setup program gives exitcode 1641"
			comment "ERROR_SUCCESS_REBOOT_INITIATED	1641	The installer has initiated a restart. This message is indicative of a success."
		else
			if ($ExitCode$ = "3010")
				comment "looks good: setup program gives exitcode 3010"
				comment "ERROR_SUCCESS_REBOOT_REQUIRED	3010	A restart is required to complete the install. This message is indicative of a success."
			else
				logError "Fatal: Setup program gives an unknown exitcode unequal zero: " + $ExitCode$
				isFatalError
			endif
		endif
	endif
endif

uninstall3264.ins

; Copyright (c) uib gmbh (www.uib.de)
; This sourcecode is owned by uib gmbh
; and published under the Terms of the General Public License.
; credits: http://www.opsi.org/en/credits/
;
; License Management removed
 
[Actions]
requiredWinstVersion >= "4.10.8.6"
 
;DefVar $MsiId32$
;DefVar $UninstallProgram32$
;DefVar $MsiId64$
;DefVar $UninstallProgram64$
DefVar $LogDir$
DefVar $ExitCode$
DefVar $ProductId$
;DefVar $InstallDir32$
;DefVar $InstallDir64$
DefVar $INST_SystemType$
;DefVar $INST_architecture$
 
Set $INST_SystemType$ = GetSystemType
;set $INST_architecture$ = GetProductProperty("install_architecture","system specific")
 
 
Set $LogDir$ = "%SystemDrive%\tmp"
 
; ----------------------------------------------------------------
; - Please edit the following values                             -
; ----------------------------------------------------------------
Set $ProductId$       = "foxit-pdf-reader"
;Set $InstallDir32$    = "%ProgramFiles32Dir%\<path to the product>"
;Set $InstallDir64$    = "%ProgramFiles64Dir%\<path to the product>"
; ----------------------------------------------------------------
 
 
comment "Show product picture"
ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$
 
Message "Uninstalling " + $ProductId$ + " ..."
 
if FileExists("%ScriptPath%\delsub3264.ins")
	comment "Start uninstall sub section"
	Sub "%ScriptPath%\delsub3264.ins"
endif

delsub3264.ins

; Copyright (c) uib gmbh (www.uib.de)
; This sourcecode is owned by uib gmbh
; and published under the Terms of the General Public License.
; credits: http://www.opsi.org/en/credits/
;
; License Management removed
 
DefStringList $result$
DefStringList $result1$
DefVar $appKey$
DefVar $UninstallCommandList$
DefVar $appString$
DefVar $appKeyString$
DefVar $testName$
DefVar $exeString$
 
Set $appKeyString$ = "DisplayName"
Set $appString$ = "Foxit Reader"
 
;Set $MsiId32$ = '{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}'
;Set $UninstallProgram32$ = $InstallDir32$ + "\uninstall.exe"
 
;Set $MsiId64$ = '{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}'
;Set $UninstallProgram64$ = $InstallDir64$ + "\uninstall.exe"
 
if ($INST_SystemType$ = "x86 System") 
;and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")
	Message "Uninstalling " + $ProductId$ + "..."
 
	Set $result$ = getRegistryKeyList32("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall")
	for $app$ in $result$ do Sub_searchApp32
	if not ($UninstallCommandList$ = "")
		set $result1$ = splitString($UninstallCommandList$,"::")
		for $UninstallCommand$ in $result1$ do Winbatch_uninstall_32 /32Bit
		sub_check_exitcode
	endif
 
 
;	if FileExists($UninstallProgram32$)
;		comment "Uninstall program found, starting uninstall"
;		Winbatch_uninstall_32
;		sub_check_exitcode
;	endif
 
;	if not (GetRegistryStringValue32("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" + $MsiId32$ + "] DisplayName") = "")
;		comment "MSI id " + $MsiId32$ + " found in registry, starting msiexec to uninstall"
;		Winbatch_uninstall_msi_32
;		sub_check_exitcode
;	endif
 
	comment "Delete files"
	Files_uninstall_32 /32Bit
	comment "Cleanup registry"
	Registry_uninstall /32Bit
	Registry_uninstall_AllProfiles /AllNTUserDats
endif
 
if ($INST_SystemType$ = "64 Bit System") 
;and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
	Message "Uninstalling " + $ProductId$ + "..."
 
;	Set $result$ = getRegistryKeyList64("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall")
;	for $app$ in $result$ do Sub_searchApp64
;	if not ($UninstallCommandList$ = "")
;		set $result1$ = splitString($UninstallCommandList$,"::")
;		for $UninstallCommand$ in $result1$ do Winbatch_uninstall_64 /64Bit
;		sub_check_exitcode
;	endif
 
	Set $result$ = getRegistryKeyList32("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall")
	for $app$ in $result$ do Sub_searchApp32
	if not ($UninstallCommandList$ = "")
		set $result1$ = splitString($UninstallCommandList$,"::")
		for $UninstallCommand$ in $result1$ do Winbatch_uninstall_32 /32Bit
		sub_check_exitcode
	endif
 
;	if FileExists($UninstallProgram64$)
;		comment "Uninstall program found, starting uninstall"
;		Winbatch_uninstall_64
;		sub_check_exitcode
;	endif
 
;	if not (GetRegistryStringValue64("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" + $MsiId64$ + "] DisplayName") = "")
;		comment "MSI id " + $MsiId64$ + " found in registry, starting msiexec to uninstall"
;		Winbatch_uninstall_msi_64
;		sub_check_exitcode
;	endif
 
	comment "Delete files"
	Files_uninstall_64 /64Bit
	comment "Cleanup registry"
	Registry_uninstall /64Bit
	Registry_uninstall_AllProfiles /AllNTUserDats
endif
 
comment "Delete program shortcuts"
LinkFolder_uninstall
 
[Winbatch_uninstall_32]
$UninstallCommand$
 
[Files_uninstall_32]
; Example for recursively deleting the installation directory (don't forget the trailing backslash):
;
; delete -sf "$InstallDir32$\"
 
[Winbatch_uninstall_64]
$UninstallCommand$
 
[Files_uninstall_64]
; Example for recursively deleting the installation directory (don't forget the trailing backslash):
;
; delete -sf "$InstallDir64$\"
 
[Registry_uninstall]
; Example of deleting a registry key:
;
; deletekey [HKEY_LOCAL_MACHINE\Software\$ProductId$]
 
[Registry_uninstall_AllProfiles]
deletekey [HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 6.0]
 
[LinkFolder_uninstall]
; Example of deleting a folder from AllUsers startmenu:
;
; set_basefolder common_programs
; delete_subfolder $ProductId$
;
; Example of deleting a shortcut from AllUsers desktop:
;
; set_basefolder common_desktopdirectory
; set_subfolder ""
; delete_element $ProductId$
 
[Sub_check_exitcode]
comment "Test for installation success via exit code"
set $ExitCode$ = getLastExitCode
; informations to exit codes see
; http://msdn.microsoft.com/en-us/library/aa372835(VS.85).aspx
; http://msdn.microsoft.com/en-us/library/aa368542.aspx
if ($ExitCode$ = "0")
	comment "Looks good: setup program gives exitcode zero"
else
	comment "Setup program gives a exitcode unequal zero: " + $ExitCode$
	if ($ExitCode$ = "1605")
		comment "ERROR_UNKNOWN_PRODUCT	1605	This action is only valid for products that are currently installed."
		comment "Uninstall of a not installed product failed - no problem"
	else
		if ($ExitCode$ = "1641")
			comment "looks good: setup program gives exitcode 1641"
			comment "ERROR_SUCCESS_REBOOT_INITIATED	1641	The installer has initiated a restart. This message is indicative of a success."
		else
			if ($ExitCode$ = "3010")
				comment "looks good: setup program gives exitcode 3010"
				comment "ERROR_SUCCESS_REBOOT_REQUIRED	3010	A restart is required to complete the install. This message is indicative of a success."
			else
				logError "Fatal: Setup program gives an unknown exitcode unequal zero: " + $ExitCode$
				isFatalError
			endif
		endif
	endif
endif
 
[Sub_searchApp32]
set $appKey$ = "[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" + "$app$" + "] " + $appKeyString$
Set $testName$ = GetRegistryStringValue32($appKey$)
if contains($testName$,$appString$)
	set $UninstallCommandList$ = $UninstallCommandList$ + "MsiExec.exe /x " + "$app$" + " /qb-! REBOOT=ReallySuppress::"
endif
 
[Sub_searchApp64]
set $appKey$ = "[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" + "$app$" + "] " + $appKeyString$
Set $testName$ = GetRegistryStringValue64($appKey$)
if contains($testName$,$appString$)
	set $UninstallCommandList$ = $UninstallCommandList$ + "MsiExec.exe /x " + "$app$" + " /qb-! REBOOT=ReallySuppress::"
endif
userspace/foxit_pdf_reader.txt · Last modified: 2021/08/23 08:37 (external edit)