Note that there are some explanatory texts on larger screens.

plurals
  1. POIIS website physical path becomes blank on wix uninstall
    primarykey
    data
    text
    <p>Background: I have a Wix installer where a virtual directory gets created in an existing IIS website. The virtual directory is created (it doesn't exist before the install) but the IIS website should already be created (user just picks a website to install to in a ListBox).</p> <p>The problem: On uninstall, the Physical Path of the IIS website that got installed to becomes blank, no value for that attribute. Below is a pared down version of my main wix file. I'm not sure why the uninstall is affecting the IIS website, but any thoughts are appreciated.</p> <p>Notes: I'm on Wix 3.5 and Windows Server 2008 R2, IIS 7.</p> <pre><code>&lt;Product&gt; &lt;Property Id='WEBSITE_DESCRIPTION'&gt; &lt;RegistrySearch Id='RememberPropertyWEBSITE_DESCRIPTION' Root='HKCU' Key='SOFTWARE\Company\Product' Name='InstalledWebsiteDescription' Type='raw' /&gt; &lt;/Property&gt; &lt;Property Id='WEBSITE_PORT'&gt; &lt;RegistrySearch Id='RememberPropertyWEBSITE_PORT' Root='HKCU' Key='SOFTWARE\Company\Product' Name='InstalledWebsitePort' Type='raw' /&gt; &lt;/Property&gt; &lt;Component Id='PropertiesToSave' Directory='ApplicationFolder'&gt; &lt;RegistryValue Root='HKCU' Key='SOFTWARE\Company\Product' Name='InstalledWebsiteDescription' Value='[WEBSITE_DESCRIPTION]' Type='string' /&gt; &lt;RegistryValue Root='HKCU' Key='SOFTWARE\Company\Product' Name='InstalledWebsitePort' Value='[WEBSITE_PORT]' Type='string' /&gt; &lt;RemoveFolder Id='CleanupApplicationFolder' On='uninstall' /&gt; &lt;/Component&gt; &lt;Directory Id='TARGETDIR' Name='SourceDir'&gt; &lt;Component Id='TestWebVirtualDirComponent' Guid='12345678-6304-410E-A808-E3585379EADB'&gt; &lt;CreateFolder /&gt; &lt;iis:WebVirtualDir Id='TestWebVirtualDir' Alias='[WEBSITE_VIRTUALDIR]' Directory='TARGETDIR' WebSite='MyWebsite'&gt; &lt;iis:WebApplication Id='TestWebApplication' Name='Test' /&gt; &lt;/iis:WebVirtualDir&gt; &lt;/Component&gt; &lt;/Directory&gt; &lt;iis:WebSite Id="MyWebsite" Description="[WEBSITE_DESCRIPTION]" SiteId="*"&gt; &lt;iis:WebAddress Id="AllUnassigned" Port="[WEBSITE_PORT]" /&gt; &lt;/iis:WebSite&gt; &lt;Feature&gt; &lt;ComponentRef Id='TestWebVirtualDirComponent'/&gt; &lt;ComponentRef Id='PropertiesToSave'/&gt; &lt;/Feature&gt; &lt;/Product&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload