[wix-users] installation procedure
abi.navigator at gmail.com
Sun Aug 19 00:50:07 PDT 2018
Now I'm able to detect if there is a previous installation inside selected
installation directory, via custom action, implemented as a C++ dll.
Practically custom action just searches for a specific file and if it's
found, then there is a previous installation and uninstall action should
Next step is to uninstall installation found inside a specific directory.
As far as I can see this can only be done by adding product code to the
ActionProperty column (Upgrade table).
Now I have no idea how to get the product code for the installation already
presented inside the selected installation directory.
Any help is welcome, thanks.
On Tue, 24 Oct 2017 at 22:04, Blair Murri <osito at live.com> wrote:
> RemoveExistingProducts removes the products who's ProductCodes are found
> in the union of all properties found in the rows of the Upgrade table not
> marked “detect only”. The property values are semicolon-delimited lists. If
> you add ProductCodes to the list, they will also be removed. If, OTOH, you
> remove ProductCodes from the list, they will be ignored.
> Sent from my Windows 10 phone
> *From: *abi navigator via wix-users <wix-users at lists.wixtoolset.org>
> *Sent: *Tuesday, October 24, 2017 2:12 AM
> *To: *WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> *Cc: *abi navigator <abi.navigator at gmail.com>
> *Subject: *Re: [wix-users] installation procedure
> What about the uninstalling? What I want to achieve is that only version
> that resides in the same directory is
> uninstalled and all other versions are preserved (side by side
> installation support). As far as I can see RemoveExistingProducts
> uninstalls all versions
> and there is no option to uninstall specific one. Is there any other
> possibility how to do it?
> For each product Product/@Id is auto generated, UpgradeCode guid is a
> constant and version is modified.
> Thanks for support.
> On Tue, Oct 24, 2017 at 12:09 AM, Joseph L. Casale via wix-users <
> wix-users at lists.wixtoolset.org> wrote:
> > -----Original Message-----
> > From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org
> <wix-users-bounces at lists.wixtoolset.org>] On Behalf
> > Of abi navigator via wix-users
> > Sent: Monday, October 23, 2017 3:49 PM
> > To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> > Cc: abi navigator <abi.navigator at gmail.com>
> > Subject: Re: [wix-users] installation procedure
> > > I've tried to detect if selected installation directory already has a
> > > specific file (from previous installation) and then use
> > > RemoveExistingProducts
> > > action.
> > > Here is my code snippet:
> > > ...
> > > <Property Id = "FILE_EXISTS">
> > > <DirectorySearch Id="MyInstallationFolder" Path="[INSTALL_FOLDER]">
> > > <FileSearch Name="MyApp.exe"/>
> > > </DirectorySearch>
> > > </Property>
> > > ...
> > > where INSTALL_FOLDER is an installation folder, selected by the user.
> > > But it seems that Property is evaluated even before installation folder
> > is
> > > known.
> > > So how can the property be evaluated before/after InstallInit?
> > https://stackoverflow.com/questions/7354619/wix-how-to-
> > do-a-directorysearch-in-a-custom-installation-location
> > ____________________________________________________________________
> > WiX Toolset Users Mailing List provided by FireGiant
> > http://www.firegiant.com/
> WiX Toolset Users Mailing List provided by FireGiant
More information about the wix-users