[wix-users] Update version number not via MSI / uninstall same-upgrade-code MSI when uninstalling

Alon Dean alondean at gmail.com
Sun Oct 3 08:54:08 PDT 2021


Thank you! I was able to create a POC which updates the version number via
a patch

On Sun, Oct 3, 2021 at 1:26 PM Nir Bar via wix-users <
wix-users at lists.wixtoolset.org> wrote:

> The best-practice solution would be to use a patch package (.msp) for the
> hotfix instead of the custom mechanism you're using
>
> The patch package includes only changed and added files, so it is small in
> size
>
> Additionally, it updates the version number to the new one without needing
> to hide and add any entry
>
> See https://docs.microsoft.com/en-us/windows/win32/msi/patch-packages
>
>
>
> --
>
> Nir Bar
>
> WiX Expert
>
>
>
>
>
> ---- On Sun, 03 Oct 2021 11:33:40 +0300 Alon Dean via wix-users <
> wix-users at lists.wixtoolset.org> wrote ----
>
>
> Hi,
> I know the title may be confusing, so let me explain what I'm trying to
> accomplish:
> (At my work) I created a hybrid MSI - It does *some* of the installation
> operations, and the rest of the operations are being performed by custom
> actions.
> This was done as part of my task of embedding a software-update mechanism
> to our application (using squirrel.windows)
>
> The problem is that when an update occurs, it doesn't involve the MSI in
> any way - so the client gets a new version (not via MSI), and the MSI
> doesn't reflect that in the version number at the control panel (from the
> registry)
> So I need to find a solution for that...
>
> I've seen this SO question and the answers to it:
>
> https://stackoverflow.com/questions/28195435/update-installed-msi-version-from-exe
>
> I don't want to hack the registry for that, what I would like to do is:
>
> Create another small MSI, with a version number that will be changed
> according to the update's version number.
> Once an update is installed, this MSI will also be installed, adding an
> entry to the control panel with the *correct* version number.
> Then, I'll need to hide the 'main' MSI from the control panel.
>
> My problem is: how to make the new, small MSI uninstall the 'main' MSI
> once
> uninstalling?
> I know this is related to the upgrade code but not sure how to accomplish
> it.
>
> And overall, would you say, given the assumption that my updates'
> framework
> doesn't involve the MSI, that I'm taking the right approach?
>
> Any help would be much appreciated
> Thanks!
> Alon
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>



More information about the wix-users mailing list