Skip to content

opsi.orgheader image

opsi.org
Views
WinstScripts >>

orajinitiator

Document Actions
last edited 1 year ago by bwolf
[Initial]
; Copyright (c) uib gmbh (www.uib.de)
; This sourcecode is owned by uib
; and published under the Terms of the General Public License.


Message=installiere Oracle Jinitiator
; 2005-07-22 Bardo Wolf         
; recorded with
;c:\tmp\jinit1_3_1_18.exe /a /r /f1c:\temp\foo.iss
LogLevel=2
ExitOnError=false
ScriptErrorMessages=on
TraceMode=off


[Aktionen]
;Variable für temporäres Verzeichnis
DefVar $Temp$
set $Temp$ = EnvVar("TEMP")
;
DefVar $SYSTEMDRIVE$
Set $SYSTEMDRIVE$ = "%SYSTEMDRIVE%"

DefVar $SCRIPTPATH$
Set $SCRIPTPATH$  = "%SCRIPTPATH%"


DefVar $FILES_LOCAL$
Set $FILES_LOCAL$ = $SYSTEMDRIVE$ + "\tmp\orajinitiator"

;Variablen für BetriebssystemsVersion (OS)-Test
DefVar $OS$
DefVar $MinorOS$
set $OS$ = GetOS
set $MinorOS$ = GetNTVersion
if ( $OS$ = "Windows_NT" OR $OS$ = "Windows_95" )
; show product picture
;  ShowBitmap /3 "%scriptpath%\softprod.bmp" "Dummyprodukt softprod"
if not (HasMinimumSpace ("%SYSTEMDRIVE%", "50 MB"))
           LogError "Nicht genügend Platz auf C: . 50 MB auf C:  erforderlich."
      else
   Files_Copy_Src
   winbatch_jini
   
   if FileExists("%ScriptPath%\custom.ins")
     sub "%ScriptPath%\custom.ins"
   endif
  
   ; pruefe installations-erfolg des Installshield silent-setup
   DefVar $setuplog$
   Set $setuplog$ = $FILES_LOCAL$ + "\setup.log"
   DefVar $inivar$
   set $inivar$ = GetIni ($setuplog$ [ResponseResult] ResultCode)
   if NOT ( $inivar$ = "0" )
         LogError "Installation fehlgeschlagen"
         isFatalError
   endif
 
  endif
endif 

;custom specific stuff
  DefVar $PRODUCTPATH$
  Set $PRODUCTPATH$="%ProgramFilesDir%\oracle"

  if FileExists("%ScriptPath%\custom_ins_dir\custom.ins")
    sub "%ScriptPath%\custom_ins_dir\custom.ins"
  endif

[Files_Copy_Src]
copy -s %SCRIPTPATH%\files\*.* $FILES_LOCAL$

[winbatch_jini]
$FILES_LOCAL$\jinit1_3_1_18.exe /s /a /s /sms /f1$FILES_LOCAL$\foo.iss

file: http://www.opsi.org/opsi_wiki/Orajinitiator/orajinitiator.ins