Wix Bootstrapper Bundle检查Directory.Exist [英] Wix Bootstrapper Bundle Check Directory.Exist

查看:104
本文介绍了Wix Bootstrapper Bundle检查Directory.Exist的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是wix的新手。我想检查一下目录是否存在于bundle.wxs中是否可能?



目录可以到任何地方

解决方案

这是一个如何实现这个目标的例子。



  <   chain  >  

< packagegroupref < span class =code-attribute> id = AccessDB / >

< / chain >

< 片段 >
< util:filesearch id = AccessDBInstalled xmlns:util = #unknown >
Variable =AccessDBInstalled
Path = directory \ path\to\check
结果=存在/>
< packagegroup < span class =code-attribute> id = AccessDB >
< exepackage id = AccessDB >
DisplayName =Microsoft Access
Compressed =yes
Cache = no
PerMachine =yes
Permanent =yes
Protocol =none
Vital =yes
SourceFile =path\to\\ \\ accessdatabaseengine.exe
InstallCommand =/ quiet / norestart
DetectCondition =AccessDBInstalled
InstallCondition =(VersionNT> = v5.1或VersionNT64> = v6.0)AND(NOT AccessDBInstalled)/>
< / exepackage > < / packagegroup >
< / util:filesearch > < / fragment >


I am new to wix. I want to check whether a directory exist in bundle.wxs Is it possible?

The directory could be to anywhere

解决方案

Here is an example of how you might accomplish this.

<chain>
  .
  <packagegroupref id="AccessDB" />
  .
</chain>

<fragment>
  <util:filesearch id="AccessDBInstalled" xmlns:util="#unknown">
                   Variable="AccessDBInstalled"
                   Path="directory\path\to\check"
                   Result="exists" />
  <packagegroup id="AccessDB">
    <exepackage id="AccessDB">
                DisplayName="Microsoft Access"
                Compressed="yes"
                Cache="no"
                PerMachine="yes"
                Permanent="yes"
                Protocol="none"
                Vital="yes"
                SourceFile="path\to\accessdatabaseengine.exe"
                InstallCommand="/quiet /norestart"
                DetectCondition="AccessDBInstalled"
                InstallCondition="(VersionNT >= v5.1 OR VersionNT64 >= v6.0) AND (NOT AccessDBInstalled)" />
  </exepackage></packagegroup>
</util:filesearch></fragment>


这篇关于Wix Bootstrapper Bundle检查Directory.Exist的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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