Overwrite exiting MSI file - Advanced Installer Community
nitin.mishra
Posts: 7
Joined: Tue Mar 26, 2019 9:47 pm

Overwrite exiting MSI file

Hi,
I am using AI with Jenkins. For some reason AI is not overwriting MSI file generated. If I delete the MSI , process does overwrite but not otherwise. I would like the file to be overwritten every time. How can we achieve the same ? I am using freeware with jenkins.
( When I only use the AI and 'RUN' it does overwrite).
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Overwrite exiting MSI file

Hello and welcome to our forums,

Can you please delete the caching option for your setup project and let us know if this helped?

To do so just open your setup project (AIP file) in Advanced Installer. Then click on the [Options] toolbar button under the "Home" tab. Go to "Build" tab and uncheck the “Speed up builds by caching unchanged archives” option.

Save the project and test again the Jenkins build operations.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
nitin.mishra
Posts: 7
Joined: Tue Mar 26, 2019 9:47 pm

Re: Overwrite exiting MSI file

This does not work
Last edited by nitin.mishra on Wed Mar 27, 2019 8:45 pm, edited 1 time in total.
nitin.mishra
Posts: 7
Joined: Tue Mar 26, 2019 9:47 pm

Re: Overwrite exiting MSI file

Hey it does not. Its not overwritting.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Overwrite exiting MSI file

Hello,

Can you please configure the Advanced Installer build step to use our "rebuild" command? This should always force a rebuild operation. Just add the following command:

Code: Select all

rebuild
in the "Additional Commands" field of the "Advanced Options" section of the AI build step of your Jenkins build.
screen.jpg
screen.jpg (138.97 KiB) Viewed 4856 times
Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
nitin.mishra
Posts: 7
Joined: Tue Mar 26, 2019 9:47 pm

Re: Overwrite exiting MSI file

This seems to be working. Thanks !!!
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Overwrite exiting MSI file

You are always welcome.

Glad we could help.

Just let us know anytime you encounter a problem.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”