Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Installation WIX安装程序-使用DirectorySearch/FileSearch在何处安装_Installation_Wix - Fatal编程技术网

Installation WIX安装程序-使用DirectorySearch/FileSearch在何处安装

Installation WIX安装程序-使用DirectorySearch/FileSearch在何处安装,installation,wix,Installation,Wix,我读过,但这对我来说只是故事的一半 我想创建一个WIX安装项目,其中包括预构建的文件,并将它们安装到三个不同的文件夹中。 我所说的“预构建”是指我不想将WIX安装项目添加到构建任何要部署的文件的VS解决方案中。 我试图部署的应用程序由C语言、C++和第三方代码/工具(VisualStudio项目中未建立的文件)组成。 此外,我最终希望在Azure DevOps/TFS发布管道中实现这一点 我有三个CI管道,它们将输出发布到工件。在发布管道中,我检索已发布的工件,并希望“构建”一个WIX项目,将所

我读过,但这对我来说只是故事的一半

我想创建一个WIX安装项目,其中包括预构建的文件,并将它们安装到三个不同的文件夹中。 我所说的“预构建”是指我不想将WIX安装项目添加到构建任何要部署的文件的VS解决方案中。 我试图部署的应用程序由C语言、C++和第三方代码/工具(VisualStudio项目中未建立的文件)组成。 此外,我最终希望在Azure DevOps/TFS发布管道中实现这一点

我有三个CI管道,它们将输出发布到工件。在发布管道中,我检索已发布的工件,并希望“构建”一个WIX项目,将所有工件合并到一个MSI安装程序中。我的安装程序没有,也不需要UI

尽管我最终希望在Azure/TFS中运行此功能,但我还是先将文件放在本地计算机上的三个独立子文件夹中,以证明该项目: 我的问题是将文件安装到不同的文件夹

  • .\artifacts\AppControls
    <Feature Id="AppServer" Title="App Server" Level="1">
      <ComponentGroupRef Id="AppControlsGroup" />
      <ComponentGroupRef Id="AppServerGroup">
      <ComponentGroupRef Id="AppScreensGroup" />
    </Feature>
    ...
    <Property Id="SCREENDIRFOUND">
      <DirectorySearch Id="SCREENDIR" Path="E:\PROJECTS\APP" Depth="2" AssignToProperty="yes">
        <FileSearch Id="RUNSCREEN" Name="APP_Monitor.cimrt" />
      </DirectorySearch>
    </Property>
    </Product>
    ...
    <!-- Step 1: Define the directory structure -->
    <Fragment>
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder" Name="PFiles">
        <Directory Id="MFG" Name="Mfg">
          <Directory Id="INSTALLDIR" Name="APP" />
        </Directory>
      </Directory>
    </Directory>
    
    MSI (c) (58:9C) [16:13:02:742]: Doing action: AppSearch
    MSI (c) (58:9C) [16:13:02:742]: Note: 1: 2205 2:  3: ActionText 
    Action start 16:13:02: AppSearch.
    MSI (c) (58:9C) [16:13:02:743]: Note: 1: 1322 2:  
    MSI (c) (58:9C) [16:13:02:743]: Note: 1: 1325 2: APP_Monitor.cimrt
    MSI (c) (58:9C) [16:13:02:743]: Note: 1: 1325 2: APP_Monitor.cimrt
    MSI (c) (58:9C) [16:13:02:743]: PROPERTY CHANGE: Adding SCREENDIR property. Its value is 'E:\PROJECTS\APP\AppSiteName\Screens\'.
    Action ended 16:13:02: AppSearch. Return value 1.
    MSI (c) (58:9C) [16:13:02:743]: Doing action: LaunchConditions
    
    <?xml version="1.0" encoding="utf-8"?>
    <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
      <Fragment>
        <ComponentGroup Id="AppScreensGroup" Directory="SCREENDIR">
          <Component Id="compApp_Config.cimrt"  Guid="22E9F025-....heat generated">
              <File Id="fileApp_Config.cimrt" KeyPath="yes" Source="D:\TFS\APP\artifacts\AppScreens\APP_Config.cimrt" />
            </Component>
            <Component Id="compApp_Monitor.cimrt"  Guid="56DF9438-....heat generated">
              <File Id="fileGEP_Diagnostic.cimrt" KeyPath="yes" Source="D:\TFS\APP\artifacts\AppScreens\APP_Monitor.cimrt" />
            </Component>
            ... more files.
        </ComponentGroup>
      </Fragment>
    </Wix>
    
    <SetDirectory Id="SCREENDIR" Value="[SCREENDIRPROPERTY]"/>
    
    heat.exe dir D:\TFS\APP\artifacts\AppScreens -var SourcePathScreens -dr SCREENDIR -cg AppScreensGroup -gg -g1 -scom -sreg -srd -suid -out AppScreens.wxs
    
    MSI (c) (18:6C) [16:09:25:022]: Note: 1: 2205 2:  3: MsiAssembly 
    MSI (c) (18:6C) [16:09:25:022]: Note: 1: 2716 2: APP_Config.cimrt 
    MSI (c) (18:6C) [16:09:25:022]: Note: 1: 2262 2: Error 3: -2147287038 
    DEBUG: Error 2716:  Couldn't create a random subcomponent name for component 'APP_Config.cimrt'.
    MSI (c) (18:B4) [16:09:25:029]: Font created.  Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg
    
    MSI (c) (18:6C) [16:09:28:036]: Note: 1: 2262 2: Error 3: -2147287038 
    MSI (c) (18:6C) [16:09:28:036]: Product: APP Server -- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2716. The arguments are: APP_Config.cimrt,