Discussion:
[WiX-users] Problem durring major upgrade /qb or /qn
AleksL
2015-07-03 10:29:56 UTC
Permalink
Hello.


I have installed product with some absent features.

Upgrading of product in quiet mode fails, because installer is trying to
remove absent features:

MSI (s) (1C:0C) [01:26:37:625]: Feature: AnyFeature; Installed: Absent;
Request: *Absent*; Action: *Absent*


But upgrading with UI works fine:

MSI (s) (1C:4C) [01:26:40:110]: Feature: Monitor; Installed: Absent;
Request: *Null*; Action: *Null*

Why the behavior is so diferent and how can I fix that situation?



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Problem-durring-major-upgrade-qb-or-qn-tp7600784.html
Sent from the wix-users mailing list archive at Nabble.com.
Phil Wilson
2015-07-03 18:11:22 UTC
Permalink
If you have the entire log post it somewhere. There may be a custom
action or something else in the UI sequence that won't happen in the
execute sequence, just as possible reasons.
---------------
Phil Wilson
Post by AleksL
Hello.
I have installed product with some absent features.
Upgrading of product in quiet mode fails, because installer is trying to
MSI (s) (1C:0C) [01:26:37:625]: Feature: AnyFeature; Installed: Absent;
Request: *Absent*; Action: *Absent*
MSI (s) (1C:4C) [01:26:40:110]: Feature: Monitor; Installed: Absent;
Request: *Null*; Action: *Null*
Why the behavior is so diferent and how can I fix that situation?
--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Problem-durring-major-upgrade-qb-or-qn-tp7600784.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
AleksL
2015-07-06 08:14:23 UTC
Permalink
Hello, Phil.

Thank you for answer.

Here is the link to the source code and logs:

https://dropmefiles.com/3amOx

I have made simple minimal test project and same behavior occured.

In quiet mode:
MSI (s) (68:14) [00:37:40:531]: Feature: *Child1*; Installed: Absent;
Request: *Absent*; Action: *Absent*

In UI:
MSI (s) (68:1C) [00:35:11:300]: Feature: *Child1*; Installed: Absent;
Request: *Null*; Action: *Null*



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Problem-durring-major-upgrade-qb-or-qn-tp7600784p7600788.html
Sent from the wix-users mailing list archive at Nabble.com.
Phil Wilson
2015-07-06 20:38:33 UTC
Permalink
There appears to be something wrong with your test methodology. The
quiet log shows a run that finds an upgrade, but then you run the UI
install and that log says " Product registered: entering maintenance
mode" and "Skipping FindRelatedProducts action: not run in maintenance
mode", and "Skipping RemoveExistingProducts action: current
configuration is maintenance mode or an uninstall" so you seem to be
running the UI install with a ProductCode that is already installed on
the system.
AleksL
2015-07-07 08:54:33 UTC
Permalink
I don't think so.

I am testing on Virtual machine. First, I run test_setup_1, then do snapshot
and do major update on test_setup_2 in quiet mode.
After analyzing results I restore to the snapshot and do major update on
test_setup_2 with UI.

You wrote:
/but then you run the UI
install and that log says " Product registered: entering maintenance
mode"/

But this belongs to remove phase during major upgrade.
You can see any lines before
/MSI (s) (68:1C) [00:35:12:488]: Doing action: RemoveExistingProducts/






















--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Problem-durring-major-upgrade-qb-or-qn-tp7600784p7600808.html
Sent from the wix-users mailing list archive at Nabble.com.
Phil Wilson
2015-07-07 17:26:21 UTC
Permalink
Ah, sorry, I just got them the wrong way around. The UI log shows a
normal install. The Q log shows " Product registered: entering
maintenance mode" and "Skipping FindRelatedProducts action: not run in
maintenance mode" which means that the product defined by the Q log
ProductCode must already be installed.
---------------
Phil Wilson
Post by AleksL
I don't think so.
I am testing on Virtual machine. First, I run test_setup_1, then do snapshot
and do major update on test_setup_2 in quiet mode.
After analyzing results I restore to the snapshot and do major update on
test_setup_2 with UI.
/but then you run the UI
install and that log says " Product registered: entering maintenance
mode"/
But this belongs to remove phase during major upgrade.
You can see any lines before
/MSI (s) (68:1C) [00:35:12:488]: Doing action: RemoveExistingProducts/
--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Problem-durring-major-upgrade-qb-or-qn-tp7600784p7600808.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
AleksL
2015-07-07 19:40:28 UTC
Permalink
Hello, Phil. Thank you for answer.

But I don't clear understand.

/Q log shows " Product registered: entering
maintenance mode" and "Skipping FindRelatedProducts action: not run in
maintenance mode" which means that the product defined by the Q log
ProductCode must already be installed/

I think that those Q log lines shows time moment in remove phase during
major upgrade. In this time second product does not installed yet and first
product is removing. Isn't it?

I think the behavior shown in UI log seems to be right, in that case in
quiet mode seems to be wrong.
Is this my mistake or this is a bug in windows installer?






--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Problem-durring-major-upgrade-qb-or-qn-tp7600784p7600827.html
Sent from the wix-users mailing list archive at Nabble.com.
Phil Wilson
2015-07-07 20:30:58 UTC
Permalink
My apologies, I'm going too fast and not looking properly - I need to
look again.
---------------
Phil Wilson
Post by AleksL
Hello, Phil. Thank you for answer.
But I don't clear understand.
/Q log shows " Product registered: entering
maintenance mode" and "Skipping FindRelatedProducts action: not run in
maintenance mode" which means that the product defined by the Q log
ProductCode must already be installed/
I think that those Q log lines shows time moment in remove phase during
major upgrade. In this time second product does not installed yet and first
product is removing. Isn't it?
I think the behavior shown in UI log seems to be right, in that case in
quiet mode seems to be wrong.
Is this my mistake or this is a bug in windows installer?
--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Problem-durring-major-upgrade-qb-or-qn-tp7600784p7600827.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
AleksL
2015-07-08 12:19:52 UTC
Permalink
After a time of more careful researching of logs I understand that error
occured in the install phase of major upgrade (Before that I thought that
error in the remove phase).

This means that I may avoid that error by setting more complex conditions
for remove actions. For example
Instead for example of (&AnyFeature=2) use (&AnyFeature =2) AND (!AnyFeature
<>2)




--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Problem-durring-major-upgrade-qb-or-qn-tp7600784p7600837.html
Sent from the wix-users mailing list archive at Nabble.com.

Loading...