I need to check some conditions before I let my project be uninstalled.
(It's a framework that may be used by one or several other projects that are
installed seperately).
My WIX-Project is adopted from MONDO.
So I thought it might be a good idea to have a condition that checks
- the "Installed" value
- the "REMOVE" value
- the status of my subprojects, i.e. a registry value that my projects set
and remove on uninstall.
SO my code looks like this:
<Property Id='PROJECTS_EXIST'>
<RegistrySearch Id='MODULES_IN_REGISTRY' Type='raw'
Root='HKLM' Key='Software\MYCIE\My Framework\Global'
Name='Project' />
</Property>
<Condition Message='Please uninstall all pending Projects for
"my
Framework".'>
(NOT Installed) OR (REMOVE <> ALL) OR (NOT
REMOVE) OR (NOT
PROJECTS_EXIST)
</Condition>
Now my Project shows the message and cancels when I doubleclick on my
msi-file; but does not if I start msiexec /x myproject.msi, not either if
started via Control Panel / Software / Remove.
(It's also a bit annoying that the maintenance dialog is canceled before the
user can choose if she wants to uninstall or rather change the
project):thinking:
Why's that? And how can I get WIX to not uninstall my project if certain
conditions apply?
Thanks for any help!
Georg
--
View this message in context:
http://n2.nabble.com/condition-for-uninstall-tp2208896p2208896.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users