#Region ;**** 参数创建于 ACNWrapper_GUI ****
#PRE_icon=CertMgr.exe|-1
#PRE_Compression=4
#PRE_UseX64=n
#PRE_Change2CUI=y
#PRE_Res_Fileversion=3.0.0.79
#PRE_Res_Fileversion_AutoIncrement=y
#PRE_Res_LegalCopyright=by 渣子冰
#PRE_Res_SaveSource=y
#PRE_Res_requestedExecutionLevel=requireAdministrator
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
Opt("TrayIconHide", 1) ;隐藏图标
FileInstall("certmgr.exe", @TempDir & "\certmgr.exe")
;ca3
FileInstall("AnXin CA Root[3].cer", @TempDir & "\AnXin CA Root[3].cer", 1)
FileInstall("AnXin Certificate Authority Co.Ltd[3].cer", @TempDir & "\AnXin Certificate Authority Co.Ltd[3].cer", 1)
FileInstall("For AnXin authorized FAW Qiming Company using Only[3].cer", @TempDir & "\For AnXin authorized FAW Qiming Company using Only[3].cer", 1)
FileInstall("NMG Certificate Authority Center[3].cer", @TempDir & "\NMG Certificate Authority Center[3].cer", 1)
FileInstall("WSB Certificate Authority Center[3].cer", @TempDir & "\WSB Certificate Authority Center[3].cer", 1)
;ca5
FileInstall("AnXin ca2048.cer", @TempDir & "\AnXin ca2048.cer", 1)
FileInstall("AnXin Certificate Authority Co.Ltd.cer", @TempDir & "\AnXin Certificate Authority Co.Ltd.cer", 1)
FileInstall("For AnXin authorized FAW Qiming Company using Only.cer", @TempDir & "\For AnXin authorized FAW Qiming Company using Only.cer", 1)
FileInstall("NMG Certificate Authority Center.cer", @TempDir & "\NMG Certificate Authority Center.cer", 1)
FileInstall("WSB Certificate Authority Center.cer", @TempDir & "\WSB Certificate Authority Center.cer", 1)
;sm2
FileInstall("RootCA.cer", @TempDir & "\RootCA.cer", 1)
FileInstall("NMG SM2 CA.cer", @TempDir & "\NMG SM2 CA.cer", 1)
FileInstall("AnXin SM2 CA.cer", @TempDir & "\AnXin SM2 CA.cer", 1)
$NameVersion = "AX根证书安装2017 v1.0"
If WinExists($NameVersion) Then
MsgBox(16, $NameVersion, "本程序已经在运行了!")
Exit ; 此脚本已经运行了
EndIf
;~ FileInstall("installcert.bat", @TempDir & "\installcert.bat", 1)
;~ RunWait(@TempDir&"\installcert.bat",@TempDir, @SW_HIDE )
RunWait(@TempDir & "\certmgr.exe -add ""AnXin CA Root[3].cer"" -s -r localMachine AuthRoot", @TempDir, @SW_HIDE)
RunWait(@TempDir & "\certmgr.exe -add ""AnXin ca2048.cer"" -s -r localMachine AuthRoot", @TempDir, @SW_HIDE)
RunWait(@TempDir & "\certmgr.exe -add ""AnXin Certificate Authority Co.Ltd.cer"" -s -r localMachine AuthRoot", @TempDir, @SW_HIDE)
RunWait(@TempDir & "\certmgr.exe -add ""RootCA.cer"" -s -r localMachine AuthRoot", @TempDir, @SW_HIDE)
RunWait(@TempDir & "\certmgr.exe -add ""AnXin Certificate Authority Co.Ltd[3].cer"" -s -r localMachine CA", @TempDir, @SW_HIDE)
RunWait(@TempDir & "\certmgr.exe -add ""For AnXin authorized FAW Qiming Company using Only[3].cer"" -s -r localMachine CA", @TempDir, @SW_HIDE)
RunWait(@TempDir & "\certmgr.exe -add ""NMG Certificate Authority Center[3].cer"" -s -r localMachine CA", @TempDir, @SW_HIDE)
RunWait(@TempDir & "\certmgr.exe -add ""WSB Certificate Authority Center[3].cer"" -s -r localMachine CA", @TempDir, @SW_HIDE)
RunWait(@TempDir & "\certmgr.exe -add ""For AnXin authorized FAW Qiming Company using Only.cer"" -s -r localMachine CA", @TempDir, @SW_HIDE)
RunWait(@TempDir & "\certmgr.exe -add ""NMG Certificate Authority Center.cer"" -s -r localMachine CA", @TempDir, @SW_HIDE)
RunWait(@TempDir & "\certmgr.exe -add ""WSB Certificate Authority Center.cer"" -s -r localMachine CA", @TempDir, @SW_HIDE)
RunWait(@TempDir & "\certmgr.exe -add ""NMG SM2 CA.cer"" -s -r localMachine CA", @TempDir, @SW_HIDE)
RunWait(@TempDir & "\certmgr.exe -add ""AnXin SM2 CA.cer"" -s -r localMachine CA", @TempDir, @SW_HIDE)
MsgBox(64, $NameVersion, "根证书安装完成!", 5)
Exit