File Assoc Unregister

This commit is contained in:
Mario Fetka 2019-10-17 01:35:45 +02:00
parent 4833d0e930
commit 90844b3760
3 changed files with 43 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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