Code

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

Revision 6f431c, 5.0 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
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 $ProductId$ 
15DefVar $MinimumSpace$
16DefVar $InstallDir32$
17DefVar $InstallDir64$
18DefVar $ExitCode$
19DefVar $LicenseRequired$
20DefVar $LicenseKey$
21DefVar $LicensePool$
22DefVar $INST_SystemType$
23DefVar $INST_architecture$
24DefVar $JAVA32_17EXE$
25DefVar $JAVA32_17VER$
26DefVar $InstallPlugins$
27
28
29Set $INST_SystemType$ = GetSystemType
30set $INST_architecture$ = GetProductProperty("install_architecture","system specific")
31
32set $JAVA32_17EXE$="jre-7u45-windows-i586.exe"
33set $JAVA32_17VER$="jre1.7.0_45"
34set $InstallPlugins$ = "IEXPLORER=1 MOZILLA=1"
35
36Set $LogDir$ = "%SystemDrive%\tmp"
37
38; The token BUILDER_VARIABLES will be replaced by opsi-builder.sh
39; and adds the following variables:
40;   from builder-product.cfg :  all variables definded by attribute WINST[index]
41;   from builder-product.cfg :  VENDOR PN VERSION RELEASE PRIORITY ADVICE TYPE   
42;   from opsi-builder.cfg    :  CREATOR_TAG CREATOR_NAME CREATOR_EMAIL           
43;   auto generated winst-variables
44;         $IconFile$: path to product picture
45;
46@@BUILDER_VARIABLES@@
47
48; ----------------------------------------------------------------
49; - Please edit the following values                             -
50; ----------------------------------------------------------------
51;$ProductId$ should be the name of the product in opsi
52; therefore please: only lower letters, no umlauts,
53; no white space use '-' as a seperator
54Set $ProductId$       = "Java7u45"
55Set $MinimumSpace$    = "1 MB"
56; the path were we find the product after the installation
57Set $InstallDir32$      = "%ProgramFiles32Dir%\<path to the product>"
58Set $InstallDir64$      = "%ProgramFiles64Dir%\<path to the product>"
59Set $LicenseRequired$ = "false"
60Set $LicensePool$     = "p_" + $ProductId$
61; ----------------------------------------------------------------
62
63if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
64        LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductId$
65        isFatalError
66        ; Stop process and set installation status to failed
67else
68        comment "Show product picture"
69        ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$
70       
71        if FileExists("%ScriptPath%\delsub32.ins")
72                comment "Start uninstall sub section"
73                Sub "%ScriptPath%\delsub32.ins"
74        endif
75       
76        if $LicenseRequired$ = "true"
77                comment "Licensing required, reserve license and get license key"
78                Sub_get_licensekey
79        endif
80       
81        comment "installing"
82
83        Message "Installing " + $ProductId$ + " 32 Bit..."
84        comment "Start setup program"
85        Winbatch_java_1_7_silent_install_32
86        Sub_check_exitcode
87        comment "Copy files"
88        Files_install_32 /32Bit
89        comment "Patch Registry"
90        Registry_install /32Bit
91        comment "Create shortcuts"
92        LinkFolder_install
93
94endif   
95
96[Sub_check_exitcode]
97comment "Test for installation success via exit code"
98set $ExitCode$ = getLastExitCode
99if ($ExitCode$ = "0")
100        comment "Looks good: setup program gives exitcode zero"
101else
102        comment "Setup program gives a exitcode unequal zero: " + $ExitCode$
103        if ($ExitCode$ = "1605")
104                comment "ERROR_UNKNOWN_PRODUCT  1605    This action is only valid for products that are currently installed."
105                comment "Uninstall of a not installed product failed - no problem"
106        else
107                if ($ExitCode$ = "1641")
108                        comment "looks good: setup program gives exitcode 1641"
109                        comment "ERROR_SUCCESS_REBOOT_INITIATED 1641    The installer has initiated a restart. This message is indicative of a success."
110                else
111                        if ($ExitCode$ = "3010")
112                                comment "looks good: setup program gives exitcode 3010"
113                                comment "ERROR_SUCCESS_REBOOT_REQUIRED  3010    A restart is required to complete the install. This message is indicative of a success."
114                        else
115                                logError "Fatal: Setup program gives an unknown exitcode unequal zero: " + $ExitCode$
116                                isFatalError
117                        endif
118                endif
119        endif
120endif
121
122[Winbatch_java_1_7_silent_install_32]
123%SCRIPTPATH%\custom\$JAVA32_17EXE$ /s /v"/qb-! /lie c:\tmp\$JAVA32_17VER$.log ADDLOCAL=ALL $InstallPlugins$  REBOOT=ReallySuppess SYSTRAY=0 JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0 ARPURLUPDATEINFO='http://www.opsi.org'"
124
125
126[Winbatch_install]
127; === MSI package =======================================================================================
128;msiexec /i "%ScriptPath%\custom\capicom_dc_sdk.msi" /qb-!
129
130[dosinanicon_install]
131;regsvr32 /s "C:\Programme\Microsoft CAPICOM 2.1.0.2 SDK\Lib\X86\capicom.dll"
132;cscript "C:\Programme\Microsoft CAPICOM 2.1.0.2 SDK\Samples\vbs\CStore.vbs" import c:\Sky\PZ-7462673.pfx t1akXk9Zpi
Note: See TracBrowser for help on using the repository browser.