source: opsi/products/bitlocker/CLIENT_DATA/uninstall.ins@ 1219

Last change on this file since 1219 was 1031, checked in by joergs, on Jul 12, 2012 at 2:45:19 PM

bugfix for status on 64bit

File size: 1.8 KB
Line 
1; Copyright (c) uib gmbh (www.uib.de)
2; This sourcecode is owned by uib gmbh
3; and published under the Terms of the General Public License.
4; credits: http://www.opsi.org/en/credits/
5
6[Actions]
7requiredWinstVersion >= "4.10.8.6"
8
9DefVar $MsiId$
10DefVar $UninstallProgram$
11DefVar $LogDir$
12DefVar $ExitCode$
13DefVar $ProductId$
14DefVar $InstallDir$
15DefVar $LicenseRequired$
16DefVar $LicensePool$
17
18Set $LogDir$ = "%SystemDrive%\tmp"
19
20; ----------------------------------------------------------------
21; - Please edit the following values -
22; ----------------------------------------------------------------
23Set $ProductId$ = "bitlocker"
24Set $InstallDir$ = "%ProgramFiles32Dir%\<path to the product>"
25Set $LicenseRequired$ = "false"
26Set $LicensePool$ = "p_" + $ProductId$
27; ----------------------------------------------------------------
28
29
30comment "Show product picture"
31ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$
32
33Message "Uninstalling " + $ProductId$ + " ..."
34
35if FileExists("%ScriptPath%\delsub32.ins")
36 comment "Start uninstall sub section"
37 Sub "%ScriptPath%\delsub32.ins"
38endif
39
40if $LicenseRequired$ = "true"
41 comment "Licensing required, free license used"
42 Sub_free_license
43endif
44
45[Sub_free_license]
46comment "License management is enabled and will be used"
47
48comment "Trying to free license used for the product"
49DefVar $result$
50Set $result$ = FreeLicense($LicensePool$)
51; If there is an assignment of a license pool to the product, it is possible to use
52; Set $result$ = FreeLicense("", $ProductId$)
53;
54; If there is an assignment of a license pool to a windows software id, it is possible to use
55; DefVar $WindowsSoftwareId$
56; $WindowsSoftwareId$ = "..."
57; set $result$ = FreeLicense("", "", $WindowsSoftwareId$)
58
Note: See TracBrowser for help on using the repository browser.