From bb0cb6e8a83d673ded0588f961100d16c44ff37d Mon Sep 17 00:00:00 2001 From: Peter Singer Date: Sun, 5 May 2013 09:37:17 +0200 Subject: [PATCH] Disabled auto-updates (for 12 months) and corrected Windows 8 uninstall problem --- CLIENT_DATA/delsub3264.ins | 1 + CLIENT_DATA/setup3264.ins | 24 ++++++++++++++++++++--- builder-product.cfg | 2 +- nitro_pdf_reader_3.5.3.14_x64.exe.sha1sum | 1 + nitro_pdf_reader_3.5.3.14_x86.exe.sha1sum | 1 + 5 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 nitro_pdf_reader_3.5.3.14_x64.exe.sha1sum create mode 100644 nitro_pdf_reader_3.5.3.14_x86.exe.sha1sum diff --git a/CLIENT_DATA/delsub3264.ins b/CLIENT_DATA/delsub3264.ins index c01820f..fbc304e 100644 --- a/CLIENT_DATA/delsub3264.ins +++ b/CLIENT_DATA/delsub3264.ins @@ -76,6 +76,7 @@ if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system spe killtask "firefox.exe" killtask "chrome.exe" killtask "opera.exe" + killtask "OpenWIth.exe" comment "Cleanup registry" Registry_uninstall /64Bit diff --git a/CLIENT_DATA/setup3264.ins b/CLIENT_DATA/setup3264.ins index 77dd74f..381709f 100644 --- a/CLIENT_DATA/setup3264.ins +++ b/CLIENT_DATA/setup3264.ins @@ -44,7 +44,7 @@ Set $LogDir$ = "%SystemDrive%\tmp" ;$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 $MinimumSpace$ = "1 MB" +Set $MinimumSpace$ = "150 MB" ; the path were we find the product after the installation Set $InstallDir32$ = "%ProgramFiles32Dir%\Nitro\Reader 3" Set $InstallDir64$ = "%ProgramFiles64Dir%\Nitro\Reader 3" @@ -78,6 +78,7 @@ else comment "Copy files" Files_install_32 /32Bit comment "Patch Registry" + Registry_cleanup /32bit /AllNTUserdats Registry_install /32Bit comment "Create shortcuts" LinkFolder_install @@ -94,7 +95,9 @@ else comment "Copy files" Files_install_64 /64Bit comment "Patch Registry" - Registry_install /64Bit + Registry_cleanup /32bit /AllNTUserdats + Registry_install /32Bit +; Registry_install /64Bit comment "Create shortcuts" LinkFolder_install endif @@ -131,11 +134,26 @@ copy "$IniCfgFile$" "$InstallDir64$" ; ; copy -s "%ScriptPath%\files\*.*" "$InstallDir64$" +[Registry_cleanup] +openkey [HKEY_CURRENT_USER\SOFTWARE\Nitro\Reader\3.0\settings\Preferences\kLearningCenter] +DeleteVar "kLCShowAtStartup" + +openkey [HKEY_CURRENT_USER\Software\Nitro\Reader\3.0\settings\Preferences\kPreferences] +DeleteVar "kPrefInterfaceShowDoMoreWithProButton" +DeleteVar "kPrefInterfaceShowInfoBarIfDocScanned" +DeleteVar "kPrefUpdateNextCheckControl" + [Registry_install] ; Example of setting some values of an registry key: ; +openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Nitro\Reader\3.0\settings\Preferences\kLearningCenter] +set "kLCShowAtStartup" = "/b 0" + openkey [HKEY_LOCAL_MACHINE\Software\Nitro\Reader\3.0\settings\Preferences\kPreferences] -set "kPrefUpdateCheckingInterval" = "/i $ExpireDateInSeconds$" +set "kPrefInterfaceShowDoMoreWithProButton" = "/b 0" +set "kPrefInterfaceShowInfoBarIfDocScanned" = "/b 0" +set "kPrefUpdateNextCheckControl" = "/i $ExpireDateInSeconds$" + ; set "name2" = REG_DWORD:0001 ; set "name3" = REG_BINARY:00 af 99 cd diff --git a/builder-product.cfg b/builder-product.cfg index 3bfa222..e365deb 100644 --- a/builder-product.cfg +++ b/builder-product.cfg @@ -32,7 +32,7 @@ ICON_DL_INDEX=0 # Actual Date + 6 Months WINST_NAME[0]="ExpireDateInSeconds" -WINST_VALUE[0]="$(date -d "+6 months" +%s)" +WINST_VALUE[0]="$(date -d "+12 months" +%s)" OPSI_INI_SECTION[0]="X86" OPSI_INI_OPTION[0]="MsiId32" diff --git a/nitro_pdf_reader_3.5.3.14_x64.exe.sha1sum b/nitro_pdf_reader_3.5.3.14_x64.exe.sha1sum new file mode 100644 index 0000000..8adee93 --- /dev/null +++ b/nitro_pdf_reader_3.5.3.14_x64.exe.sha1sum @@ -0,0 +1 @@ +b7a195c46ea4f08c30d945937b09da437b467935 /home/opsiproducts/.opsi-dist-cache/nitro.pdfreader-3.5.3.14/X86_64/nitro_pdf_reader_3.5.3.14_x64.exe diff --git a/nitro_pdf_reader_3.5.3.14_x86.exe.sha1sum b/nitro_pdf_reader_3.5.3.14_x86.exe.sha1sum new file mode 100644 index 0000000..9c7a6a7 --- /dev/null +++ b/nitro_pdf_reader_3.5.3.14_x86.exe.sha1sum @@ -0,0 +1 @@ +edc9b17502454d62fa359e850e40c8b90a764be8 /home/opsiproducts/.opsi-dist-cache/nitro.pdfreader-3.5.3.14/X86/nitro_pdf_reader_3.5.3.14_x86.exe