Note that there are some explanatory texts on larger screens.

plurals
  1. POWiX HeatDirectory task pointing to symlink
    text
    copied!<p>I am using the HeatDirectory task in a Wix-Project to fetch some files. I would furthermore like to use a symlink in the HeatDirectory <em>Directory</em> parameter to always use the folder the shortcut is pointing to. However, it seems the parameter feels not very comfortable with this symlink, so I tried creating a workaround by copying the files before harvesting them.</p> <pre><code>&lt;Exec Command="xcopy \\myFileServer\Shortcut2LatestFiles\*.* c:\mytmp" ContinueOnError="true"/&gt; &lt;HeatDirectory OutputFile="files.wxs" Directory="c:\mytmp" (... some more parameters ...) /&gt; </code></pre> <p>Unfortunately this workaround is not working, because xcopy does not resolve the symlink either. Anyway I am not very happy about it and would prefer heat to directly use the shortcut. Is there a way to do so?</p> <p><strong>EDIT:</strong> the missing part actually were the quotes, like Alexey suggested - the xcopy part is working if I use</p> <pre><code>&lt;Exec Command="xcopy &amp;quot;c:\TestFolderSymlink&amp;quot; &amp;quot;c:\testtarget\&amp;quot; /y" /&gt; </code></pre> <p>Funny enough they do not seem to be required on the command line.</p> <p><strong>EDIT 2:</strong> using the quotes, the direct use of the symlink in the heatdirectory task is possible too. However, be aware I am using a symlink (created by mklink, some info <a href="http://en.wikipedia.org/wiki/NTFS_symbolic_link" rel="nofollow">here</a>) here, not a shortcut (.lnk-File). Actually the Shortcut will not work this way.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload