0

我正在尝试使用 FileShare 共享文件夹,但出现此错误;任何想法?

Coppying WixCommonLib
Coppying TNSORA
running Candle, candle.exe -ext WixIisExtension Product.wxs
Microsoft (R) Windows Installer Xml Compiler version 3.5.2519.0
Copyright (C) Microsoft Corporation. All rights reserved.
Product.wxs
Product.wxs(41) : error CNDL0005 : The Component element contains an unexpected child element 'FileShare'.
Product.wxs(44) : error CNDL0005 : The Component element contains an unexpected child element 'User'.

这是脚本:

    <Component Id="FilesShareComp" Win64="yes" Guid="801595A6-4CB0-481B-892E-C37A48954DD9">
      <FileShare Id="FilesShare" Name="MyFolder" Description="MyFolder">
        <Permission User="sharedusers" GenericAll="yes" />
      </FileShare>
      <User Id="shareduser" Name="testuser" CreateUser="No" Domain="[ComputerName]" Password="Password1" FailIfExists="no">
      </User>
    </Component>
4

1 回答 1

2

尝试这个

<user:User Id='Everyone' Name='Everyone' CreateUser='no' FailIfExists='no' RemoveOnUninstall='no' />
<user:FileShare Id='SharedFolder' Description='Share Folder description if any' Name='ShareFolderName'>
  <user:Permission GenericRead='yes' ReadPermission='yes' Read='yes' GenericExecute='yes' User='Everyone' />
</user:FileShare>
于 2012-09-15T18:42:38.303 回答