xml file merge on update - Advanced Installer Community

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!

bchetana
Posts: 95
Joined: Sat Dec 01, 2012 11:36 am

xml file merge on update

Hi,

At the time of installation we will ask the user to select the working folder. This shall be stored in
an XML file which will be stored in installation folder. This XML file is set with following settings [pleas c the images attached]

I am having a problem with this approach

when We install the upgrade we will first uninstall the old version and then we will install the update using /br [no UI].
The application shall be using the same config file to get the working folder, as it is not updated. [which is fine]

But when we uninstall the old product and then install it as fresh installation, the user shall be asked to select the Working Dir. In this case
as it set to not update, AI is not updating the file. So I want to differentiate the two scenarios [update, fresh install]. How can i condition the XML update?

Aslo for every install, uninstall .BAKE files are created. How can i clear them ?
Attachments
ScreenHunter_02 Feb. 18 11.50.gif
ScreenHunter_02 Feb. 18 11.50.gif (27.49 KiB) Viewed 3802 times
ScreenHunter_01 Feb. 18 11.49.gif
ScreenHunter_01 Feb. 18 11.49.gif (29.21 KiB) Viewed 3802 times
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: xml file merge on update

Hi,

You cannot set a condition on part of an XML file, but you can set one for the entire file, by setting the condition on the component that installs it, in Organization page.

You will need to create to identical XML files, and install them as explained in this article.

Then you need to locate their components, press F8, in Organization page, to set the condition. For an upgrade the condition should be "OLDPRODUCTS", for a fresh install it should be "NOT OLDPRODUCTS".
Also for every install, uninstall .BAKE files are created. How can i clear them ?
In the screen-shot called "ScreenHunter_01 Feb. 18 11.49.gif" you can see an option called "Create backup before updating", disable it.

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bchetana
Posts: 95
Joined: Sat Dec 01, 2012 11:36 am

Re: xml file merge on update

Hi

I did as you suggested.

Before upgrade we first uninstall the existing product and then we Install.

As a result, the above mention logic is not working. The condition "OLDPRODUCTS" is not getting executed. How to handle this?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: xml file merge on update

Hello,

If you uninstall separately the old version of your product, and don't uninstall it during installation of your upgraded version, then you can create a search which should detect if an older version of your product was installed on target machine. For example you can add a registry value in your projects which will not be removed during uninstall. Then, in "Search" page you can add a registry search which will search for the above registry value.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”