Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per-user setup example fails with ICE enabled #1

Open
mind-bending-forks opened this issue Jan 25, 2019 · 1 comment
Open

Per-user setup example fails with ICE enabled #1

mind-bending-forks opened this issue Jan 25, 2019 · 1 comment

Comments

@mind-bending-forks
Copy link

The per-user setup example project has ICE validation suppressed. If it is enabled, it fails to build. The output obtained is as follows:

Severity    Code    Description    Project    File    Line Suppression State
Error        ICE64: The directory ROOTDIRECTORY is in the user profile but is not listed in the RemoveFile table.    Wix Simple Setup PerUser Installer    C:\backupFolder\Code\WiX Examples\Wix-Setup-Samples\6. Wix Simple Setup Per User Installer\Wix Simple Setup PerUser Installer\Product.wxs    53
Error        ICE64: The directory INSTALLFOLDER is in the user profile but is not listed in the RemoveFile table.    Wix Simple Setup PerUser Installer    C:\backupFolder\Code\WiX Examples\Wix-Setup-Samples\6. Wix Simple Setup Per User Installer\Wix Simple Setup PerUser Installer\Product.wxs    55
Error        ICE38: Component Sample_Application.exe installs to user profile. It must use a registry key under HKCU as its KeyPath, not a file.    Wix Simple Setup PerUser Installer C:\backupFolder\Code\WiX Examples\Wix-Setup-Samples\6. Wix Simple Setup Per User Installer\Wix Simple Setup PerUser Installer\Product.wxs    72
Error        ICE38: Component Sample_Application.exe.config installs to user profile. It must use a registry key under HKCU as its KeyPath, not a file.    Wix Simple Setup PerUser Installer C:\backupFolder\Code\WiX Examples\Wix-Setup-Samples\6. Wix Simple Setup Per User Installer\Wix Simple Setup PerUser Installer\Product.wxs    78
Warning        ICE91: The file 'Sample_Application.exe' will be installed to the per user directory 'INSTALLFOLDER' that doesn't vary based on ALLUSERS value. This file won't be copied to each user's profile even if a per machine installation is desired. Wix Simple Setup PerUser Installer    C:\backupFolder\Code\WiX Examples\Wix-Setup-Samples\6. Wix Simple Setup Per User Installer\Wix Simple Setup PerUser Installer\Product.wxs    73
Warning        ICE91: The file 'Sample_Application.exe.config' will be installed to the per user directory 'INSTALLFOLDER' that doesn't vary based on ALLUSERS value. This file won't be copied to each user's profile even if a per machine installation is desired.    Wix Simple Setup PerUser Installer C:\backupFolder\Code\WiX Examples\Wix-Setup-Samples\6. Wix Simple Setup Per User Installer\Wix Simple Setup PerUser Installer\Product.wxs    79
Warning        ICE69: Mismatched component reference. Entry 'ApplicationStartMenuShortcut' of the Shortcut table belongs to component 'ApplicationShortcut'. However, the formatted string in column 'Target' references file 'Sample_Application.exe' which belongs to component 'Sample_Application.exe'. Components are in the same feature.    Wix Simple Setup PerUser Installer C:\backupFolder\Code\WiX Examples\Wix-Setup-Samples\6. Wix Simple Setup Per User Installer\Wix Simple Setup PerUser Installer\Product.wxs    88
Warning        ICE69: Mismatched component reference. Entry 'AppDesktopShortcut' of the Shortcut table belongs to component 'ComponentDesktopShortcut'. However, the formatted string in column 'Target' references file 'Sample_Application.exe' which belongs to component 'Sample_Application.exe'. Components are in the same feature.    Wix Simple Setup PerUser Installer C:\backupFolder\Code\WiX Examples\Wix-Setup-Samples\6. Wix Simple Setup Per User Installer\Wix Simple Setup PerUser Installer\Product.wxs    101
Warning        ICE91: The shortcut 'AppDesktopShortcut' will be installed to the per user directory 'DesktopFolder' that doesn't vary based on ALLUSERS value. This file won't be copied to each user's profile even if a per machine installation is desired. Wix Simple Setup PerUser Installer    C:\backupFolder\Code\WiX Examples\Wix-Setup-Samples\6. Wix Simple Setup Per User Installer\Wix Simple Setup PerUser Installer\Product.wxs    101
@mind-bending-forks
Copy link
Author

For our own implementation, we managed to overcome this as follows, although the procedure was very tedious (and is not necessarily the best way)!

  • A component with RemoveFile was added for each directory within the user profile.
  • Then, all components were given a registry value with KeyPath="yes". (We had one registry value and file per component, and one component for every file.)
  • Then, for some reason, GUIDs could no longer be generated automatically and so we had to manually specify one for each component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant