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

Reply via email to