好的,我有一个新问题。我正在尝试通过 Windows Batch 命令使用高级安装程序
"C:\Program Files\Caphyon\Advanced Installer 8.0.1\bin\x86\advinst.exe" /edit "C:\jenkins\workspace\myProject\Platforms\Win32\Install\myProject.aip" /SetVersion %previousVersion%
"C:\Program Files\Caphyon\Advanced Installer 8.0.1\bin\x86\advinst.exe" /edit "C:\jenkins\workspace\myProject\Platforms\Win32\Install\myProject.aip" /SetProductCode -langid 1033
"C:\Program Files\Caphyon\Advanced Installer 8.0.1\bin\x86\advinst.exe" /rebuild "C:\jenkins\workspace\myProject\Platforms\Win32\Install\myProject.aip"
项目在调用重建命令时挂起并且永远不会完成。
我认为这可能是我在项目中的一个文件的路径问题,所以我查看了所有路径并确保它们是正确的。我还进入了安装程序并将所有路径设置为绝对路径。
不幸的是,Advance Installer 不会在命令提示符上显示错误,并且除非该过程完成,否则日志将不起作用。
当我在我们的构建机器上运行高级安装程序时,它可以毫无问题地构建项目。
有什么建议么?
更新:这是我的输出日志和 AI 位置。我将 AIP 文件移动到根目录。
Started by user Admin
[EnvInject] - Preparing an environment for the build.
Building remotely on Build 3 in workspace c:\jenkins\workspace\myProject
[EnvInject] - Executing scripts and injecting environment variables after the SCM step.
[EnvInject] - Injecting as environment variables the properties content
FILE_INSTALLER="C:\Program Files\Caphyon\Advanced Installer 8.0.1\bin\x86\advinst.exe"
DIR_INSTALL="C:\jenkins\workspace\myProject\myProject"
FILE_INSTALL="myProject.aip"
[EnvInject] - Variables injected successfully.
[testdev] $ cmd /c call C:\DOCUME~1\SOFTWA~1.NAF\LOCALS~1\Temp\hudson47906.bat
c:\jenkins\workspace\testdev>cd "C:\jenkins\workspace\myProject\myProject"
C:\jenkins\workspace\myProject\myProject>dir
Volume in drive C has no label.
Volume Serial Number is 341D-83B7
Directory of C:\jenkins\workspace\myProject\myProject
05/21/2012 09:52 AM <DIR> .
05/21/2012 09:52 AM <DIR> ..
05/14/2012 01:03 PM <DIR> .hg
05/14/2012 09:20 AM 146 .hgignore
05/14/2012 09:20 AM 6,158 .hgtags
05/14/2012 09:20 AM 278 delete compiled files.bat
05/14/2012 09:20 AM 293 file changes.bat
05/15/2012 03:13 PM <DIR> myProjectDocs
05/14/2012 09:20 AM <DIR> Platforms
05/14/2012 09:20 AM <DIR> Universal
05/21/2012 09:52 AM 494,538 myProject.aip
5 File(s) 501,413 bytes
6 Dir(s) 26,546,180,096 bytes free
C:\jenkins\workspace\myProject\myProject>"C:\Program Files\Caphyon\Advanced Installer 8.0.1\bin\x86\advinst.exe" /edit "myProject.aip" /SetVersion 2.6.4.17
C:\jenkins\workspace\myProject\myProject>"C:\Program Files\Caphyon\Advanced Installer 8.0.1\bin\x86\advinst.exe" /edit "myProject.aip" /SetProductCode -langid 1033
C:\jenkins\workspace\myProject\myProject>"C:\Program Files\Caphyon\Advanced Installer 8.0.1\bin\x86\advinst.exe" /rebuild "myProject.aip"
Build was aborted
Aborted by Admin
[PostBuildScript] - Execution post build scripts.
[PostBuildScript] Build is not success : do not execute script
Build step '[PostBuildScript] - Execute a set of scripts' marked build as failure
Finished: ABORTED
构建机器上的 AI 位置。
而且我确实在服务器环境变量中列出了高级安装程序路径。