You can't install to ProgramFilesFolder on XP without admin permissions so the executable will not install. The shortcut creation will be failing because the executable doesn't exist.
-----Original Message----- From: candy.chiu...@gmail.com [mailto:candy.chiu...@gmail.com] Sent: 16 August 2012 17:08 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Unable to create shortcut. MSI error 1909 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 SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. ------------------------------------------------------------------------------ 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