Why WIX MSI for ASP.NET is installing website in "C:\Program Files" folder instead of "c:\inetput\wwwroot"? #9068
Replies: 1 comment 6 replies
-
You might also read about |
Beta Was this translation helpful? Give feedback.
-
You might also read about |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Wix installer MSI is installing files in folder: "C:\Program Files\MyManufacture MyWebsiteName" and creating empty folder: "C:\inetpub\wwwroot\testwebsite". Visual Studio 2022, WIX version is 5.0.2. Here is Package.wxs:
`
< Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"
xmlns:iis="http://wixtoolset.org/schemas/v4/wxs/iis">
<Package InstallerVersion="200" Compressed="yes"
Manufacturer="MyManufacture" Version="1.0.1.0"
Name="MyWebsiteName" UpgradeCode="GUID4C5B-B0C3-43FD-82A2-9F347D66CC7B">
<MajorUpgrade DowngradeErrorMessage="Downgrade Error" />
<MediaTemplate EmbedCab="yes" />
<StandardDirectory Id="TARGETDIR" >
<Directory Id="INETPUB" Name="Inetpub">
<Directory Id="WWWROOT" Name="wwwroot">
<Directory Id="INSTALLDIR" Name="testwebsite"/>
</Directory>
</Directory>
</StandardDirectory>
If I add a Directory to ComponentGroup:
<ComponentGroup Id="MyFiles" Directory="INSTALLDIR">
then there are a lot of error for all files like this one:
The component 'flsgddXcR6nNmV92KPFD8bN4scNbFI' has a key file with path TARGETDIR\inetpub\wwwroot\testwebsite\appsettings.development.json'. Since this path is not rooted in one of the standard directories (like ProgramFilesFolder), this component does not fit the criteria for having an automatically generated guid. (This error may also occur if a path contains a likely standard directory such as nesting a directory with name "Common Files" under ProgramFilesFolder.)
Why website is installed in "C:\Program Files\MyManufacture MyWebsiteName" folder instead of folder "c:\inetput\wwwroot\testwebsite"?
Open Source Maintenance Fee
wixtoolset
project because I support the maintainers.Beta Was this translation helpful? Give feedback.
All reactions