Dear fellows,

 

The below wix code works successfully during the installation process:

 

<Directory Id="INSTALLLOCATION" Name=".">

 

<Component Id="MyWebSite_IISConfigure" Transitive="yes" Permanent="yes" 

                       Guid="{.}" KeyPath="yes">

<iis:WebSite ...>

...

<iis:WebAddress Id="MYSite_Bindings" IP="[WEBSITEIP]" Port="[WEBSITEPORT]"/>

</iis:WebSite>

<Condition><![CDATA[WEBSITETYPE = 0 AND CHKNEWWEBSITE = 1]]></Condition>

</Component>

 

<Component Id="SecureWebSite_IISConfigure" Transitive="yes" Permanent="yes" 

                       Guid="{.}" KeyPath="yes">

<iis:WebSite ...>

...

<iis:WebAddress Id="SecureSite_Bindings" Secure="yes" IP="[WEBSITEIP]"
Port="[WEBSITEPORT]"/>

<iis:CertificateRef Id="MyCertificate"/>

</iis:WebSite>

<Condition><![CDATA[WEBSITETYPE = 1 AND CHKNEWWEBSITE = 1]]></Condition>

</Component>

 

</Directory>

 

The transitive attribute has been set in order to evaluate the condition
during Reinstall (Repair). Nevertheless, during repair, the component would
not be installed even though the condition is true. In case I chose to
create a secure website during installation (WEBSITETYPE = 1) then only
secure websites can be created during Reinstallation. As such, when I chose
to create http websites (WEBSITETYPE = 0), only http websites can be created
during Reinstallation.

 

The components conditions are not evaluated correctly during a
Repair/Reinstall.

 

Thank you in advance.

Best Regards,

Houssam Hamdan

 

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to