wix toolset (v4, v5) – error WIX0204: ICE64 The directory is in the user profile but is not listed in the RemoveFile table

I have an error when I create, then validate my msi.

error WIX0204: ICE64: The directory dB83QhXjqRcvjpneY0SXNy5LuEUs is in the user
profile but is not listed in the RemoveFile table.

It seems to be related to the fact that the folder is in the start menu directory.

Despite the error the directory is properly removed, when I uninstall the software.

I created a simple version of my installer with a bash script and a wxs file, and I played with the attributes of RemoveFolder tag but the problem is still there.

create-installer

#!/bin/bash

set -x

printf "Is that really that simple?n" > simple.txt

WIX_CURRENT_VERSION=$( wix --version | grep -o "[0-9]*.[0-9]*.[0-9]")

# Add user interface extension for wix TODO add a test to check id already installed before calling it
wix extension add -g WixToolset.UI.wixext/${WIX_CURRENT_VERSION}

# Build package
wix build 
    -arch x64 
    -d ApplicationDisplayName="Simple" 
    -d ApplicationVersion="1.0.0" 
    -d ApplicationCompany="Company" 
    simple.wxs 
    -pdb simple.wixpdb 
    -ext WixToolset.UI.wixext/${WIX_CURRENT_VERSION} 
    -o simple.msi

# Validate package
wix msi validate 
    -pdb simple.wixpdb 
    simple.msi

simple.wxs

<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"
     xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">

    <Package Name="$(ApplicationDisplayName)"
             Version="$(ApplicationVersion)"
             Manufacturer="$(ApplicationCompany)"
             UpgradeCode="8fe1ff09-9f20-4bf4-bad0-3928af79071c"
             Language="1033"
             Compressed="yes"
             Scope="perUserOrMachine">
        <!-- 1033 is en-US (LCID code) -->

        <MediaTemplate EmbedCab="yes"/>

        <StandardDirectory Id="ProgramFiles64Folder">
            <Directory Id="APPLICATIONFOLDER" Name="$(ApplicationCompany)$(ApplicationDisplayName)">
            </Directory>
        </StandardDirectory>

        <StandardDirectory Id="ProgramMenuFolder">
            <Directory Id="startmenudirectory" Name="$(ApplicationCompany)$(ApplicationDisplayName)">
            </Directory>
        </StandardDirectory>

        <ComponentGroup Id="applicationrootdirectoryapplicationcomponent">
            <Component Id="simple.txt" Directory="APPLICATIONFOLDER" Guid="4f4613c5-7c1f-49de-b278-99114986b825">
                <File Id="simple.txt" Source="simple.txt" KeyPath="yes"/>
            </Component>
        </ComponentGroup>

        <ComponentGroup Id="startmenucomponent">
            <Component Id="startmenushortcut" Directory="startmenudirectory" Guid="d85f20ab-1165-47b8-a196-33dcdb428f36">
                <Shortcut Id="startmenushortcut"
                          Name="$(ApplicationDisplayName)"
                          Description="Add a shortcut to the start menu"
                          Target="[APPLICATIONFOLDER]simple.txt"/>

                <RemoveFolder Directory="startmenudirectory" On="uninstall"/>

                <RegistryValue Root="HKCU"
                               Key="Software$(ApplicationCompany)$(ApplicationDisplayName)StartMenuShorcut"
                               Name="installed"
                               Type="integer"
                               Value="1"
                               KeyPath="yes"/>
            </Component>
        </ComponentGroup>

        <ComponentGroup Id="desktopcomponent">
            <Component Id="desktopshortcut" Directory="DesktopFolder" Guid="b57a196f-aa70-40ba-ab35-83b88c53866f">
                <Shortcut Id="desktopshortcut"
                          Name="$(ApplicationDisplayName)"
                          Description="Add a desktop shortcut"
                          Target="[APPLICATIONFOLDER]simple.txt"/>
                <RegistryValue Root="HKCU"
                               Key="Software$(ApplicationCompany)$(ApplicationDisplayName)DesktopShorcut"
                               Name="installed"
                               Type="integer"
                               Value="1"
                               KeyPath="yes"/>
            </Component>
        </ComponentGroup>

        <Feature Id="MainApplication" Display="expand" AllowAbsent="no" Title="$(ApplicationDisplayName)" Level="1">
            <ComponentGroupRef Id="applicationrootdirectoryapplicationcomponent"/>
            <Feature Id="StartMenuShorcut" Title="Start menu shortcut" Level="1">
                <ComponentRef Id="startmenushortcut"/>
            </Feature>
            <Feature Id="DesktopShorcut" Title="Desktop shortcut" Level="1">
                <ComponentGroupRef Id="desktopcomponent"/>
            </Feature>
        </Feature>

        <Property Id="ApplicationFolderName" Value="$(ApplicationCompany)$(ApplicationDisplayName)"/>
        <Property Id="WixAppFolder" Value="WixPerUserFolder"/>

        <UIRef Id="WixUI_ErrorProgressText"/>

        <ui:WixUI Id="WixUI_Advanced"/>

    </Package>
</Wix>

New contributor

Neiluj is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật