Hello, I have created a simple WebSite installation by using WiX. This is my WXS-file.
<?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension"> <Product Id="caf30021-1370-494f-b1ae-071885dadbec" Name="IIsInstallProblem" Language="1033" Version="1.0.0.0" Manufacturer="IIsInstallProblem" UpgradeCode="3a0a9c06-2410-40aa-98dd-c6fe38873beb"> <Package InstallerVersion="200" Compressed="yes" /> <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" /> <?define IIsWebVirtualDir_InstallGuid="b7bf6b3b-430f-456e-a5ab-c0881bf11bd4"?> <?define IIsWebVirtualDir_RemoveGuid="ffe64f77-d163-4508-96d5-6e07caade061"?> <!-- Find path wwwroot --> <Property Id="PATHWWWROOT"> <RegistrySearch Id="Search" Root="HKLM" Key="Software\Microsoft\InetStp" Name="PathWWWRoot" Type="raw" /> </Property> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="PATHWWWROOT"> <Directory Id="INSTALLDIR" Name="webclient"> <Component Id="Component_IIsWebVirtualDir" Guid="$(var.IIsWebVirtualDir_InstallGuid)"> <iis:WebVirtualDir Id="IIsWebVirtualDir_webclient" Alias="webclient" Directory="INSTALLDIR" WebSite="DefaultWebSite" > <iis:WebApplication Id="appwebclient" Name="Web Client" Isolation="medium"/> <iis:WebDirProperties Id="IIsWebDirProperties_webclient" DefaultDocuments="TextFile1.txt" Read="yes" Script="yes" /> </iis:WebVirtualDir> <File Id="TextFile1" Source="TextFile1.txt" /> </Component> <Component Id="Remove_IIsWebVirtualDir" Guid="$(var.IIsWebVirtualDir_RemoveGuid)"> <RemoveFolder Id="IIsWebVirtualDir" On="uninstall" /> </Component> </Directory> </Directory> </Directory> <iis:WebSite Id="DefaultWebSite" Description="Default Web Site"> <iis:WebAddress Id="AllUnassigned" Port="80"/> </iis:WebSite> <Feature Id="ProductFeature" Title="IIsInstallProblem" Level="1"> <ComponentRef Id="Component_IIsWebVirtualDir" /> <ComponentRef Id="Remove_IIsWebVirtualDir" /> </Feature> </Product> </Wix> The result of compilation is IIsInstallProblem.msi. Installation and uninstallation works fine. At a next step I added the following lines to my IIsInstallProblem.wixproj: <Target Name="AfterBuild"> <Exec Command="copy "$(WixExtDir)setup.exe" "$(TargetDir)" /Y" ContinueOnError="false"/> <Exec Command=""$(WixExtDir)setupbld.exe" -out "$(TargetDir)IIsInstallProblem.exe" -msu "$(TargetDir)IIsInstallProblem.msi" -setup "$(TargetDir)setup.exe"" ContinueOnError="false"/> </Target> The MSI-file has been wrapped to IIsInstallProblem.exe. The installation with these EXE-file works fine but on uninstall via Software I got the following message: "The feature you are trying to use is on a network resource that is unavailable. Click OK to try again, or enter an alternate path to a folder containing the installation package 'IIsInstallerProblem.msi' in the box below." If I click the Cancel(!) button the uninstall goes on without any other problems. If I uncomment all "iis:..." declarations in my WXS-file (for testing) and wrap the MSI-file into an EXE-file everything works fine (only the WebSite is not configured naturally). So I think the behavior has something to do with IIS extensions or maybe the setup.exe-stub of the WiX-bin-folder? Can anyone help me to avoid the strange message? Additional information: Windows XP SP3 WiX: 3.0.4909.0 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users