The product id and package id are:
<Product Id="9F6D788B-7A58-4750-BFEF-169FF18EE1C6"... >
<Package Id="????????-????-????-????-????????????" .../>
Since the package id is all '?' I assume that you mean I need to change the
product id?
Kevin Burton
Senior Software Engineer
BUYSEASONS
262-901-2000 Office
262-901-2312 Fax
[email protected]
-----Original Message-----
From: Wilson, Phil [mailto:[email protected]]
Sent: Friday, February 25, 2011 12:28 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Uninstall an installed product.
Your new MSI has a new ProductCode? From that message it looks like it hasn't.
Another possibility is that the PackageCode hasn't changed.
Phil Wilson
-----Original Message-----
From: Kevin Burton [mailto:[email protected]]
Sent: Friday, February 25, 2011 9:28 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Uninstall an installed product.
Right now it is not automatically uninstalling the product. I am met with the
dialog instructing me to go to Add/Remove Panel.
Currently I am using an earlier version of WiX so I guess I am reading the
right stuff in the tutorial. I am looking to try to migrate my WiX code to WiX
3.5 so I would also be interested in learning how this is done with the newer
version.
Kevin Burton
Senior Software Engineer
BUYSEASONS
262-901-2000 Office
262-901-2312 Fax
[email protected]
-----Original Message-----
From: Chris Lord [mailto:[email protected]]
Sent: Friday, February 25, 2011 11:21 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Uninstall an installed product.
Kevin,
Lesson 4 is/was based on Wix V3. Rob's reply refers to an addition to
Wix3.5 though I would expect lesson 4 code probably still applies in V3.5.
Depending on which version of WiX you use will determine what options you have
for writing upgrades.
Now, the key is where you place the RemoveExistingProducts function as this
directly affects exactly what happens. If you schedule it early in the
sequence then any existing product is uninstalled in its entirety before your
new version is installed.
If, as you have, schedule it late in the sequence then basically what will
happen is that the initial install will remain with only files that have
changed being affected/changed/removed.
A quick search for RemoveExistingProducts should you the location to schedule
it early or late (I don't remember the location off the top of my head). Note,
there are advantages and disadvantages of using it either way so you may also
want to look into that and decide which suits you best.
If you are having specific issues with upgrading, can you be more specific
about what is, or isn't working? Creating a verbose log when you run the
installer may also help you diagnose what's happening.
Chris
On 02/25/2011 11:05 AM, Kevin Burton wrote:
> What is the syntactic sugar? I thought I was following
>
> http://www.tramontana.co.hu/wix/lesson4.php#4.2
>
>
> So the question is why doesn't this work (what am I missing)? And, is there a
> better way?
>
> For reference here is the WiX code that I am using:
>
> <Property Id="PREVIOUSVERSIONSINSTALLED" Secure="yes" />
> <Upgrade Id='529189FE-FD0E-44ff-8DA6-B4FB5CC7A78B'>
> <UpgradeVersion Minimum="1.0.0.0" Maximum="3.0.0.0" OnlyDetect='no'
> Property="PREVIOUSVERSIONSINSTALLED" IncludeMinimum="yes" IncludeMaximum="no"
> />
> </Upgrade>
> . . . . .
> <InstallExecuteSequence>
> <RemoveExistingProducts
> After="InstallFinalize"></RemoveExistingProducts>
> </InstallExecuteSequence>
>
> Kevin Burton
> Senior Software Engineer
> BUYSEASONS
> 262-901-2000 Office
> 262-901-2312 Fax
> [email protected]
>
> -----Original Message-----
> From: Rob Mensching [mailto:[email protected]]
> Sent: Thursday, February 24, 2011 10:34 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Uninstall an installed product.
>
> In WiX v3.5, MajorUpgrade element provides nice "syntactic sugar".
> Otherwise, you want to look at the Upgrade element.
>
> On Thu, Feb 24, 2011 at 10:22 AM, Kevin Burton<[email protected]>wrote:
>
>> I know this is an old question but I don't know the WiX syntax for
>> automatically uninstalling an installed product. I looked at the
>> documentation and I got confused with Major/Minor updates/upgrades.
>> In my case if the product is install I *always* want to uninstall it
>> before proceeding with the installation. Any hints?
>>
>> Kevin Burton
>> Senior Software Engineer
>> BUYSEASONS
>> 262-901-2000 Office
>> 262-901-2312 Fax
>> [email protected]
>>
>
> ----------------------------------------------------------------------
> -------- Free Software Download: Index, Search& Analyze Logs and
> other IT data in Real-Time with Splunk. Collect, index and harness all
> the fast moving IT data generated by your applications, servers and
> devices whether physical, virtual or in the cloud. Deliver compliance
> at lower cost and gain new business insights.
> http://p.sf.net/sfu/splunk-dev2dev
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
*** Confidentiality Notice: This e-mail, including any associated or attached
files, is intended solely for the individual or entity to which it is
addressed. This e-mail is confidential and may well also be legally privileged.
If you have received it in error, you are on notice of its status. Please
notify the sender immediately by reply e-mail and then delete this message from
your system. Please do not copy it or use it for any purposes, or disclose its
contents to any other person. This email comes from a division of the Invensys
Group, owned by Invensys plc, which is a company registered in England and
Wales with its registered office at 3rd Floor, 40 Grosvenor Place, London, SW1X
7AW (Registered number 166023). For a list of European legal entities within
the Invensys Group, please go to
http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77.
You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail
[email protected]. This e-mail and any attachments thereto may be subject
to the terms of any agreements between Invensys (and/or its subsidiaries and
affiliates) and the recipient (and/or its subsidiaries and affiliates).
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users