Abdulsalam Elsharif
Abdulsalam Elsharif

Reputation: 5111

Check for Online Update in WIX

I work on WIX installer, I want the auto-update system that ClickOnce provide. I upload the new version on server and the end client can check online to see if there is a newer version available.

Can WIX do this?

Thanks.

Upvotes: 2

Views: 2277

Answers (2)

Patrick Allwood
Patrick Allwood

Reputation: 1832

You need to write something yourself to check for updates and download the new installer. Once you have the new installer, WiX can handle upgrading the version installed on the end user machine. Typically people have a secondary executable embedded within the main program which is responsible for launching the downloaded installer, so that the main program can close during the update process.

In the past, I've handled checking for and downloading updates with NAppUpdate, which is easily extensible for however you want it to behave. I'm sure there are plenty of other open source alternatives to handle this as well.

Upvotes: 3

Arkady Sitnitsky
Arkady Sitnitsky

Reputation: 1886

Wix does not have the capability to do so.

You can read the diffrences between ClickOnce and Wix (Windows installer) from:

https://msdn.microsoft.com/en-us/library/ms973805.aspx

I think you can wrap MSI in ClickOnce and use both.

Also you have Squirrel (Like clickonce) that is based on PowerShell but may not work on all target machines.

Upvotes: 0

Related Questions