A snippit from my own working shortcuts:
<!-- BEGIN START MENU LAYOUT -->
<Directory Id="ProgramMenuFolder">
<Directory Id="ManufacturersProgramFolder"
Name="$(var.SoftwareManufacturer)">
<Directory Id="ApplicationProgramsFolder" Name="$(var.SoftwareName)"/>
</Directory>
</Directory>
</Directory>
<!-- START MENU SHORTCUT INCLUDES
AN INTERNET SHORTCUT, THANKS TO THE
UTILEXTENSION NAMESPACE. -->
<DirectoryRef Id="ApplicationProgramsFolder">
<Component Id="ApplicationShortcut" Guid="myGUID">
<CreateFolder Directory="ManufacturersProgramFolder" />
<Shortcut Id="ApplicationStartMenuShortcut"
Name="$(var.SoftwareName)"
Description="Use This Program to View or Modify Records in
Your TASDatabase."
Target="[APPLICATIONROOTDIRECTORY]$(var.SoftwareName).exe"
WorkingDirectory="APPLICATIONROOTDIRECTORY"
Icon="InstallerTASServerIco.ico"/>
<util:InternetShortcut Id="CompanyWebsiteShortcut"
Name="Please Visit our Company Site"
Target="some url"
Type="url"/>
<RemoveFolder Id="ManufacturersProgramFolder"
Directory="ManufacturersProgramFolder" On="uninstall"/>
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
<RegistryValue Root="HKCU"
Key="Software\[Manufacturer]\$(var.ProductGroup)\[Product]\$(var.SoftwareName)"
Name="Installed"
Type="integer"
Value="1"
KeyPath="yes"/>
</Component>
<!-- END START MENU LAYOUT -->
<!-- ADD DESKTOP SHORTCUT -->
<Directory Id="DesktopFolder" Name="Desktop">
<Component Id="ApplicationShortcutDesktop" Guid="Another myGUID">
<Condition>INSTALLDESKTOPSHORTCUT</Condition>
<Shortcut Id="ApplicationDesktopShortcut"
Name="TAS Database"
Description="Comment field in your shortcut"
Target="[APPLICATIONROOTDIRECTORY]$(var.SoftwareName).exe"
WorkingDirectory="APPLICATIONROOTDIRECTORY"
Icon="InstallerTASServerIco.ico"/>
<RemoveFolder Id="DesktopFolder" On="uninstall"/>
<RegistryValue Root="HKCU"
Key="Software\[Manufacturer]\$(var.ProductGroup)\[Product]\$(var.SoftwareName)"
Name="Installed"
Type="integer"
Value="1"
KeyPath="yes"/>
</Component>
</Directory>
</DirectoryRef>
<!-- END DESKTOP SHORTCUT -->
Quoting faujong <[email protected]>:
> Thank you.
> The Install type was set to perMachine.
>
> I then followed that link, and it got rid of the other errors and warnings,
> but this warning stays:
> ICE64: The directory APPLICATIONROOTDIRECTORY is in the user profile but is
> not listed in the RemoveFile table.
>
> But, APPLICATIONROOTDIRECTORY is listed in the RemoveFolder element.
> How can I fix this issue ?
>
> Thank you.
>
> <Product Id="*" Name="WIXVBSetupProject" Language="1033" Version="1.0.1.0"
> Manufacturer="aaa" UpgradeCode="myGUID_ID">
> <Package InstallerVersion="200" Compressed="yes"
> InstallScope="perMachine"
> Platforms="x64"/>
> <MajorUpgrade Schedule="afterInstallExecute" DowngradeErrorMessage="A
> newer
> version of [ProductName] is already installed." />
> <MediaTemplate />
>
> <Feature Id="ProductFeature" Title="WIXVBSetupProject" Level="1">
> <ComponentGroupRef Id="ProductComponents" />
> </Feature>
> </Product>
>
> <Fragment>
> <Directory Id="TARGETDIR" Name="SourceDir">
> <Directory Id="ProgramFiles64Folder">
> <Directory Id="INSTALLFOLDER" Name="WIXVBSetupProject"
> />
> </Directory>
> <Directory Id="DesktopFolder" Name="Desktop"/>
> <Directory Id="ProgramMenuFolder">
> <Directory Id="APPLICATIONROOTDIRECTORY" Name="WIX VB">
> </Directory>
> </Directory>
> </Directory>
> </Fragment>
>
> <Fragment>
> <DirectoryRef Id="APPLICATIONROOTDIRECTORY">
> <Component Id="WIXVB.exe" Guid="myGUID_ID">
> <File Id="WIXVB.exe" Source="(var.WIXVB.TargetPath)"
> KeyPath="yes"
> Checksum="yes"/>
> </Component>
> </DirectoryRef>
> </Fragment>
>
> <Fragment>
> <DirectoryRef Id="ApplicationProgramsFolder">
> <Component Id="ApplicationShortcut" Guid="myGUID_ID">
> <Shortcut Id="ApplicationStartMenuShortcut"
> Name="WIX VB"
> Description="WIX VB Description"
> Target="[#WIXVB.exe]"
> WorkingDirectory="APPLICATIONROOTDIRECTORY"/>
> <RemoveFolder Id="ApplicationProgramsFolder"
> On="uninstall"
> Directory="APPLICATIONROOTDIRECTORY"/>
> <RegistryValue Root="HKCU"
> Key="Software\Microsoft\WIXVB.exe"
> Name="installed" Type="integer" Value="1" KeyPath="yes"/>
> </Component>
> </DirectoryRef>
> </Fragment>
>
> <Fragment>
> <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
> <Component Id="ProductComponent" Win64="yes">
> <File Source="$(var.WIXVB.TargetPath)" KeyPath="yes">
> <Shortcut Advertise="yes"
> Id="MyProductDesktopShortcut"
> Directory="DesktopFolder"
> Name="WIXVB"
> WorkingDirectory="INSTALLLOCATION"
> Description="WIX VB"
> Icon="Chart.ico">
> <Icon Id="Chart.ico"
> SourceFile="$(var.WIXVB.TargetPath)" />
> </Shortcut>
> </File>
> </Component>
> </ComponentGroup>
> </Fragment>
>
> <Fragment>
> <Feature Id="MainApplication" Title="Main Application" Level="1">
> <ComponentRef Id="WIXVB.exe" />
> <ComponentRef Id="ApplicationShortcut" />
> </Feature>
> </Fragment>
>
>
>
>
> --
> View this message in context:
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-create-Menu-Shortcut-tp7593054p7593068.html
> Sent from the wix-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Subversion Kills Productivity. Get off Subversion & Make the Move to
> Perforce.
> With Perforce, you get hassle-free workflows. Merge that actually works.
> Faster operations. Version large binaries. Built-in WAN optimization and the
> freedom to use Git, Perforce or both. Make the move to Perforce.
> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries. Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users