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!

Kamen
Posts: 3
Joined: Fri Aug 21, 2015 2:15 am

Preserving data files during upgrade

I should start by saying that I'm using the latest free version, if it makes a difference (and it seems it might). I created an installer that deploys various executables, DLLs and some files, along with some Registry settings. It is working quite well, especially when doing an initial (new) install. However, I might be misunderstanding how the major (new product code)/minor (patches) change affects the whole process. In the beginning (many AI versions ago), I used the minor change and I noticed that there was a problem (as I changed the specifications, like folder and registry-key names, it would leave the old ones behind), so I switched to "major" and it then worked just fine for me. Until I added those database files, which contain documents and user settings. After the last upgrade (just ran the installer), I noticed that it deleted the existing databases and replaced them with the blank database files from the default installation.

I tried to search here for help and I only found directions to set attributes (e.g., "never overwrite") on the targeted files, but I can never find those. Are they not available in the free version? For example, when I go to the "File and Folders" resource ("files, folders and shortcuts"), and try to get to the properties of the containing folder, it is greyed out. Same for the "Do not overwrite existing file" option in the "Operations" tab of the file's properties.

I realize that it is best for the application to create such files, as opposed to deploying them with the installer, but those are complicated SQL database files and they change often, and it would be too much work to create code to do that every time. I'd appreciate some clarification as to what I'm doing wrong, whether there is a different way of doing what I'm trying to do, or if simply this option is not available in the free version and I have no alternative. Thanks!

Kamen
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Preserving data files during upgrade

Hi Kamen and welcome to Advanced Installer forums,
Are they not available in the free version?
Indeed, the Do not overwrite existing file option from the File Operations Tab is available starting with the Professional edition of Advanced Installer, this is why it is greyed out in the Simple project type. Here's the How do I prevent a file or registry entry from being uninstalled or repaired? article that explains how to implement your scenario. However, please note that you need the Professional edition of Advanced Installer.

If there is anything else I can help you with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Kamen
Posts: 3
Joined: Fri Aug 21, 2015 2:15 am

Re: Preserving data files during upgrade

Thank you, Dan. I'll consider my options.
Kamen
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Preserving data files during upgrade

You're welcome Kamen,

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Kamen
Posts: 3
Joined: Fri Aug 21, 2015 2:15 am

Re: Preserving data files during upgrade

It has been 9 months since I last posted here and about that much since I need to build a new installation set. By the way, this shows you why I'm still reluctant to switch from the free version to any of the paid ones: I use it about once or twice a year, so with your business model of having to pay for each new major version, I'd pretty much be paying every time I needed to use it. :D It would really take me as much time to keep up with payments and paperwork as it takes me using the product.

Anyway, I first updated AI to the current version (12.8) and then proceeded to check my configurations and attributes to see if anything had changed that might need my attention. And what was my (pleasant) surprise when I noticed that the abovementioned "Do not overwrite existing file" option was not greyed out anymore! Am I seeing this right? If this was a good-will gesture to users of the free version, then thank you, very much! Having that feature unavailable was, by the way, heavily inconsistent with the rest of the product: such a small action, compared to the tremendous functionality of the free version; it was, though, a great inconvenience that seems to be resolved now. And if it was by any means related to my post here, than I'm also flattered.

One way or another, AI has been so good to me that I have never, even for a moment, considered any competing product. And the moment I need to use it more than a couple of times a year, certainly when my product is put in production and we make any money from it, I will immediately switch to the paid version.

Thank you, again!
Kamen

Return to “Building Installers”