From 90844b3760b5afdb6b4e0f1b63dfd6c2358dcc2d Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Thu, 17 Oct 2019 01:35:45 +0200 Subject: [PATCH] File Assoc Unregister --- sample/All/CLIENT_DATA/delsub32.opsiscript | 14 ++++++++++++++ sample/All/CLIENT_DATA/delsub3264.opsiscript | 15 +++++++++++++++ sample/All/CLIENT_DATA/delsub64.opsiscript | 14 ++++++++++++++ 3 files changed, 43 insertions(+) diff --git a/sample/All/CLIENT_DATA/delsub32.opsiscript b/sample/All/CLIENT_DATA/delsub32.opsiscript index 9f18884..0a39b8c 100644 --- a/sample/All/CLIENT_DATA/delsub32.opsiscript +++ b/sample/All/CLIENT_DATA/delsub32.opsiscript @@ -62,6 +62,9 @@ Registry_uninstall /32Bit comment "Delete program shortcuts" LinkFolder_uninstall +comment "File Type Association" +DosInAnIcon_FileTypeAssoc_uninstall + if $Reboot$="1" ExitWindows /ImmediateReboot endif @@ -116,6 +119,17 @@ msiexec /x $MsiId$ /qb-! REBOOT=ReallySuppress ; set_subfolder "" ; delete_element $ProductId$ +[DosInAnIcon_FileTypeAssoc_uninstall] +; Requires danysys.sfta +; Sample Usage: +; Set Acrobat Reader DC as Default .pdf reader: +; +; SFTA --unreg AcroExch.Document.DC .pdf +; +; Set Sumatra PDF as Default .pdf reader: +; +; SFTA --unreg Applications\SumatraPDF.exe .pdf + [Sub_check_exitcode] comment "Test for installation success via exit code" set $ExitCode$ = getLastExitCode diff --git a/sample/All/CLIENT_DATA/delsub3264.opsiscript b/sample/All/CLIENT_DATA/delsub3264.opsiscript index 8a16efc..50a3f3d 100644 --- a/sample/All/CLIENT_DATA/delsub3264.opsiscript +++ b/sample/All/CLIENT_DATA/delsub3264.opsiscript @@ -56,6 +56,8 @@ if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specif Files_uninstall_32 /32Bit comment "Cleanup registry" Registry_uninstall /32Bit + comment "File Type Association" + DosInAnIcon_FileTypeAssoc_uninstall endif if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only")) @@ -103,6 +105,8 @@ if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system spe Files_uninstall_64 /64Bit comment "Cleanup registry" Registry_uninstall /64Bit + comment "File Type Association" + DosInAnIcon_FileTypeAssoc_uninstall endif comment "Delete program shortcuts" @@ -196,6 +200,17 @@ msiexec /x $MsiId64$ /qb-! REBOOT=ReallySuppress ; set_subfolder "" ; delete_element $ProductId$ +[DosInAnIcon_FileTypeAssoc_uninstall] +; Requires danysys.sfta +; Sample Usage: +; Set Acrobat Reader DC as Default .pdf reader: +; +; SFTA --unreg AcroExch.Document.DC .pdf +; +; Set Sumatra PDF as Default .pdf reader: +; +; SFTA --unreg Applications\SumatraPDF.exe .pdf + [Sub_check_exitcode] comment "Test for installation success via exit code" set $ExitCode$ = getLastExitCode diff --git a/sample/All/CLIENT_DATA/delsub64.opsiscript b/sample/All/CLIENT_DATA/delsub64.opsiscript index 81c067d..32eb729 100644 --- a/sample/All/CLIENT_DATA/delsub64.opsiscript +++ b/sample/All/CLIENT_DATA/delsub64.opsiscript @@ -58,6 +58,9 @@ Registry_uninstall /64Bit comment "Delete program shortcuts" LinkFolder_uninstall +comment "File Type Association" +DosInAnIcon_FileTypeAssoc_uninstall + if $Reboot$="1" ExitWindows /ImmediateReboot endif @@ -112,6 +115,17 @@ msiexec /x $MsiId$ /qb-! REBOOT=ReallySuppress ; set_subfolder "" ; delete_element $ProductId$ +[DosInAnIcon_FileTypeAssoc_uninstall] +; Requires danysys.sfta +; Sample Usage: +; Set Acrobat Reader DC as Default .pdf reader: +; +; SFTA --unreg AcroExch.Document.DC .pdf +; +; Set Sumatra PDF as Default .pdf reader: +; +; SFTA --unreg Applications\SumatraPDF.exe .pdf + [Sub_check_exitcode] comment "Test for installation success via exit code" set $ExitCode$ = getLastExitCode