Open EvgenPervenenko opened 3 months ago
You appear to be installing files into the executing users roaming profile (AppDataFolder) whilst using a Machine-Wide installation. This is pretty bad form. Why are you doing this?
This is why the Microsoft installation guides are telling you that you're doing wrong. https://learn.microsoft.com/en-us/windows/win32/msi/appdatafolder https://learn.microsoft.com/en-us/windows/win32/msi/ice38 https://learn.microsoft.com/en-us/windows/win32/msi/ice64 https://learn.microsoft.com/en-us/windows/win32/msi/ice91
Perhaps instead of AppDataFolder you meant to use CommonAppDataFolder (C:\ProgramData) https://learn.microsoft.com/en-us/windows/win32/msi/commonappdatafolder
@bevanweiss hi, thanks for reply, I want install application in user scope, maybe there is a workaround for using AppDataFolder, previously I used Harvest files and want to replace for Files, but there is a problem which I faced
You should read through the Microsoft documentation on the ICE warnings / errors as to why you can't just install to a user folder from a per machine install.
If you do want to install to a user folder, then you should author a PER USER installation. https://wixtoolset.org/docs/v3/xsd/wix/package/
Unfortunately Scope="perUser" does not help, still got the same errors
Unfortunately Scope="perUser" does not help, still got the same errors
https://learn.microsoft.com/en-us/windows/win32/msi/allusers https://learn.microsoft.com/en-us/windows/win32/msi/single-package-authoring
You should close this issue (it's not a WiX bug, it's a failure to author in accordance to Microsoft installer requirements). It should be raised instead in discussions
WiX Version
5.0.0
.NET or MSBuild or Visual Studio Version
Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.8.2
HeatWave Version
1.0.4
Windows Version
Windows 11 Pro 21H2
Repro Repo
No response
Repro Steps
Folder (in my example) contains some files d:\TestFolder
Project Wix msi structure:
ExampleComponents.wxs
Folders.wxs
Package.wxs
Note: change in Folders.wxs to ProgramFiles6432Folder for example all works as expected project build without errors and files structure zipped into .msi
Actual Result
Build project result:
Expected Result
Project built without error, all folder structure included into .msi
Acknowledgements