在 Inno Setup 脚本中提供 SignTool 配置
Providing SignTool configuration in Inno Setup script
我有以下 Inno Setup 签名配置:
[Setup]
SignTool=signtool $f
SignedUninstaller=yes
Inno Setup Compiler IDE 在 "Tools > Configure Sign Tools..." 我有:
"C:\DEVELOPMENT\Setup\signtool.exe" sign /f C:\DEVELOPMENT\Signing_Certificate.pfx /p "my_password" $f
...当我编译我的 Inno Setup 时,这在我的本地机器上运行良好。
但是,我们需要使用 TeamCity 自动构建安装程序。所以这一切都必须是自动的。并且签名工具配置需要包含在脚本中,不需要预先配置任何东西。
是否可以在实际的 Inno Setup 脚本中将我的路径声明为变量,以便在上面的签名向导行中获取它们?
对于自动构建,您不使用 Inno Setup IDE。你应该使用 iscc
command-line compiler.
为了配置签名工具,iscc
有 /S
开关:
iscc example.iss "/Ssigntool=C:\DEVELOPMENT\Setup\signtool.exe sign /f C:\DEVELOPMENT\Signing_Certificate.pfx /p my_password $f"
我有以下 Inno Setup 签名配置:
[Setup]
SignTool=signtool $f
SignedUninstaller=yes
Inno Setup Compiler IDE 在 "Tools > Configure Sign Tools..." 我有:
"C:\DEVELOPMENT\Setup\signtool.exe" sign /f C:\DEVELOPMENT\Signing_Certificate.pfx /p "my_password" $f
...当我编译我的 Inno Setup 时,这在我的本地机器上运行良好。
但是,我们需要使用 TeamCity 自动构建安装程序。所以这一切都必须是自动的。并且签名工具配置需要包含在脚本中,不需要预先配置任何东西。
是否可以在实际的 Inno Setup 脚本中将我的路径声明为变量,以便在上面的签名向导行中获取它们?
对于自动构建,您不使用 Inno Setup IDE。你应该使用 iscc
command-line compiler.
为了配置签名工具,iscc
有 /S
开关:
iscc example.iss "/Ssigntool=C:\DEVELOPMENT\Setup\signtool.exe sign /f C:\DEVELOPMENT\Signing_Certificate.pfx /p my_password $f"