Code

source: oracle.java745/CLIENT_DATA/uninstall32.ins @ 6f431c

Revision 6f431c, 2.5 KB checked in by Dennis Trinks <dennis.trinks@…>, 6 years ago (diff)

init

  • Property mode set to 100644
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/credits/
5
6[Actions]
7requiredWinstVersion >= "4.10.8.6"
8
9DefVar $MsiId32$
10DefVar $UninstallProgram32$
11DefVar $MsiId64$
12DefVar $UninstallProgram64$
13DefVar $LogDir$
14DefVar $ExitCode$
15DefVar $ProductId$
16DefVar $InstallDir32$
17DefVar $InstallDir64$
18DefVar $LicenseRequired$
19DefVar $LicensePool$
20DefVar $INST_SystemType$
21DefVar $INST_architecture$
22
23Set $INST_SystemType$ = GetSystemType
24set $INST_architecture$ = GetProductProperty("install_architecture","system specific")
25
26
27Set $LogDir$ = "%SystemDrive%\tmp"
28
29; The token BUILDER_VARIABLES will be replaced by opsi-builder.sh
30; and adds the following variables:
31;   from builder-product.cfg :  all variables definded by attribute WINST[index]
32;   from builder-product.cfg :  VENDOR PN VERSION RELEASE PRIORITY ADVICE TYPE   
33;   from opsi-builder.cfg    :  CREATOR_TAG CREATOR_NAME CREATOR_EMAIL           
34;   auto generated winst-variables
35;         $IconFile$: path to product picture
36;
37@@BUILDER_VARIABLES@@
38
39; ----------------------------------------------------------------
40; - Please edit the following values                             -
41; ----------------------------------------------------------------
42Set $ProductId$       = "adobeflash"
43Set $InstallDir32$    = "%ProgramFiles32Dir%\<path to the product>"
44Set $InstallDir64$    = "%ProgramFiles64Dir%\<path to the product>"
45Set $LicenseRequired$ = "false"
46Set $LicensePool$     = "p_" + $ProductId$
47; ----------------------------------------------------------------
48
49
50comment "Show product picture"
51ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$
52
53Message "Uninstalling " + $ProductId$ + " ..."
54
55if FileExists("%ScriptPath%\delsub3264.ins")
56        comment "Start uninstall sub section"
57        Sub "%ScriptPath%\delsub3264.ins"
58endif
59
60if $LicenseRequired$ = "true"
61        comment "Licensing required, free license used"
62        Sub_free_license
63endif
64
65[Sub_free_license]
66comment "License management is enabled and will be used"
67
68comment "Trying to free license used for the product"
69DefVar $result$
70Set $result$ = FreeLicense($LicensePool$)
71; If there is an assignment of a license pool to the product, it is possible to use
72; Set $result$ = FreeLicense("", $ProductId$)
73;
74; If there is an assignment of a license pool to a windows software id, it is possible to use
75; DefVar $WindowsSoftwareId$
76; $WindowsSoftwareId$ = "..."
77; set $result$ = FreeLicense("", "", $WindowsSoftwareId$)
78
79
Note: See TracBrowser for help on using the repository browser.