Hi, I have a rather straight forward wxs that installs an executable and its dependency into ProgramFilesFolder/[Vendor]. Additionally, it creates two shortcuts: one to application itself, another to uninstall the application in ProgramMenuFolder/Vendor/Product.
<Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> <Directory Id="PFF_Manufacturer" Name="Vendor"> <Directory Id="INSTALLDIR" Name="MyProduct" /> </Directory> </Directory> <Directory Id="ProgramMenuFolder"> <Directory Id="PMF_Vendor" Name="Vendor"> <Directory Id="PMF_Product" Name="MyProduct" /> </Directory> </Directory> </Directory> <DirectoryRef Id="PMF_Product"> <Component Id="CMP_Shortcuts" Guid="GUID-44EF-4540-96DC-7A798BD5367A"> <RemoveFolder Id="REMOVE_PMF_Vendor" Directory="PMF_Vendor" On="uninstall" /> <RemoveFolder Id="REMOVE_PMF_Product" Directory="PMF_Product" On="uninstall" /> <Shortcut Id="SHORTCUT_MyProduct.exe" Name="MyProduct" Target="[PFF_Product]MyProduct.exe" Directory="PMF_Product" /> <Shortcut Id="SHORTCUT_Uninstall" Name="Uninstall MyProduct" Target="[SystemFolder]msiexec.exe" Arguments="/x [ProductCode]" Directory="PMF_Product" /> <RegistryValue Root="HKCU" Key="Software\Vendor\MyProduct" Name="installed" Type="integer" Value="1" KeyPath="yes" /> </Component> </DirectoryRef> The MSI is generated successfully. However, during its execution, it kept complaining about warning 1909 Could not create shortcut [2]. Verify that the destination folder exists and that you can access it. The shortcut to the application exe wasn't created. However the shortcut to the uninstall was created successfully. Adding CreateFolder to CMP_Shortcuts didn't help. I don't quite understand what had caused the issue since I found successful example on the web that has the same set up. Environment: Built on Windows XP. End user uses Windows XP without admin privilege. Thanks for any pointers. Candy ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users