SSteefel
Posts: 3
Joined: 2015-04-16
|
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?? |
|
Andrei Smolin
Add-in Express team
Posts: 18214
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?
Regards from Belarus (GMT+3),
Andrei Smolin
Add-in Express Team Leader |
|
SSteefel
Posts: 3
Joined: 2015-04-16
|
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. |
|
Dmitry Kostochko
Add-in Express team
Posts: 2880
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. |
|