本文介绍了请求示例:其中,MSI>楠-的contrib任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以请提供我一个样品构建文件demostrating使用楠-的contrib的任务创建Web应用程序项目的安装程序。
Can anyone please provide me a sample build file demostrating the use of the task of nant-contrib for creating an installer of a web application project.
推荐答案
这一项:)
<?xml version="1.0"?>
<project name="Scanner" xmlns="http://nant.sf.net/release/0.85/nant.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://nant.sf.net/release/0.85/nant.xsd http://ilqhfaatc1ws628/nant.xsd">
<!-- Nant command line:
c:\nant\nant -debug+ /f:"D:\LaptopServiceTools\ShortFilenameFailure.build.xml" -v+ create.msi
-->
<target name="create.msi">
<setenv>
<!--Set path to CabArc.exe.-->
<variable name="PATH" path="c:\Program Files\Microsoft Visual Studio 8\Common7\Tools\Bin\;%PATH%" />
</setenv>
<msi sourcedir="c:\" output="c:\test.msi">
<properties>
<property name="ProductName" value="nAntTest" />
<property name="ProductVersion" value="2.5.1.0002" />
<property name="Manufacturer" value="Test" />
<property name="ProductCode" value="{F86BC501-47EB-4A14-BB01-2CC2CB8D1232}"/>
<property name="UpgradeCode" value="{B095E2D1-B9D1-412B-8B1D-A914E8876DD5}"/>
<property name="TARGETDIR" value="c:\"/>
</properties>
<directories>
<directory name="USR" foldername="usr12" root="TARGETDIR">
<directory name="DIAMONDROOT" foldername="diamond.root">
<directory name="BIN" foldername="bin"/>
<directory name="CCFG" foldername="comcal_cfg"/>
<directory name="CFG" foldername="cfg">
<directory name ="APPDEFAULTS" foldername="app-defaults"/>
</directory>
</directory>
<directory name="SERVICEROOT" foldername="service.root">
<directory name="RELI" foldername="reli"/>
</directory>
<directory name="DIAMONDDATA" foldername="diamond.data">
<directory name="PHYSICSLOG" foldername="Physics_log"/>
</directory>
</directory>
</directories>
<components>
<component name="DiamondRootBinFiles" id="{9904C798-B9F7-450D-902A-1C92D7008014}" attr="2" directory="BIN" feature="FilesFeature" keepsubdirs="true">
<key file="cmd.exe"/>
<fileset basedir="c:\Windows\system32">
<include name="cmd.exe" />
</fileset>
</component>
</components>
<features>
<feature name="FilesFeature" title="Scanner" display="1" typical="true" directory="C__DRIVE">
<description>Log viewer support files Files</description>
</feature>
</features>
</msi>
</target>
</project>
这篇关于请求示例:其中,MSI&GT;楠-的contrib任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!