Views
WinstScripts
>>
Ghostscript
last edited 3 months ago by sehlers
Qualified for 3.4
-----------------------------------------------------------------
; Copyright (c) uib gmbh (www.uib.de)
; This sourcecode is owned by uib
; and published under the Terms of the General Public License.
[Initial]
Message=Installiere ghostscript 8.70 ......
;Erstellt am 07.01.10, uib
LogLevel=2
ExitOnError=false
ScriptErrorMessages=on
TraceMode=off
[Aktionen]
;Variable für temporäres Verzeichnis
DefVar $Temp$
set $Temp$ = EnvVar("TEMP")
;Variablen für BetriebssystemsVersion (OS)-Test
DefVar $OS$
DefVar $MinorOS$
set $OS$ = GetOS
set $MinorOS$ = GetNTVersion
DefVar $InstallDir$
set $InstallDir$="%ProgramFilesDir%"+"\gs"
DefStringList $wmic_systemtype_out$
; started two times cause the stringnumberposition is wrong after the first time
Set $wmic_systemtype_out$ = getOutstreamFromSection ('DosInAnIcon_retrieve_systemtype')
DefVar $systemtype$
Set $systemtype$ = TakeString (2,$wmic_systemtype_out$)
comment "Show product picture"
ShowBitmap /3 "%ScriptPath%\" + "ghostscript.png" "Ghostscript"
DefVar $BitVERSION$
if ( $systemtype$ = "X86-based PC ")
; 32bit-System
Set $BitVERSION$ = "32bit"
DOSInAnIcon_unattended_install_32
else
if ($systemtype$ = "X64-based PC ")
; 64-bit System
Set $BitVERSION$ = "64bit"
DOSInAnIcon_unattended_install_64
endif
endif
[DosInAnIcon_retrieve_systemtype]
@echo off
wmic computersystem get systemtype
[DOSInAnIcon_unattended_install_32]
p:
cd P:\install\ghostscript\gs870w32
setupgs.exe "%ProgramFilesDir%\gs"
[DOSInAnIcon_unattended_install_64]
p:
cd P:\install\ghostscript\gs870w64
setupgs.exe "%ProgramFilesDir%\gs"