Skip to content

opsi.orgheader image

opsi.org
Views
WinstScripts >>

endnote

Document Actions
last edited 2 years ago by doertel
[Initial]
Message=Installiere Endnote 8 und den Patch 8.0.2

LogLevel=2
ExitOnError=false
ScriptErrorMessages=on
TraceMode=off


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

; show product picture
    ShowBitmap /3 "%scriptpath%\endnote.bmp" "EndNote 8"

    DefVar $UninstallCommand$
    DefVar $DisplayName$

    ;endnote8
    set $DisplayName$ = GetRegistryStringValue ("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{27625A79-D272-41EF-844B-6EAC87D4A51E}] DisplayName")
    if not ($DisplayName$ = "")
     Message "Found "+$DisplayName$+" => uninstalling first"
     set $UninstallCommand$ = "MsiExec.exe /x {27625A79-D272-41EF-844B-6EAC87D4A51E} /qb-!"
      Winbatch_deinstall
     endif

     winbatch_endnote
     winbatch_patch

[winbatch_endnote]
msiexec /i "%SCRIPTPATH%\endnote8\MSI\EN8.msi" ALLUSERS=2 /qb-! /l* $TMP$\endnote8.txt

[winbatch_patch]
msiexec /p "%SCRIPTPATH%\patch\EN802Patch.msp" ALLUSERS=2 /qb-! /l* $TMP$\patch802.txt

[Winbatch_Deinstall]
$UninstallCommand$