Installation problem on a machine with a user profile

When creating my WXS data in MSI, I get the following error:

ICE38: Component CreateFolder installs to user profile. It must use a registry key under HKCU as its KeyPath, not a file.

This is confusing because I have my project installed for installation on a computer, so, as I understand it, it should install on "C: \ Users \ All Users" or "C: \ Users \ Default", and not on the actual user profile. I tried several different methods to say that this is an installation for each machine, but none of them work. Any thoughts would be greatly appreciated. I'm at a dead end!

To do this for each machine, I tried these two settings (separately), and none of them worked.

<Property Id="ALLUSERS" Value="2" />

and

<Package InstallScope="perMachine" ... />

EDIT: Code for CreateFolder

            <Directory Id="AdminToolsFolder" SourceName="Admin Tools">
                <Component Id="CreateFolder" Guid="{452A617E-XXXX-XXXX-XXXX-3710802B3BBD}" KeyPath="yes">
                    <CreateFolder Directory="AdminToolsFolder" />
                </Component>
            </Directory>
+3
source share
2

, Shortcut:

<Directory Id="AdminToolsFolder" SourceName="Admin Tools">
  <Component Id="MyShortcuts" Guid="<guid value>">
    <Shortcut Id="Shortcut_MyAdminTool" Directory="AdminToolsFolder"
              Name="My Admin Tool" Target="[#AdminTool]"
              Show="normal" WorkingDirectory="TARGETDIR" />
  </Component>
</Directory>
0

Source: https://habr.com/ru/post/1756162/


All Articles