Hi Piotr,

You found two bugs... thanks!  First, if the table previously existed, table
data was not being inserted.  The second is regarding the Modify, Mode,
Record error that you got.  Orca tends to leave records in the _Validation
table (when tables are dropped), and the NAnt msi code failed when there was
an existing record in the _Validation table.  I’ve fixed both of these bugs
and checked the changes into cvs.  

If you are unable to get the latest from CVS, a workaround would be to drop
the ComboBox table and drop row(s) from the _Validation table that have a
table column value equal to "ComboBox".

I’ve included the test build file that I used for testing inserting the
ComboBox table...

Hope that helps,

Jim





________________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
mail.laconiadatasystems.com
Sent: Tuesday, June 01, 2004 9:43 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [Nant-users] MSI TASK and ComboBox Table problem :(

Piotr:
You must install the DataSource in the ODBCDataSourceTable
Please review
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/i
nstallodbc_action.asp

Then later within nant script refer to the installed ODBCDataSourceTable in
your constructed <components tag
http://nantcontrib.sourceforge.net/nightly/help/tasks/msi.html
(which also states you need cabarc.exe on the path also from 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncabsdk/ht
ml/cabdl.asp)

if you setup the <components tag
The attr attribute has the characteristic which would allow you to set to
32
If this bit is set, the value in the KeyPath column is a key into the
ODBCDataSource table.

Rozumie?
-Martin Gainty
http://www.laconiadatasystems.com
(Boston MA USA) 001-617-852-7822
OOA/OOD Instructor/Consultant/Chess Nut
----- Original Message ----- 
From: Piotr Perko 
To: [EMAIL PROTECTED] 
Sent: Tuesday, June 01, 2004 4:34 AM
Subject: [Nant-users] MSI TASK and ComboBox Table problem :(

Hello,
I’m using nant085+nant conntrib0.85.
I want to create a ComboBox with List of properties attached to it.
Unfortunatelly when I want to create a table, it doesnt creates or is empty
without rows :///

The code looks like this :

<tables>
  <table name="ComboBox">
  <columns>
      <column name="Property" nullable="false" key="true"
category="Identifier" description="A named property to be tied to is item.
All the items tied to the same property become part of the same combobox."
/>
      <column name="Order" nullable="false" key="true" category="Integer"
description="A positive integer used to determine the ordering of the items
within one list.The integers do not have to be consecutive." />
      <column name="Value" nullable="false" key="false" category="Formatted"
description="The value string associated with this item. Selecting the line
will set the associated property to this value." />
      <column name="Text" nullable="true" key="false" category="Formatted"
description="The visible text to be assigned to the item. Optional. If this
entry or the entire column is missing, the text is the same as the value."
/>
  </columns>
        <rows>
            <row>
              <columns>
                  <column name="Property" value="SL" />
                  <column name="Order" value="1"/>
                  <column name="Value" value="Server1"/>
                  <column name="Text" value="s1"/>
              </columns>

            </row>
            <row>
              <columns>
                  <column name="Property" value="SL" />
                  <column name="Order" value="2"/>
                  <column name="Value" value="Server2"/>
                  <column name="Text" value="s2"/>
              </columns>
            </row>

        </rows>                 
  </table>
</tables>

<controls>
         <control dialog="CA" name="ComboBox" type="ComboBox" x="50" y="110"
width="100" height="50" attr="3" property="SL"/>
<controls>

If the table ComboBox exists in the msi template nothing happens = no rows
are added so the ComboBox is empty
When I remove ComboBox from MSI template the errors occurs when adding table
structure :
Unable to build MSI database 'C:\n\CA\CASetup.msi'.
    Modify,Mode,Record

No idea whats going on…. Is there no way to put some values in ComboBox
Group Box etc with nant ??

Piotr Perko
Configuration Manager
Altkom Akademia SA
Phone: +48 22 860-70-42
[EMAIL PROTECTED]

Attachment: TestMsi.build
Description: Binary data

Reply via email to