Kevin,

Here's a really simple MSI that works with the current nightly build:

This example takes a directory "SubDir" and packages it to be installed in a directory 
"SubDirInstall".

You can see what the format of the <directories> element is, and that the directory 
name is referenced in the <component> element directory attribute.

Noel

<project name="Test" default="MSI">

    <target name="MSI">
        <msi sourcedir="." output="SubDir.msi" verbose="true" >

            <properties>
                <property name="ProductName" value="SubDir Build" />
                <property name="ProductVersion" value="1.0.0.0" />
                <property name="Manufacturer" value="Open Source" />
                <property name="ProductCode" 
value="{1CE34C58-6898-4014-BB7A-09CDDDBD329A}" />
                <property name="UpgradeCode" 
value="{BBD58C5F-B736-4DEB-8903-E5951C43A3FE}" />
            </properties>

            <directories>
                <directory name="D__SD" foldername="SubDirInstall" 
root="WindowsVolume" />
            </directories>

            <components>
                <component name="C__SD" id="{14FE0FA6-D043-42B3-AB10-F40B1C390A82}" 
                            directory="D__SD" attr="2" 
                            feature="F__All" 
 installassembliestogac="false" >
                    <key file="README11.txt" />
                    <fileset basedir="SubDir">
                        <include name="*.*" />
                    </fileset>
                </component>
            </components>

            <features>
                <feature name="F__All" title="SubDir Build" display="2" typical="true">
                    <description>SubDir Build</description>
                </feature>
            </features>
             
        </msi>
    </target>
</project>

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Burton, Kevin
Sent: Sunday, July 25, 2004 1:03 AM
To: James Geurts; [EMAIL PROTECTED]
Subject: RE: [Nant-users] Deplyment example?

James,

Thank you for your response. I tried using the output from your converter in the 
target build and I get the below response. I tried to change the "directories" to 
"directory" but it still complains about the attribute 'file'. So I have:

  <properties>
    <property name="ProductCode" value="{B3393E3D-2475-4041-9AAF-40E5AB74D601}" />
    <property name="PackageCode" value="{B8D1525C-EF25-4C5E-9B20-E29CE065E808}" />
    <property name="ProductLanguage" value="1033" />
    <property name="ProductName" value="ApplicationServer" />
    <property name="UpgradeCode" value="{9F184884-DED4-4D34-B546-95D3BFE93FF1}" />
    <property name="ARPCONTACT" value="Kevin Burton" />
    <property name="ARPCOMMENTS" value="Application Server for Visa DPS MR10" />
    <property name="Manufacturer" value="Visa" />
    <property name="ProductVersion" value="2.0.0" />
  </properties>
  <directory />

The error seems to indicate that I am missing a file attribute in the <proporties>.

Kevin Burton
[EMAIL PROTECTED]

NAnt 0.85 (Build 0.85.1664.0; net-1.0.win32; nightly; 7/22/2004)
Copyright (C) 2001-2004 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///D:/Projects/Visa/MR0804/Application Server Code/ApplicationSe
rverSetup/default.build
Target(s) specified: build


build:

     [echo] Building ApplicationServerSetup...
      [msi] Validation Error: The element 'NAnt.Contrib.Tasks.Msi.MsiTask:direct
ories' has incomplete content. Expected 'NAnt.Contrib.Tasks.Msi.MsiTask:director
y'. An error occurred at , (13, 4).

Build failed

Validation Error: The required attribute 'file' is missing. An error occurred at
 , (17, 8).

Total time: 0.9 seconds.


-----Original Message-----
From: James Geurts [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 24, 2004 8:03 PM
To: Burton, Kevin; [EMAIL PROTECTED]
Subject: RE: [Nant-users] Deplyment example?


Hi Kevin,

Vdproj files are not currently supported by that task.  I created a program
to convert vdproj files into an xml fragment to be used by the msi/msm tasks
in NAntContrib.  It should get you started...

You can find the program at:
http://www.biasecurities.com/SoftwareBuilds/Installer.Tools/20040606_VDProjC
onverter-1.0.2.22_bin.zip

If anyone wants to tackle integrating that code into the solution tag,
please feel free :)  

Hope that helps a little...

Jim


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Burton, Kevin
Sent: Saturday, July 24, 2004 8:14 PM
To: [EMAIL PROTECTED]
Subject: [Nant-users] Deplyment example?

The <solution> tag very specifically status that only C#, J#, and C++
projects are supported. The deployment projects that I have are skipped. I
was wondering if anyone had a solution or an example on how to build a
deplyment project with nant? The result would be Setup.exe, Setup.ini. and a
XXXX.msi file. Any suggestions?

Thank you.


Kevin Burton
[EMAIL PROTECTED]


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&opĚk
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=ick
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to