This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
userspace:adobe_reader_11.0.06 [2014/04/15 12:56] opsi.simi |
userspace:adobe_reader_11.0.06 [2021/08/23 08:37] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
Script by Opsi.Simi | Script by Opsi.Simi | ||
+ | |||
Comments and improvements welcome | Comments and improvements welcome | ||
Line 149: | Line 150: | ||
</ | </ | ||
+ | |||
+ | ==== Uninstall.ins ==== | ||
+ | |||
+ | <code winst> | ||
+ | |||
+ | ;Standard Text, shown during installation | ||
+ | Message = Bitte warten, das Produkt wird deinstalliert | ||
+ | |||
+ | ;Set Loglevel | ||
+ | setLogLevel = 6 | ||
+ | |||
+ | ;Stop when errors | ||
+ | ExitOnError = false | ||
+ | ;Syntax Fehler are shown in a seperate window | ||
+ | ScriptErrorMessages = on | ||
+ | ;Do not use Single-Step Mode | ||
+ | TraceMode = off | ||
+ | ;No winst-window in foreground while batchmode | ||
+ | StayOnTop = false | ||
+ | |||
+ | [Actions] | ||
+ | ;Name of product (max. 12 columns) | ||
+ | DefVar $ProductName$ | ||
+ | Set $ProductName$ = "Adobe Reader XI" | ||
+ | |||
+ | ;filename of productpicture with extension | ||
+ | DefVar $ProductPicture$ | ||
+ | Set $ProductPicture$ = " | ||
+ | |||
+ | ;the variable for the ExitCode | ||
+ | DefVar $ExitCode$ | ||
+ | |||
+ | ;show $ProductPicture$ and $ProductName$ | ||
+ | ShowBitmap /3 " | ||
+ | |||
+ | sub " | ||
+ | |||
+ | </ | ||
+ | |||
+ | ==== delsub.ins ==== | ||
+ | |||
+ | <code winst> | ||
+ | |||
+ | ;Variable for msiexec-call of deinstallation | ||
+ | DefVar $UninstallCommand$ | ||
+ | |||
+ | |||
+ | |||
+ | ;Variable for the diffrent versions gotten from the registry | ||
+ | DefVar $DisplayName$ | ||
+ | |||
+ | ; | ||
+ | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
+ | if not ($DisplayName$ = "" | ||
+ | Message " | ||
+ | set $UninstallCommand$ = " | ||
+ | Winbatch_Uninstall | ||
+ | sub " | ||
+ | endif | ||
+ | |||
+ | ; | ||
+ | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
+ | if not ($DisplayName$ = "" | ||
+ | Message " | ||
+ | set $UninstallCommand$ = " | ||
+ | Winbatch_Uninstall | ||
+ | sub " | ||
+ | endif | ||
+ | |||
+ | ; | ||
+ | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
+ | if not ($DisplayName$ = "" | ||
+ | Message " | ||
+ | set $UninstallCommand$ = " | ||
+ | Winbatch_Uninstall | ||
+ | sub " | ||
+ | endif | ||
+ | |||
+ | ; | ||
+ | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
+ | if not ($DisplayName$ = "" | ||
+ | Message " | ||
+ | set $UninstallCommand$ = " | ||
+ | Winbatch_Uninstall | ||
+ | sub " | ||
+ | endif | ||
+ | |||
+ | ; | ||
+ | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
+ | if not ($DisplayName$ = "" | ||
+ | Message " | ||
+ | set $UninstallCommand$ = " | ||
+ | Winbatch_Uninstall | ||
+ | sub " | ||
+ | endif | ||
+ | |||
+ | Linkfolder_Custom | ||
+ | |||
+ | [Winbatch_Uninstall] | ||
+ | $UninstallCommand$ | ||
+ | |||
+ | [Linkfolder_Custom] | ||
+ | ;Delete Startmenu-Link | ||
+ | Set_basefolder common_programs | ||
+ | Set_subfolder "" | ||
+ | delete_element " | ||
+ | |||
+ | </ |