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!

mkalinski
Posts: 1
Joined: Mon Oct 29, 2018 11:15 am

[WinForms] Properties and Auto-Updater

Hello,

I have recently purchased the Professional Edition of AdvancedInstaller.
My Goal to achieve is to create an installer which the Software automatically detects new updates.
If so, it must install updates before launching the application.
Although I need to save the Properties.Settings file, because some developer of our Company use them to store specific user Settings.

The use case should be like that:

1. Launching the application
2. silent check if update is available in the Background
3.1. if so, install the update and launch the application
3.2. if not, just launch the application

As I´ve mentioned, I need to save configuration from being deleted by the update.
Even thought, is it possible to extend files, like merging the files together. I am thinking about having a Setting which contains e.g 10 properties. The next update will have the same 10 properties but will increase the total properties to 15. Now 10 Settings has been set and 5 has been added.

best regards!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: [WinForms] Properties and Auto-Updater

Hello and welcome to our forums,

You should be able to achieve what you want by making use of our "Updater" tool. For instance, at application start time you can call within your application code the Updater with a check for updates command line and depending on the Updater exit code (updates found or not) continue or stop the application and configure the Updater to start it after the updates installation within your updates configuration project.

In what regards preserving the "Properties.Settings" file you can add it as a regular file in "Files and Folders" page, right click on it, go to "Properties" -> "Operations" tab and select the "Do not overwrite existing file" option.

Also, to add additional settings content to your file you can try to create your own custom action which will edit the file on disk by appending the additional settings data. Starting with the Enterprise edition of Advanced Installer you can take advantages of the "Text File Updates" and "XML Updates" built in support we have in "Files and Folders" page.

If you have any questions or doubts just let us know.

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

Return to “Building Installers”