Moving to AI from ClickOnce - Advanced Installer Community
matt123
Posts: 25
Joined: Mon Oct 28, 2013 7:36 pm

Moving to AI from ClickOnce

Hi,
We are keen to move our ClickOnce product over to a standard install and AI seems like it might be the way to go.
We need to make the transition as painless as possible for our users, so we need to achieve something like the following.

Update existing ClickOnce app, so that all existing users get the update. This update contains code to download and install the new installation:

* Download AI MSI install
* copy existing user.config - *this is crucial*
* execute AI install, and ensure that the existing user.config is copied to the appropriate directory
* uninstall the existing ClickOnce deployment, and launch the new program.

Does AI have in-built support for any of this?
If not (which I assume), then the crucial thing for us is that we need a way to copy the existing user settings file over to the new installation. In order to do that, we would need to know where the install occurred. Ideally, there would be a way to pass this filename in as a parameter when launching the installation.

thanks,

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

Re: Moving to AI from ClickOnce

Hello Matt and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.
* Download AI MSI install
* copy existing user.config - *this is crucial*
In order to install your updates you can use the Advanced Updater. You can take a look on the Using the Updater article.
*execute AI install, and ensure that the existing user.config is copied to the appropriate directory
In order to copy a file you can use a file copy operation.
*uninstall the existing ClickOnce deployment, and launch the new program.
A major upgrade is essentially the removal of an older product which is replaced by a newer product. In Advanced Installer the upgrades can be configured from the Upgrades View. Also you can take a look on our How do I upgrade an older version of the package article which may be useful to you.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
matt123
Posts: 25
Joined: Mon Oct 28, 2013 7:36 pm

Re: Moving to AI from ClickOnce

Hi Dan,
Thanks for the response - I think we may be talking at cross-purposes.

We already have a product in the market, deployed using ClickOnce. Our question is how to go about making a smooth transition to AI, using the ClickOnce automatic updater to launch the AI installer, move existing config files over from the old ClickOnce installation, and uninstall the existing ClickOnce installation before continuing on with the AI install, which then updates using AI update technology.

Does that make sense?

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

Re: Moving to AI from ClickOnce

Hi Matt,

In order to achieve this here is what you have to do:

You need to configure your updater so it can download the new installation package which is build with Advanced Installer.

Now, you need to take care of the user.config file which you don't want to be deleted and also be available for the new installation package.

For this you can have a custom action that will make a copy of it in a temporary location.
After this custom action you can have another custom action that will uninstall the old installation package which is build with ClickOnce tool as it is described in the How do I upgrade an older version of the package. It can be added in the Wizard Dialogs Stage after the Searches stage.

After the installation process has started you can move your user.config file using a move file operation. This operation will move the user.config file from the temporary location to the new location of the installation package.

If you want to use the Advanced Updater functionality than the new installation package should bundle the Updater.

If you need any help, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”