Self updating application install with WIX?

后端 未结 3 838
心在旅途
心在旅途 2021-02-01 05:41

I am writing an application that needs to be installed on a large number of desktops and also needs to update itself. We are looking at WIX for creating the installation. I ha

3条回答
  •  醉梦人生
    2021-02-01 06:17

    Just how "auto"-update does it have to be? :-)

    We use WiX (2.0) for an app that needs to be installed over and over again. As long as you go with "major upgrades" from version to version, that works just fine - you can uninstall the old version and then re-install the new one - no major problems here.

    The key is to have a stable "UpgradeCode" (a GUID in your WiX) that never changes - it's the key for your app - and to have a new ProductCode for every release.

    Then, in your wxs file, you need two bits:

    
        
    
    
    
      
    
    

    That should do it!

    Other than that - nothing really much to say - it just works :-)

提交回复
热议问题