$DisplayVersion_CH = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76BA86-7AD7-1028-7B44-AB0000000001}", "DisplayVersion")
$DisplayVersion_JP = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76BA86-7AD7-1041-7B44-AB0000000001}", "DisplayVersion")
If $DisplayVersion_CH ="11.0.05" Or $DisplayVersion_JP ="11.0.05" Then
Exit
EndIf
if @OSLang="0404" Or $DisplayVersion_CH <> "11.0.05" Then
RunAsWait($sUserName,$sDomain,$sPassword,0,"msiexec.exe /passive /i " & $Location & "\adobereader11\AdbeRdr11000_zh_TW.msi /norestart",$Location & "\adobereader11")
;SplashTextOn("Information", " Adobe Reader 安裝成功! Install success! ",350,60)
;Sleep(3000)
;SplashOff()
EndIf
if @OSLang="0411" Or $DisplayVersion_JP <> "11.0.05" Then
RunAsWait($sUserName,$sDomain,$sPassword,0,"msiexec.exe /passive /i " & $Location & "\adobereader11\AdbeRdr11000_ja_JP.msi /norestart",$Location & "\adobereader11")
;SplashTextOn("Information", " Adobe Reader 安裝成功! Install success! ",350,60)
;Sleep(3000)
;SplashOff()
EndIf
;updateAdobeReader
RunAsWait($sUserName,$sDomain,$sPassword,0,"msiexec.exe /passive /update " & $Location & "\adobereader11\AdbeRdrUpd11001.msp /norestart",$Location & "\adobereader11")
RunAsWait($sUserName,$sDomain,$sPassword,0,"msiexec.exe /passive /update " & $Location & "\adobereader11\AdbeRdrSecUpd11002.msp /norestart",$Location & "\adobereader11")
RunAsWait($sUserName,$sDomain,$sPassword,0,"msiexec.exe /passive /update " & $Location & "\adobereader11\AdbeRdrUpd11003.msp /norestart",$Location & "\adobereader11")
RunAsWait($sUserName,$sDomain,$sPassword,0,"msiexec.exe /passive /update " & $Location & "\adobereader11\AdbeRdrUpd11004.msp /norestart",$Location & "\adobereader11")
RunAsWait($sUserName,$sDomain,$sPassword,0,"msiexec.exe /passive /update " & $Location & "\adobereader11\AdbeRdrSecUpd11005.msp /norestart",$Location & "\adobereader11")
;InstallLanguage11
$DisplayVersion = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76BA86-7AD7-2530-0000-A00000000004}", "DisplayVersion")
If $DisplayVersion <> "11.0.0" Then
Runwait (@ComSpec & " /c " & "msiexec.exe /norestart /passive /x {AC76BA86-7AD7-2530-0000-A00000000004}","")
RunAsWait($sUserName,$sDomain,$sPassword,0,"msiexec.exe /passive /i " & $Location & "\adobereader11\FontPack11000_XtdAlf_Lang.msi",$Location & "\adobereader11")
SplashTextOn("Information", " Adobe Reader 安裝成功! Install success! ",350,60)
Sleep(3000)
SplashOff()
EndIf