Ok I have a new problem. I'm trying to use advanced installer through the Windows Batch command
"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"
The project hangs when it calls the rebuild command and never completes.
I thought that maybe it might have been a path issue with one of my files in the project so I looked over all of my paths and made they were correct. I also went into the installer and set all paths to be absolute.
Unfortunately Advance Installer does not show errors on the command prompt, and logs do not work unless the process is finished.
When I run advance installer on our build machine it builds the project with no problems.
Any suggestions?
UPDATE: Here is my Output log and AI location. I moved the AIP file to the root directory.
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 location on the build machine.
And I do have the Advanced Installer Path listed in the server environmental variables.
You do not see output in the command prompt because you are calling "advinst.exe". The CLI interface of Advanced Installer was designed to be called through "AdvancedInstaller.com".
Also, I suppose free space is not a problem on the machine?
UPDATE: Now there is an official Jenkins plugin for Advanced Installer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With