MSI/WiX doesn't handle this very well natively. LaunchConditions really only
describe conditions that must evaluate for an Install to `Launch`. What you
are describing is what I've come to call `Feature Constraints`. You could use
the Condition table to hide features that aren't installable if AppSearch
doesn't find the registry key but what I prefer to do is replace the
LaunchConditions standard action with a custom pattern capable of displaying
warning messages. The warning should be data driven from a table and tell the
user that because xxx isn't installed features yyy and zzz won't be available
to install. Then use the Condition table to set those features to not
install. Finally, if using a Custom Setup dialog, wire up a CA that reads
another custom table to validate that the features selected can be installed.
If the user tries to turn the features on anyways throw up a error and remind
them that they can't do it.
[EMAIL PROTECTED] wrote:
I am doing a registry search to ensure that a certain key is present
before progressing with the installation. However this key is only required for
1 of my 3 features.
Therefore if feature X is selected then my install should only progress if
the registry key is present, for example
<!-- search for registry key -->
<Property Id="REGKEY" Value="UNDEFINED">
<RegistrySearch Id='RegkeySearch' Type='raw' Root='HKLM'
Key='Software\.......' Name='RegKey' />
</Property>
<Condition Message='REGKEY Must be present if Feature X Selected.'>
<![CDATA[REGKEY <> "UNDEFINED" AND <<<FEATURE X IS SELECTED>>>]]>
</Condition>
It sounds like it should be possible but I don't know how to represent the
<<<FEATURE X IS SELECTED>>> bit.
I am selecting features by passing them to MSIExec using the ADDLOCAL param
i.e ADDLOCAL=X
Any help greatly appreciated as always.
.
--------------------------------------------------------------------------------------------------------------------
HBOS plc, Registered in Scotland No. SC218813. Registered Office: The
Mound, Edinburgh EH1 1YZ. HBOS plc is a holding company, subsidiaries of which
are authorised and regulated by the Financial Services Authority.
==============================================================================
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
---------------------------------
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news,
photos & more. -------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users