Views
WinstScripts
>>
coreldrawx3
last edited 1 year ago by sehlers
Qualified for opsi 3
---------------------------------------------------------------------
[Initial]
; Copyright (c) uib gmbh (www.uib.de)
; This sourcecode is owned by uib
; and published under the Terms of the General Public License.
;
; thanks to mdajunge
; http://sourceforge.net/forum/message.php?msg_id=3736533
;
Message=Installiere CorelDraw Graphic Suite X3
;Skript erstellt am 14.11.2007
LogLevel=2
ExitOnError=false
ScriptErrorMessages=on
TraceMode=off
[Aktionen]
;Variable fuer temporaeres Verzeichnis
DefVar $Temp$
set $Temp$ = EnvVar("TEMP")
;Variablen fuer BetriebssystemsVersion (OS)-Test
DefVar $OS$
DefVar $MinorOS$
set $OS$ = GetOS
set $MinorOS$ = GetNTVersion
if ( $OS$ = "Windows_NT" )
; show product picture
ShowBitmap /3 "%scriptpath%\corel.bmp" "Corel-Graphik-Suite"
DefVar $UninstallCommand$
DefVar $ProductID$
set $ProductID$ = GetRegistryStringValue ("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7C5123A9-30A8-4C44-89CA-A8C87A1FCC91}] DisplayVersion")
if not ($ProductID$ = "")
Message "Found "+$ProductID$+" => uninstalling first"
set $UninstallCommand$ = "msiexec /x {7C5123A9-30A8-4C44-89CA-A8C87A1FCC91} /qb-!"
Winbatch_uninstall
endif
Files_copy
WinBatch_callsetup /WaitSeconds 400
WinBatch_callui
WinBatch_fontnav
WinBatch_Hotfix
WinBatch_SRV1
WinBatch_SRV2
WinBatch_font
Files_delete
;custom specific stuff
DefVar $PRODUCTPATH$
Set $PRODUCTPATH$="%ProgramFilesDir%\Corel"
if FileExists("%ScriptPath%\custom_ins_dir\custom.ins")
sub "%ScriptPath%\custom_ins_dir\custom.ins"
endif
endif
[Files_copy]
copy -svx %SCRIPTPATH%\files\* c:\tmp\coreldrawx3
[WinBatch_callsetup]
msiexec.exe /i "c:\tmp\coreldrawx3\setup.msi" DELANG=1 SERIALNUMBER=XXXXXXXXXXXXXX ALLUSERS=2 /qb /log c:\tmp\corel.log
[WinBatch_callui]
msiexec.exe /i "%SCRIPTPATH%\files\de.msi" ALLUSERS=2 /qb /log c:\tmp\ui.log
[WinBatch_fontnav]
msiexec.exe /i "%SCRIPTPATH%\files\fontnav.msi" ALLUSERS=2 /qb /log c:\tmp\fontnav.log
[WinBatch_Hotfix]
msiexec.exe /i "%SCRIPTPATH%\hotfixes\Hotfix_unzip\CGS X3 Hot Patch 1.msi" ALLUSERS=2 /qb /log c:\tmp\corelhotfix.log
[WinBatch_SRV1]
msiexec /p "%SCRIPTPATH%\hotfixes\CGSX3SP1.msp" ALLUSERS=2 /qn /log c:\tmp\corelsrv1.log
[WinBatch_SRV2]
msiexec /p "%SCRIPTPATH%\hotfixes\CGSX3SP2.msp" ALLUSERS=2 /qn /log c:\tmp\corelsrv2.log
[WinBatch_font]
msiexec /p "%SCRIPTPATH%\hotfixes\FontNavFix.msp" ALLUSERS=2 /qn /log c:\tmp\fontnav2.log
[Files_delete]
delete -sf c:\tmp\coreldrawx3
[Winbatch_uninstall]
$UninstallCommand$
file: http://www.opsi.org/opsi_wiki/Coreldrawx3/coreldrawx3.ins