We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

iulian
Posts: 1
Joined: Wed Mar 09, 2016 11:10 am

Jenkins patch building

Hello.
We would like to create patches from command line automatically using Jenkins.
We have created a small script that will update our project aip file and start building it.
The issue is that the Jenkins waits indefinitely for the script to run.
Jenkins output:
Checking builds status... done.
Build required.
---> waiting indefinitely!!!
The same script when run from command line will work and the patches will be build.
We suspect that the "advancedinstaller.com" will call MakeCab.exe in a new cmd window, and thus Jenkins is not supporting this feature.
How can we overcome this and call MakeCab.exe in the same window ?

As a note: the .msi file is also build with Jenkins from command line and it works ok(No errors here).

Our power shell commands(doesn't matter could be cmd) for building the patch are the following:

Code: Select all

# $ADVINSTCOM  - path to the advancedinstaller.com 
# $advInstPatchFilePath is the path to our project
# $curentMsiPackagePath path to the current built msi
# $lastBuildMsi - path to the las successful built msi
# $currPatchOutputPath  - path for the output file.

& $ADVINSTCOM /edit $advInstPatchFilePath /NewMspUpgraded -family "Family" -upgraded "Upgraded" -path $curentMsiPackagePath.FullName
#update target version
& $ADVINSTCOM /edit $advInstPatchFilePath /NewMspTarget -upgraded "Upgraded" -target "Target" -path $lastBuildMsi.FullName
#build
# create output path for the patch
$currPatchOutputPath = $CurrOutputPath + "\" + $appName + "_" + $CurrVersion + ".msp"
& $ADVINSTCOM /edit $advInstPatchFilePath  /SetPackageName "$currPatchOutputPath"
& $ADVINSTCOM /build "$advInstPatchFilePath"
Thank you
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Jenkins patch building

Hello Iulian and welcome to Advanced Installer forums,

I think the problem is that you do not have the MsiMsp available. Note that to create Windows Installer patches, Advanced Installer use the MsiMsp.exe tool - along with "Patchwiz.dll" which are distributed with the Windows SDK platform.

Please take a look on the Windows SDK tools required for creating MSI packages article which may be useful to you.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”