Michael,

This is now fixed in cvs.  I'll upload a new nightly build later today ...

Thanks,

Gert

----- Original Message ----- 
From: "Stephens, Michael" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 19, 2004 5:25 PM
Subject: [Nant-users] Problem building with msi task


> I am getting an error while trying to build a msi with the msi task.   I
have the latest from nant and nantcontrib .85.
>
> I was having trouble with my much larger build file so I just obtained a
simple one from the help on sf and I still have the same problem.
>
> C:\Inetpub\wwwroot\test>nant
>
> NAnt 0.85 (Build 0.85.1565.0; net-1.0.win32; nightly; 4/14/2004)
>
> Copyright (C) 2001-2004 Gerry Shaw
>
> http://nant.sourceforge.net
>
>
>
> Buildfile: file:///C:/Inetpub/wwwroot/test/default.build
>
> Target(s) specified: msi
>
>
>
> msi:
>
>
>
>       [msi] Building MSI Database 'MyCompany.MyProduct.msi'.
>
>       [msi] Adding Properties:
>
>  ProductName
>
>  ProductVersion
>
>  Manufacturer
>
>  ProductCode
>
>  UpgradeCode
>
>  TARGETVDIR
>
>  TARGETPORT
>
>       [msi] Adding Directories:
>
>  bin
>
>       [msi] Add Files:
>
>
>
> BUILD FAILED
>
>
>
> C:\Inetpub\wwwroot\test\default.build(26,10):
>
> Unable to build MSI database 'MyCompany.MyProduct.msi'.
>
>     Prefix 'nant' is not defined.
>
>
>
> What does this "Prefix 'nant' is not defined" error mean?
>
>
>
> Any help would be appreciated,
>
>
>
> Thanks,
>
>
>
> Mike
>
>
>
> <?xml version="1.0"?>
>
>
<!--************************************************************************
*-->
>
> <!--* @(#)VDirSample.build
*-->
>
> <!--*
*-->
>
> <!--* Sample build file with virtual directory support
*-->
>
>
<!--************************************************************************
*-->
>
> <project name="VDirSample" default="msi" >
>
>     <property name="product.name" value="MyProduct" />
>
>     <property name="company.name" value="MyCompany" />
>
>
>
>
>
>     <property name="msi.version" value="1.0.2" />
>
>     <property name="msi.virtualdirectory.name" value="SampleVDir" />
>
>     <property name="msi.guid.product"
value="{B9D2CE19-9CF2-4663-921A-8C3D97A8B9E8}" />
>
>     <property name="msi.guid.upgrade"
value="{33C71A5C-DC86-4d79-95A7-14FED9720F9B}" />
>
>
>
>     <!-- A directory containing files to support builds -->
>
>     <property name="builds.dir" value="../BuildSupport" />
>
>     <!-- A directory containing source files to include in the msi -->
>
>     <property name="source.dir" value="../Source" />
>
>     <!-- Location to output the complete msi -->
>
>     <property name="output.dir" value="." />
>
>
>
>     <target name="msi" description="Builds a MSI install">
>
>
>
>         <msi
>
>             sourcedir="${output.dir}"
>
>             license="license.rtf"
>
>             output="${company.name}.${product.name}.msi"
>
>             debug="true"
>
>             verbose="true"
>
>         >
>
>             <properties>
>
>                 <property name="ProductName" value="${product.name}" />
>
>                 <property name="ProductVersion" value="${msi.version}" />
>
>                 <property name="Manufacturer" value="${company.name}" />
>
>                 <property name="ProductCode" value="${msi.guid.product}"
/>
>
>                 <property name="UpgradeCode" value="${msi.guid.upgrade}"
/>
>
>
>
>                 <property name="TARGETVDIR"
value="${msi.virtualdirectory.name}" />
>
>                 <property name="TARGETPORT" value="80" />
>
>            </properties>
>
>
>
>            <directories>
>
>                <directory name="D__BINDIRECTORY" foldername="bin"
root="TARGETDIR" />
>
>
>
>             </directories>
>
>
>
>             <components>
>
>                 <component name="C__MainFiles"
id="{BB3B4E94-00E3-4442-BFEE-D135B6D4F046}" attr="2"
>
>                     directory="TARGETDIR" feature="F__DefaultFeature">
>
>                     <key file="Default.aspx" />
>
>                     <fileset basedir="${source.dir}">
>
>                         <includes name="*.*" />
>
>                     </fileset>
>
>                 </component>
>
>                 <component name="C__BinFiles"
id="{71757C52-DA2A-4b03-82A8-12E30022C651}" attr="2"
>
>                     directory="D__BINDIRECTORY" feature="F__BinFeature">
>
>                     <key file="NOSDE.xml" />
>
>                     <fileset basedir="${source.dir}\bin">
>
>                         <includes name="*.*" />
>
>                     </fileset>
>
>                 </component>
>
>
>
>             </components>
>
>
>
>             <!-- Adds the dialog used to specify the virtual directory
name -->
>
>             <dialogs>
>
>                 <dialog name="WebFolderDlg" hcenter="50" vcenter="50"
>
>                     width="370" height="270" attr="39"
>
>                     title="[ProductName] [Setup]" firstcontrol="Next"
>
>                     defaultcontrol="Next" cancelcontrol="Cancel" />
>
>             </dialogs>
>
>
>
>             <!-- Adds the controls associated with the dialog -->
>
>             <controls>
>
>                 <control dialog="WebFolderDlg" name="BannerBitmap"
type="Bitmap"
>
>                     x="0" y="0" width="374" height="44" attr="1"
>
>                     text="[BannerBitmap]" nextcontrol="VDirLabel" />
>
>                 <control dialog="WebFolderDlg" name="Title" type="Text"
>
>                     x="15" y="6" width="200" height="15" attr="196611"
>
>                     text="[DlgTitleFont]Virtual Directory Information" />
>
>                 <control dialog="WebFolderDlg" name="Description"
type="Text"
>
>                     x="25" y="23" width="280" height="15" attr="196611"
>
>                     text="Please enter your virtual directory and port
information." />
>
>                 <control dialog="WebFolderDlg" name="BannerLine"
type="Line"
>
>                     x="0" y="44" width="374" height="0" attr="1" />
>
>                 <control dialog="WebFolderDlg" name="VDirLabel"
type="Text"
>
>                     x="18" y="73" width="348" height="15" attr="3"
>
>                     text="&amp;Virtual directory:"
>
>                     nextcontrol="Edit_VDir" />
>
>                 <control dialog="WebFolderDlg" name="Edit_VDir"
type="Edit"
>
>                     x="18" y="85" width="252" height="18" attr="7"
>
>                     property="TARGETVDIR"
>
>                     text="[TARGETVDIR]"
>
>                     nextcontrol="PortLabel" />
>
>                 <control dialog="WebFolderDlg" name="PortLabel"
type="Text"
>
>                     x="18" y="110" width="348" height="15" attr="3"
>
>                     text="&amp;Port:"
>
>                     nextcontrol="Edit_Port" />
>
>                 <control dialog="WebFolderDlg" name="Edit_Port"
type="Edit"
>
>                     x="18" y="122" width="48" height="18" attr="7"
>
>                     property="TARGETPORT"
>
>                     text="[TARGETPORT]"
>
>                     nextcontrol="Back" />
>
>
>
>
>
>                 <control dialog="WebFolderDlg" name="BottomLine"
type="Line"
>
>                     x="0" y="234" width="374" height="0" attr="1" />
>
>                 <control dialog="WebFolderDlg" name="Back"
type="PushButton"
>
>                     x="180" y="243" width="56" height="17" attr="3"
>
>                     text="[ButtonText_Back]" nextcontrol="Next" />
>
>                 <control dialog="WebFolderDlg" name="Next"
type="PushButton"
>
>                     x="236" y="243" width="56" height="17" attr="3"
>
>                     text="[ButtonText_Next]" nextcontrol="Cancel" />
>
>                 <control dialog="WebFolderDlg" name="Cancel"
type="PushButton"
>
>                     x="304" y="243" width="56" height="17" attr="3"
>
>                     text="[ButtonText_Cancel]" nextcontrol="BannerBitmap"
/>
>
>
>
>             </controls>
>
>
>
>             <controlconditions>
>
>                 <controlcondition dialog="WebFolderDlg" control="Back"
action="Disable"
>
>                     condition="ShowUserRegistrationDlg=&quot;&quot;" />
>
>                 <controlcondition dialog="WebFolderDlg" control="Back"
action="Enable"
>
>
condition="ShowUserRegistrationDlg&lt;&gt;&quot;&quot;" />
>
>             </controlconditions>
>
>
>
>             <!-- Make sure the dialog is put into the execute order -->
>
>             <controlevents>
>
>
>
>                 <!-- Remove the old control events -->
>
>                 <controlevent dialog="UserRegistrationDlg" control="Next"
name="NewDialog"
>
>                     argument="SetupTypeDlg" condition="ProductID"
remove="true" />
>
>
>
>                 <controlevent dialog="SetupTypeDlg" control="Back"
name="NewDialog"
>
>                     argument="LicenseAgreementDlg"
condition="ShowUserRegistrationDlg &lt;&gt; 1" remove="true" />
>
>                 <controlevent dialog="SetupTypeDlg" control="Back"
name="NewDialog"
>
>                     argument="UserRegistrationDlg"
condition="ShowUserRegistrationDlg = 1" remove="true" />
>
>
>
>                 <!-- Add new control events for the new dialog -->
>
>
>
>                 <controlevent dialog="UserRegistrationDlg" control="Next"
name="NewDialog"
>
>                     argument="WebFolderDlg" condition="ProductID" />
>
>
>
>                 <controlevent dialog="SetupTypeDlg" control="Back"
name="NewDialog"
>
>                     argument="WebFolderDlg" condition="ShowWebFolderDlg
&lt;&gt; 1" />
>
>                 <controlevent dialog="SetupTypeDlg" control="Back"
name="NewDialog"
>
>                     argument="WebFolderDlg" condition="ShowWebFolderDlg =
1" />
>
>
>
>                 <controlevent dialog="WebFolderDlg" control="Cancel"
name="SpawnDialog"
>
>                     argument="CancelDlg" order="0" />
>
>
>
>                 <controlevent dialog="WebFolderDlg" control="Back"
name="NewDialog"
>
>                     argument="LicenseAgreementDlg"
condition="ShowUserRegistrationDlg&lt;&gt;1"
>
>                     order="0" />
>
>                 <controlevent dialog="WebFolderDlg" control="Back"
name="NewDialog"
>
>                     argument="UserRegistrationDlg"
condition="ShowUserRegistrationDlg=1"
>
>                     order="0" />
>
>
>
>                 <!-- Virtual Directory Control Events -->
>
>                 <controlevent dialog="WebFolderDlg" control="Next"
name="DoAction"
>
>                     argument="WEBCA_CreateURLs" condition="1" order="0" />
>
>                 <controlevent dialog="WebFolderDlg" control="Next"
name="DoAction"
>
>                     argument="WEBCA_EvaluateURLsMB" condition="1"
order="1" />
>
>                 <controlevent dialog="WebFolderDlg" control="Next"
name="SetTargetPath"
>
>                     argument="TARGETDIR" condition="1" order="2" />
>
>                 <controlevent dialog="WebFolderDlg" control="Next"
name="NewDialog"
>
>                     argument="SetupTypeDlg" condition="1" order="3" />
>
>
>
>             </controlevents>
>
>
>
>             <!-- Set the registry keys -->
>
>             <registry>
>
>                 <key
path="SOFTWARE\${company.name}\${product.name}\${msi.version}\"
>
>                     root="machine" component="C__MainFiles">
>
>                     <value name="ProductDir" value="[TARGETDIR]" />
>
>                     <value name="VirtualDir" value="[TARGETVDIR]" />
>
>                     <value name="Port" value="[TARGETPORT]" />
>
>                     <value name="URL" value="[TARGETURL]" />
>
>                 </key>
>
>             </registry>
>
>
>
>              <!-- Add the dll required for virtual directory creation -->
>
>             <binaries>
>
>                 <binary name="MSVBDPCADLL"
value="${builds.dir}\MSVBDPCA.DLL" />
>
>             </binaries>
>
>
>
>             <!-- Adds custom actions -->
>
>             <customactions>
>
>                 <customaction action="WEBCA_GatherWebFolderProperties"
>
>                     type="1" source="MSVBDPCADLL"
>
>                     target="GatherWebFolderProperties" />
>
>                 <customaction action="WEBCA_ApplyWebFolderProperties"
>
>                     type="1537" source="MSVBDPCADLL"
>
>                     target="ApplyWebFolderProperties" />
>
>                 <customaction
action="WEBCA_RollbackApplyWebFolderProperties"
>
>                     type="1281" source="MSVBDPCADLL"
>
>                     target="RollbackApplyWebFolderProperties" />
>
>                 <customaction action="WEBCA_CreateURLs"
>
>                     type="1" source="MSVBDPCADLL"
>
>                     target="CreateURLs" />
>
>                 <customaction action="WEBCA_EvaluateURLs"
>
>                     type="1" source="MSVBDPCADLL"
>
>                     target="EvaluateURLs" />
>
>                 <customaction action="WEBCA_EvaluateURLsNoFail"
>
>                     type="1" source="MSVBDPCADLL"
>
>                     target="EvaluateURLsNoFail" />
>
>                 <customaction action="WEBCA_EvaluateURLsMB"
>
>                     type="1" source="MSVBDPCADLL"
>
>                     target="EvaluateURLsMB" />
>
>                 <customaction action="WEBCA_CreateAppRoots"
>
>                     type="1" source="MSVBDPCADLL"
>
>                     target="CreateAppRoots" />
>
>
>
>                 <customaction action="WEBCA_TARGETVDIR"
>
>                     type="307" source="TARGETVDIR"
>
>                     target="${msi.virtualdirectory.name}" />
>
>                 <customaction action="WEBCA_TARGETPORT"
>
>                     type="307" source="TARGETPORT"
>
>                     target="80" />
>
>
>
>             </customactions>
>
>
>
>             <!-- Adds the sequence to run certain actions -->
>
>             <sequences>
>
>                 <!-- This is executed after clicking "install" and when
you see the progress bar. -->
>
>                 <sequence type="installexecute"
>
>                     action="WEBCA_TARGETVDIR"
>
>                     value="750" condition="TARGETVDIR=&quot;&quot;" />
>
>                 <sequence type="installexecute"
>
>                     action="WEBCA_TARGETPORT"
>
>                     value="750" condition="TARGETPORT=&quot;&quot;" />
>
>                 <sequence type="installexecute"
>
>                     action="WEBCA_CreateURLs"
>
>                     value="752" condition="NOT Installed" />
>
>                 <sequence type="installexecute"
>
>                     action="WEBCA_EvaluateURLs"
>
>                     value="753" condition="NOT Installed" />
>
>                 <sequence type="installexecute"
>
>                     action="WEBCA_GatherWebFolderProperties"
>
>                     value="3701" condition="NOT Installed" />
>
>                 <sequence type="installexecute"
>
>                     action="WEBCA_ApplyWebFolderProperties"
>
>                     value="3701" condition="NOT Installed" />
>
>                 <sequence type="installexecute"
>
>                     action="WEBCA_RollbackApplyWebFolderProperties"
>
>                     value="3701" condition="NOT Installed" />
>
>                 <sequence type="installexecute"
>
>                     action="WEBCA_CreateAppRoots"
>
>                     value="3701" condition="NOT Installed" />
>
>
>
>                 <sequence type="installui"
>
>                     action="WEBCA_TARGETVDIR"
>
>                     value="750" condition="TARGETVDIR=&quot;&quot;" />
>
>                 <sequence type="installui"
>
>                     action="WEBCA_TARGETPORT"
>
>                     value="750" condition="TARGETPORT=&quot;&quot;" />
>
>                 <sequence type="installui"
>
>                     action="WEBCA_CreateURLs"
>
>                     value="752" condition="NOT Installed" />
>
>                 <sequence type="installui"
>
>                     action="WEBCA_EvaluateURLsNoFail"
>
>                     value="753" condition="NOT Installed" />
>
>
>
>                 <sequence type="adminexecute"
>
>                     action="WEBCA_TARGETVDIR"
>
>                     value="750" condition="TARGETVDIR=&quot;&quot;" />
>
>                 <sequence type="adminexecute"
>
>                     action="WEBCA_TARGETPORT"
>
>                     value="750" condition="TARGETPORT=&quot;&quot;" />
>
>                 <sequence type="adminexecute"
>
>                     action="WEBCA_CreateURLs"
>
>                     value="752" condition="NOT Installed" />
>
>                 <sequence type="adminexecute"
>
>                     action="WEBCA_EvaluateURLs"
>
>                     value="753" condition="NOT Installed" />
>
>
>
>                 <sequence type="adminui"
>
>                     action="WEBCA_TARGETVDIR"
>
>                     value="750" condition="TARGETVDIR=&quot;&quot;" />
>
>                 <sequence type="adminui"
>
>                     action="WEBCA_TARGETPORT"
>
>                     value="750" condition="TARGETPORT=&quot;&quot;" />
>
>                 <sequence type="adminui"
>
>                     action="WEBCA_CreateURLs"
>
>                     value="752" condition="NOT Installed" />
>
>                 <sequence type="adminui"
>
>                     action="WEBCA_EvaluateURLsNoFail"
>
>                     value="753" condition="NOT Installed" />
>
>
>
>             </sequences>
>
>
>
>             <!-- Represents URL properties as a property -->
>
>             <urlproperties>
>
>                 <urlproperty name="TARGETURL" property="TARGETDIR" />
>
>             </urlproperties>
>
>
>
>             <!-- Represents VDir properties as a URL -->
>
>             <vdirproperties>
>
>                 <vdirproperty name="TARGETVDIR" portproperty="TARGETPORT"
>
>                     urlproperty="TARGETURL" />
>
>             </vdirproperties>
>
>
>
>             <!-- Creates an application root -->
>
>             <approots>
>
>                 <approot component="C__MainFiles"
>
>                     urlproperty="TARGETURL"
>
>                     inprocflag="2" />
>
>             </approots>
>
>
>
>             <!-- Set the directory properties for IIS -->
>
>             <iisproperties>
>
>                 <iisproperty directory="TARGETDIR" attr="626"
defaultdoc="Default.aspx" />
>
>                 <iisproperty directory="D__BINDIRECTORY" attr="112" />
>
>                 <iisproperty directory="D__IMAGESDIRECTORY" attr="114" />
>
>             </iisproperties>
>
>
>
>             <features>
>
>                 <feature name="F__DefaultFeature" title="${product.name}
Main Feature" display="1" typical="true" directory="TARGETDIR">
>
>                     <description>${product.name} core files.</description>
>
>                     <feature name="F__BinFeature" display="0"
typical="true"  />
>
>
>
>                 </feature>
>
>             </features>
>
>         </msi>
>
>     </target>
>
> </project>
>
>
>
>



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to