Custom Action for WiX gets wrong website

Add-in Express™ Support Service
That's what is more important than anything else

Custom Action for WiX gets wrong website
Building a MSI for websites  
SSteefel


Guest


When building a MSI package for a website and deploying to a server that has multiple sites, the Custom Action SetTARGETSITE only selects the Default Website.

How do I get this to select the specified website that I want to target??
Posted 29 Jan, 2016 15:01:15 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello,

Could you please explain? I assume you created a n installer and used the Installation Address dialog in it. My question is: do you see other web sites in that dialog? Or your problem is: whatever web site you select, the installer installs everything to the default web site?


Andrei Smolin
Add-in Express Team Leader
Posted 01 Feb, 2016 06:07:05 Top
SSteefel


Guest


Andrei Smolin writes:
Custom Action for WiX gets wrong website


No we are not attempting to use the dialog select - we want to be able to deploy with a known site name and have the MSI install with no user/administrator prompts.
Posted 01 Feb, 2016 11:22:25 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Sean,

Thank you for the explanation. In this case you need to directly specify the TARGETDIR, TARGETSITE, TARGETPORT and probably TARGETIP properties:


    <!--
    <CustomAction Id="DIRCA_TARGETDIR" Property="TARGETDIR" Value="[IISROOT]\[TARGETVDIR]" Execute="firstSequence" />
    -->
    <CustomAction Id="DIRCA_TARGETDIR" Property="TARGETDIR" Value="C:\inetpub\wwwroot\[TARGETVDIR]" Execute="firstSequence" />

    <Property Id="TARGETSITE" Value="test1" />

    <!-- 
    <Property Id="TARGETPORT" Value="80" />
    -->
    <Property Id="TARGETPORT" Value="8081" />

    <Property Id="TARGETIP" Value="*" />


Please try this approach and let me know about the results.
Posted 02 Feb, 2016 10:05:15 Top