how to create folder in Wix?

百般思念 提交于 2019-12-25 02:48:05

问题


I use this code:

'<'Directory Id="x" Name="ext">
  <'Component Id="y" Guid="4480e442-42d9-41a8-a091-9bdbf5aa47df">
    <'CreateFolder Directory="ext" />
  <'/Component>
'<'/Directory>

But it failed with the following error:

: error LGHT0094 : Unresolved reference to symbol 'Directory:ext' in section 'Product:*'.
what could be the problem? BTW: I have difficulties pasting the XML code in this form.

回答1:


This should be Directory Id, not the name:

<CreateFolder Directory="x" />

Or just

<CreateFolder/>

to create the containing directory if you are not going to write any file there.



来源:https://stackoverflow.com/questions/38214039/how-to-create-folder-in-wix

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!