找回密码
 加入
搜索
查看: 2302|回复: 0

[AU3基础] Adobereader中日文判斷安裝

[复制链接]
发表于 2015-1-6 15:56:06 | 显示全部楼层 |阅读模式
下面為小弟目前的寫法
目前安裝是沒問題,但都會把中日文安裝進去
請問要怎麼寫才會讓他自動判斷中日文語系去個別進行安裝?
$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
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-12-23 12:34 , Processed in 0.072958 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表