[wix-users] How WixTools manage the upgrades?

Hoover, Jacob Jacob.Hoover at greenheck.com
Mon Aug 17 09:53:10 PDT 2020


That would be a question for the jpackage developers/users, not WIX.

From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Davide Perini via wix-users
Sent: Monday, August 17, 2020 11:36 AM
To: Edwin Castro <egcastr at gmail.com>; WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Davide Perini <perini.davide at dpsoftware.org>
Subject: Re: [wix-users] How WixTools manage the upgrades?

I like the "uninstall the old and install the new" but how can I create
an exe file that does this with JPackage?
I am creating the exe with this command:

jpackage -i ../target --main-class org.duff.JavaFXStarter --main-jar
duff-jar-with-dependencies.jar --icon ../data/img/duff.ico --win-menu
--win-menu-group duff --copyright "duff" --name "myname" --vendor
myvendor --win-dir-chooser --win-shortcut --win-per-user-install

How can I tell to "uninstall and install"?

Thanks,
Davide

Il 17/08/2020 16.57, Edwin Castro ha scritto:
> Do you mean WiX Toolset when you say WixTools? If yes, then you are
> probably really asking how does the Windows Installer support
> upgrades? The WiX Toolset is a collection of tools for authoring
> Windows Installer packages.
>
> https://docs.microsoft.com/en-us/windows/win32/msi/patching-and-upgrades<https://docs.microsoft.com/en-us/windows/win32/msi/patching-and-upgrades>
>
> You'll see the answer is "it depends on how you author your MSI
> package". I understand that answer isn't very satisfying but it is a
> correct answer.
>
> I author my MSI packages to "uninstall the old version and install the
> new version" by using a Major Upgrade and schedule
> RemoveExistingProducts early.
>
> --
> Edwin G. Castro
>
> On Sun, Aug 16, 2020, 16:10 Davide Perini via wix-users
> <wix-users at lists.wixtoolset.org
<mailto:wix-users at lists.wixtoolset.org%20%0b>> <mailto:wix-users at lists.wixtoolset.org>> wrote:
>
> As title.
> How WixTools manage the upgrades?
>
> Suppose that I have a version 1.0 installed,
> what happen if I install version 1.1 on it?
>
> DOes it uninstall the old version and reinstall the new one?
>
> Thanks
> Davide
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/<http://www.firegiant.com>
>


____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/<http://www.firegiant.com/>
NOTE: This email was received from an external source. Please use caution when opening links or attachments in the message.



More information about the wix-users mailing list