Skip to content

opsi.orgheader image

opsi.org
Views
WinstScripts >>

ppview2007

Document Actions
last edited 1 year ago by bwolf
; Copyright (c) uib gmbh (www.uib.de)
; This sourcecode is owned by uib
; and published under the Terms of the General Public License.
; credits: http://www.opsi.org/credits/

[Initial]
LogLevel=2
;  Log Errors in Logfile but don't abort:
ExitOnError=false
; Show syntax errors in the script:
ScriptErrorMessages=on
; Dont trace step by step through the script:
TraceMode=off
; let started programs run in front of the winst window
StayOnTop=false
 
[Aktionen]
DefVar $ProductId$
DefVar $MinimumSpace$
DefVar $NewExe$
DefVar $InstallDir$

; This should be edited
set $ProductId$ = "ppview2007"
set $MinimumSpace$ = "5 MB"
set $InstallDir$="%ProgramFilesDir%\"+$ProductId$
set $NewExe$=$InstallDir$+"\"+$ProductId$+".exe"

DefVar $TEMP$ 
Set $TEMP$ = EnvVar("TEMP")

; Message at install time:
Message "Installing "+$ProductId$+" ..."

if not(HasMinimumSpace ("%SYSTEMDRIVE%", $MinimumSpace$))
 LogError "Not enough space on C: . "+$MinimumSpace$+" auf C: fuer "+$ProductId$+" erforderlich."
 isFatalError
 ; Bearbeitung beenden und Produktschalter auf failed setzen
else
;show product picture
 ShowBitmap /3 "%scriptpath%\"+$ProductId$+".bmp" $ProductId$

 if FileExists("%ScriptPath%\delsub.ins")
;  start uninstall
   sub "%ScriptPath%\delsub.ins"
 endif

;Message at install time:
 Message "Installing "+$ProductId$+" ..."
;start setup program  
 Winbatch_install
 
 Winbatch_install_srv1

endif


[Winbatch_install]
msiexec /qb /l* C:\tmp\ppview2007.log /i %SCRIPTPATH%\ppviewer.msi

[Winbatch_install_srv1]
msiexec /p "%SCRIPTPATH%\ppviewersp1-de-de.msp"  /qn /log c:\tmp\ppview2007SRV1.log




file: http://www.opsi.org/opsi_wiki/Ppview2007/ppview2007.ins