Right, sorry for not getting back to you sooner.  I'll consider this a bug
with the task, and add a check to make sure that ProductCode and UpgradeCode
are defined.  Thanks for pointing this out...

Jim


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ted
Quinby
Sent: Thursday, January 29, 2004 4:13 PM
To: [EMAIL PROTECTED]
Subject: [NAntC-Dev] Re: basic msi target implementation question

Consider it figured out.

By adding the following,

<property name="ProductCode" value="{EEDB0FA4-01F3-465f-8D1F-1705181B560E}"
/>

everything looks AOK.

Ted



Original message:

I'm trying to figure out how the msi target works by creating an incredibly 
basic example and playing around with components, features, etc. (see
below).

The target builds and successfully creates an msi file.  When I execute the 
msi file, everything runs fine until the very last step.  I get the 
following errors:

"Install Engine Not Initialized"

Followed by:

"Called InstallFinalize when no install in progress!"

This is probably due to a very simple and perhaps obvious 
omission/error.  The problem is that it's not obvious to me.

Any thoughts?

Thanks,

Ted


<?xml version="1.0"?>
<!--*****************************************************************-->
<!--* msitest.build                                             *-->
<!--*                                                               *-->
<!--* Builds the MSI or MSM of a basic exe application             *-->
<!--*****************************************************************-->
<!--
        Trying to create a very basic msi target - not yet working!
-->

<project name="msitest" >

 
<!--*****************************************************************-->
     <!--* Create the .msi Windows Installer setup file
*-->
 
<!--*****************************************************************-->
     <target name="msi" description="Build MSI install">
         <property name="addin.dir" 
value="C:\earthit\users\quinby\Solutions\msitest\addin" />
         <property name="installsource.dir" 
value="C:\earthit\users\quinby\Solutions\msitest\bin\Debug"/>
         <msi
             output="msitest.msi"
             sourcedir="${installsource.dir}"
             banner="${addin.dir}\installlogo.bmp"
             background="${addin.dir}\installbg.bmp"
             license="${addin.dir}\license.rtf"
             debug="true"
             verbose="true"
         >
             <properties>
                 <property name="ProductName" value="MSITest" />
                 <property name="ProductVersion" value="1.0" />
                 <property name="Manufacturer" value="EarthIT"/>
             </properties>
             <directories>
                 <directory name="MSITESTFOLDER" foldername="MSITest" 
root="ProgramFilesFolder" />
             </directories>
             <features>
                 <feature name="DefaultFeature" title="MSITest" display="1" 
typical="true">
                     <description>The MSITest installer.</description>
                 </feature>
             </features>
             <components>
                 <component name="MSITESTFiles" 
id="{D8B62C45-7A38-401d-9EEB-B3AE60B633F2}" attr="2" 
directory="MSITESTFOLDER" feature="DefaultFeature">
                     <key file="msitest.exe" />
                     <fileset basedir="${installsource.dir}">
                         <includes name="msitest.exe" />
                     </fileset>
                 </component>
             </components>
         </msi>
     </target>
</project> 



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
NAntContrib-Developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
NAntContrib-Developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer

Reply via email to