Hello,

 

I have a problem with file associations - can you tell me please what I
am doing wrong here:

 

<Component Id="component0" DiskId="1"
Guid="597C3CAE-C03D-48DA-AF29-6D3917CD88C1">

      <File Id="file0" Name="prgrm.exe" Vital="yes"
src="$(var.srcDir)prgrm.exe" />

</Component>

<Component Id="component0.3" DiskId="1"
Guid="751C4A6D-C365-4b21-8D6F-048969F3E72C">

      <Condition>ASSOCIATECSS=1</Condition>

      <File Id="cssicon" Name="aptcss.ico" Vital="yes"
LongName="prgrm_file_css.ico" src="Bitmaps\prgrm_file_css.ico" />

      <ProgId Id="prgrm.cssfile" Description="Cascading Style Sheet
Document" Icon="cssicon">

            <Extension Id="css" ContentType="application/css" >

                  <Verb Id="open" Command="Open" Target="[!file0]"
Sequence="10" Argument='"%1"' />

            </Extension>

      </ProgId>

      <Registry Id="prgrmAssoc.cssfile1" Action="write" Type="string"
Root="HKCR" Key=".css" Value="prgrm.cssfile" />

      <Registry Id="prgrmAssoc.cssfile2" Action="write" Type="string"
Root="HKCR" Key="prgrm.cssfile" Value="$(loc.AssociationsDlgAssocCss)"/>

      <Registry Id="prgrmAssoc.cssfile3" Action="write" Type="string"
Root="HKCR" Key="prgrm.cssfile\DefaultIcon"
Value="[INSTALLDIR]prgrm_file_css.ico"/>

</Component>

 

The file icon is not set and the association does not work...

 

My other question is about check boxes. How do I set the value of a
check box. The CheckBoxValue attribute does not work for me - no matter
what value I set it to, the check box is always checked.

 

<Control 

Id="CssCheckBox" 

Type="CheckBox" 

X="40" Y="120" 

Width="300" 

Height="17" 

CheckBoxValue="0" 

Property="ASSOCIATECSS" 

Text="$(loc.AssociationsDlgAssocCss) (*.css)"/>

 

 

Thank you

Val Melamed

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to