hadas
Posts: 43
Joined: Mon Jan 06, 2014 10:53 am

Leave folder when uninstall and delete when upgrading

Hi,

I have directory contains ini file with the installer version. I'm using "edit ini file" to write the file.
I want to keep the file when application is uninstalled, but change the file when upgrading.
There are 2 setup types for installtion, all or only some of the features.

I tried to use on the folder (REMOVE="ALL" AND (NOT UPGRADINGPRODUCTCODE)), this works fine if all features were installed.
However, if not all features were installed, the directory and the file are deleted when uninstall.

Thanks,
Hadas
Eusebiu
Posts: 4964
Joined: Wed Nov 14, 2012 2:04 pm

Re: Leave folder when uninstall and delete when upgrading

Hi Hadas,

Can you try to set the "Permanent" flag for the component related to your INI file, without setting any condition for it and see if it works?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hadas
Posts: 43
Joined: Mon Jan 06, 2014 10:53 am

Re: Leave folder when uninstall and delete when upgrading

Thanks, but it didn't help
Eusebiu
Posts: 4964
Joined: Wed Nov 14, 2012 2:04 pm

Re: Leave folder when uninstall and delete when upgrading

Hi Hadas,

I'm not sure why it didn't work. Can you reproduce the behavior on multiple clean machines? If so, can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com, so we can investigate them?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Eusebiu
Posts: 4964
Joined: Wed Nov 14, 2012 2:04 pm

Re: Leave folder when uninstall and delete when upgrading

Hi Hadas,

I looked over your AIP file, but I noticed that you set the "Permanent" flag for the component related to the "version" folder, not for the one related to the "version.ini" file. In this case, you can try to move the resources of the INI file in the component related to the "version" folder.

To achieve that you can either select the "version.ini" file, press the "F8" keyboard button and move its resources in the "version" component from the Organization page or you can edit each entry of the "version.ini" file and select the "version" component from the "Component" combobox as displayed in the image below.

Best regards,
Eusebiu
Attachments
Edit INI File.png
Edit INI File.png (16.96 KiB) Viewed 5896 times
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hadas
Posts: 43
Joined: Mon Jan 06, 2014 10:53 am

Re: Leave folder when uninstall and delete when upgrading

Hi,

Thanks for your response.
I moved the ini to be under component version, it didn't worked.

Any other suggestions?
Eusebiu
Posts: 4964
Joined: Wed Nov 14, 2012 2:04 pm

Re: Leave folder when uninstall and delete when upgrading

Hi Hadas,

I'm not sure why it didn't work, but I tested the scenario in a new project and it worked as expected for me. Also, the verbose log files that you sent, shows that the INI values are not removed during the uninstall. Can you reproduce the behavior on multiple clean machines or in a new project?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”