If Product/@Id was not changing you were not major upgrading your packages.

_______________________________________________________________
 FireGiant  |  Dedicated support for the WiX toolset  |  
http://www.firegiant.com/

-----Original Message-----
From: Carl Pettersson [mailto:carl.petters...@tobii.com] 
Sent: Tuesday, August 12, 2014 9:34 AM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Package detected as absent if previously updated

Hm, I noticed I there were warnings when compiling the msi file, the 
Product/@Id was not set to "*", and the Package/@Id was set. When I set product 
id to "*" and removed package id, this behaviour seems to go away. 
Could this be the actual cause, or is this an unrelated "bad thing", and it 
just started mysteriously working anyway? 

Best regards,
Carl

-----Original Message-----
From: Carl Pettersson [mailto:carl.petters...@tobii.com] 
Sent: den 12 augusti 2014 18:04
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Package detected as absent if previously updated

Hi,
What I mean is that I have a newer version of the bundle, which installs the 
new version and removes the old version. Does that answer the question? 
It seems DetectRelatedPackage does not fire, and neither does 
DetectRelatedBundle (The log covered the entire detect phase). I'll do some 
more tests and see if that could be related.

Best regards,
Carl

-----Original Message-----
From: Rob Mensching [mailto:r...@firegiant.com] 
Sent: den 12 augusti 2014 16:47
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Package detected as absent if previously updated

Something doesn't compute there. Can you be a bit more specific about what 
upgrade in step 2 means? Also, does OnDetectRelatedPackage provide useful info?

_______________________________________________________________
 FireGiant  |  Dedicated support for the WiX toolset  |  
http://www.firegiant.com/

-----Original Message-----
From: Carl Pettersson [mailto:carl.petters...@tobii.com] 
Sent: Tuesday, August 12, 2014 6:13 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Package detected as absent if previously updated

Hi!
I'm developing a managed bootstrapper application, and have run into a peculiar 
problem. I'm testing the following scenario for a simple single-package bundle:
* Install version 1.0
* Upgrade to version 1.1
* Run the version 1.1 installer again
When doing this, the package is detected as absent in the third step, which 
confuses my MBA. If I skip the upgrade and instead just install 1.1 from 
scratch and then run the installer again, the package is detected as present. 
What could cause this?
The requirement I have is that running the installer for a version which is 
already installed should present the user with an uninstall option. But if an 
upgrade has taken place, I can't get it to work.

I have an event logger which shows this during the detect phase:

[062C:066C][2014-08-12T15:02:30]i100: Detect begin, 1 packages
[062C:066C][2014-08-12T15:02:30]i000: Intercepted DetectBegin event. Parameters:
                                Installed = True
                                PackageCount = 1
                                Result = None
[062C:066C][2014-08-12T15:02:30]i000: Intercepted DetectPackageBegin event. 
Parameters:
                                PackageId = TheProduct.msi
                                Result = None
[062C:066C][2014-08-12T15:02:30]i000: Intercepted DetectPackageComplete event. 
Parameters:
                                PackageId = TheProduct.msi
                                State = Absent
                                Status = 0
[062C:066C][2014-08-12T15:02:30]i101: Detected package: TheProduct.msi, state: 
Absent, cached: Complete
[062C:066C][2014-08-12T15:02:30]i000: Intercepted DetectComplete event. 
Parameters:
                                Status = 0

So I see that it is installed, but the package is absent...

Thankful for any insights!

Best regards,
Carl
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to