Using WiX Toolset 3.10, and trying to create shortcuts to certain files that have been harvested with the heat.exe utility, as by:
"%WIX%\bin\heat.exe" dir SourceDir -nologo -platform x64 ^
-ke -gg -g1 -suid -srd -scom -sreg -dr INSTALLDIR ^
-cg ProjFiles -out ProjFiles.wxs
My issues:
I know by now that I'm supposed to use an XSLT file to transform ProjFiles.wxs (the
-toption in heat.exe) but WiX-specific documentation on how to write it is non-existent: can someone please provide an example that adds aShortcuton the Desktop for anIdof "Prog.exe"?Because of the
-g1flag, files which share the same basename (e.g. "SourceDir\dirA\file.txt" and "SourceDir\dirZ\file.txt") will share the sameId(i.e. "file.txt"); how come this isn't a conflict, seen how the .MSI builds and runs OK?
This should get it making a shortcut on the desktop. You'll get a ICE warning because the shortcut isn't in the same component as the Prog.exe file's component but it is safe to ignore (if you have warnings treated as errors, add the ICE to the Suppress specific ICE validations list. (wixproj properties Tool Settings in visual studio.
<SuppressIces>tag in the wixproj. Or, -sice:ICE## in cmd line)Define your DesktopFolder in the directory definitions
then have a component