Update WIx Installer

Hello,

we are currently evaluating WyBuild.

We build WIX-installers for our applications. To keep all software versions Installers and Uninstaller up to date we thought about distributing the whole setup as content of the updates.Is there a tutorial that show how to achieve this?The problem I am currently thinking about is what to build first.I need to include the current wyUpdate.exe and the client.wyc into my installer.But as the installer should be included into the update I have to add it to the update before?

Thanks!

Is there a tutorial that show how to achieve this?

Yes: Walkthrough for your first time using wyBuild

I need to include the current wyUpdate.exe and the client.wyc into my installer.

Yes.

But as the installer should be included into the update I have to add it to the update before?

You can build wyUpdate first. The version number is embedded in the client.wyc, not the file list or anything else.

Thanks, this way it works.Now I have another problem. During the update our WIX-Installer is copied to the temp directory.The the installer is configured to run after the update is complete.But since the wyUpdate.exe and the client.wyc are contained in the installer the installer gets an conflict as theupdate.exe is runing during the setup.If I configure the update not to wait for the installer the installer starts, then the application starts and then I get an conflict since the application is running during the setup process.

Any hints how to resolve the conflicts? Is it possible to avoid the start of the application after the update?

Have wyUpdate not wait for the installer to finish executing. Another option is to just use wyBuild as designed rather than as a delivering method for an installer. Either way will solve your problem.

If wyUpdate does not wait for the installer it is possible that the user cancles the setup.Then we have the problem, that the latest versions of wyUpdate and client.wyc are installed indicating that the latest version of the software is installed but the software has an older version.

So we have to replace the files with the update and manipulate the version infos of the installer in the registry.

Well, again, your options are:

  1. Use wyBuild with the real files of your app. Let wyBuild handle the patching. It's designed to do this and it's very good at it.
  2. Or, modify your installer to "revert" the client.wyc if the user cancels the installer.