Gui*_*tos 9 installation installer inno-setup distribution certificate
我可以使用Inno Setup导入.cer文件(证书)吗?
我该怎么做?
我需要为Windows XP,Windows Vista和Windows 7创建证书安装程序.
Slo*_*ner 10
实际上CertMgr.exe并非在所有PC上都可用,而且它似乎不是可再发行的(正如@TLama暗示的那样); 除此之外你甚至都不需要它.
CertUtil 可以在每台Windows机器上使用(我已经测试过)并完美运行:
[Run]
Filename: "certutil.exe"; Parameters: "-addstore ""TrustedPublisher"" {app}\MyCert.cer"; \
StatusMsg: "Adding trusted publisher..."
Run Code Online (Sandbox Code Playgroud)
将 Certmgr.exe 和 yourcertificate.cer 添加到安装程序中:
[Files]
Source: CertMgr.exe; DestDir: {app}; Flags: deleteafterinstall
Source: yourcertificate.cer; DestDir: {app}; Flags: deleteafterinstall
Run Code Online (Sandbox Code Playgroud)
在 [Run] 部分中,编写如下内容:
Filename: {app}\CertMgr.exe; Parameters: "-add -all -c yourcertificate.cer -s -r localmachine trustedpublisher"; Flags: waituntilterminated runhidden;
Run Code Online (Sandbox Code Playgroud)