In my experience, when the shortcut does not target an exe, (in my case a pdf
and in your example both txt and docx files), even though the
Shortcut/@WorkingDirectory value is set in the wxs, the 'Start In' field is
blank in the properties page for the shortcut.  It is my understanding that
this is the intended design of Windows and it is related to mitigating
certain security concerns.  I do not believe it to be a WIX issue.  Correct
me if I am wrong. 

When the Shortcut element is a child of a File element which is a Keypath to
the Component, then the registry key is not needed.  However if the Shortcut
is not advertised and not related to some other keypath then a registry key
is used as the keypath.

In your code you have a RemoveFolder element on the DesktopFolder.  I have
not needed to do that and am not sure how wise that is.  Maybe it does not
matter, I do not know.



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/WiX-missing-Start-In-property-in-desktop-shortcut-tp7594368p7594444.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to