如何在Wix中创建文件夹? [英] how to create folder in Wix?

查看:43
本文介绍了如何在Wix中创建文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用这个代码:<代码>

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

但它失败并出现以下错误:<块引用>:错误 LGHT0094:未解析对产品:*"部分中符号目录:ext"的引用.

可能是什么问题?顺便说一句:我很难以这种形式粘贴 XML 代码.

解决方案

这应该是 Directory Id,而不是名称:

或者只是

如果您不打算在那里写入任何文件,则创建包含目录.

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.

解决方案

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.

这篇关于如何在Wix中创建文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆