Hi,
this seemed like a simple problem to me, however even after searching for a
long time I could not find a solution to the following problem:
In a dialog I want to change the state of a CheckBox depending on whether a
certain component (in this case a file association) is already installed.
<Control Id="FileAssociation" Type="CheckBox"
Property="FILE_ASSOCIATION_ODT" CheckBoxValue="1" X="45" Y="110" Height="15"
Width="200" Default="no" Text="OpenDocument Text Documents (.odt)" />
<Component Id="FileAssociationOdt"
Guid="1F338E6D-3B94-4c5b-864C-D97D26A55437" DiskId="1">
<Condition><![CDATA[ FILE_ASSOCIATION_ODT
]]></Condition>
<ProgId Id='openDocument.WriterDocument.1'
Description='OpenDocument Text'>
<Extension Id='odt'
ContentType='application/vnd.oasis.opendocument.text'>
<Verb Id='open'
Command='Open' Target='[#MyApp.exe]' Argument='"%1"' />
</Extension>
</ProgId>
</Component>
As I understood, the CheckBox state depends on the value of the property
FILE_ASSOCIATION. If it is 1, the box is checked, if not, the box will be
unchecked?
How can I set this property? I already tried to access the value of
?FileAssociationOdt as described in
http://msdn.microsoft.com/en-us/library/aa368012(VS.85).aspx but no success.
Any example or pointers to documentation are welcome, Thanks a lot,
divo
--
View this message in context:
http://n2.nabble.com/How-to-set-CheckBox-depending-on-installed-component--tp1117644p1117644.html
Sent from the wix-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users