开发者

Creating start menu shortcuts, result is error LGHT0094

开发者 https://www.devze.com 2023-02-04 09:48 出处:网络
When adding start menu shortcuts light.exe will produce the LGHT0094 error: <Directory Id=\"ProgramMenuFolder\" Name=\"Menu\">

When adding start menu shortcuts light.exe will produce the LGHT0094 error:

            <Directory Id="ProgramMenuFolder" Name="Menu">
            <Directory Id="DirManufacturer" Name="Manufacturer">
                <Component Id="MenuManufacturer" Guid="" KeyPath="yes">
                    <CreateFolder Directory="Manufacturer">
                    </CreateFolder>
                </Component>
 开发者_运维百科               <Directory Id="DirProduct" Name="Product">
                    <Component Id="MenuProduct" Guid="" KeyPath="yes">
                        <CreateFolder Directory="Product">
                        </CreateFolder>
                        <Shortcut Id="SHC_Program1" Name="Program 1" Target="[ApplicationRootDirectory]Program1.exe" />
                    </Component>
                </Directory>
            </Directory>

What is wrong in my XML?

Could somebody tell me how to create subsequent menu items in the start menu?

  • Start Menu
    • Manufacturer (this and all subsequent items have to be created by the Installer)
      • Product
        • Program 1
        • Program 2 etc.


The article How To: Create a Shortcut on the Start Menu of WiX manual has exhaustive explanation of how to create this kind of shortcut.

0

精彩评论

暂无评论...
验证码 换一张
取 消