我想在下面创建一个没有时间戳签名的安装程序。 但是构建失败了,中止了创建过程:
!system "$\"${SIGNTOOL_PATH}$\" sign /f $\"${KEY_PATH}$\" /p ${PASSWORD} /d $\"${FULL_NAME}$\" /du $\"http://www.companywebsite.com$\" $\"$%TEMP%\uninstall.exe$\"" = 0
所以我评论了这一行并再次构建它,然后我得到了一个签名安装程序。但我认为评论这条线是不正确的。
!ifdef INNER
OutFile "$%TEMP%\tempinstaller.exe"
SetCompress off
!else
!system "$\"${NSISDIR}\makensis$\" /DINNER /O..\..\log_project.txt /DVERSION=${VERSION} /DRELEASE=${RELEASE} /DLICENSE=${LICENSE} /DBUILDID=${BUILDID} PROJECT.nsi" = 0
!system "$%TEMP%\tempinstaller.exe" = 2
!if "${SERVER_TIMEOUT}" == "true"
!if "${SIGNTOOL_PATH}" != ""
!error
!endif
!else
!if "${SIGNTOOL_PATH}" != ""
!echo "Return Value"
!if "${TIMESTAMP_URL}" == ""
!system "$\"${SIGNTOOL_PATH}$\" sign /f $\"${KEY_PATH}$\" /p ${PASSWORD} /d $\"${FULL_NAME}$\" /du $\"http://www.companywebsite.com$\" $\"$%TEMP%\uninstall.exe$\"" = 0
!else
!system "$\"${SIGNTOOL_PATH}$\" sign /f $\"${KEY_PATH}$\" /p ${PASSWORD} /d $\"${FULL_NAME}$\" /du $\"http://www.companywebsite.com$\" /t $\"${TIMESTAMP_URL}$\" $\"$%TEMP%\uninstall.exe$\"" = 0
!endif
!endif
!endif
OutFile "${OUTPUT_DIR}\${SHORT_NAME}-${VERSION}-${RELEASE}.exe"
SetCompressor /SOLID lzma
!endif
你知道吗?我该如何解决?
感谢。
答案 0 :(得分:0)
现在已修复,我更改了signtool.exe路径。 从
<property name="sign.tool" value="tools/signtool/signtool.exe"/>
到
<property name="sign.tool" value="C:/Project/tools/signtool/signtool.exe"/>
感谢。