Sorry all, I got the address wrong the first time...

---------- Forwarded message ----------
From: Jim Geurts <[EMAIL PROTECTED]>
Date: Thu, 26 Aug 2004 08:12:54 -0500
Subject: Re: nant
To: "Burton, Kevin" <[EMAIL PROTECTED]>,
[EMAIL PROTECTED]

Hey Kevin,

The dialogs that are present in the default msi template are not the
same as the dialogs added to the visual studio builds.  If you are
interested in using the visual studio dialogs, you can, but it takes a
little bit of work.

First, you will need to specify to use a template that works with
visual studio (loads defafult directories, etc).  I have one
(MSITaskTemplateVS.msi and MSMTaskTemplateVS.msm) checked into the bin
directory of NAntContrib.

You will also need to import Visual Studio's dialogs.  They come in
files of type wim and wid and are basically just configurable merge
modules.  Meaning they are merge modules that you can specify
properties when merging.  So... to put all of this together, you'll
get a build file similar to:

<readregistry property="nant.vsnet.dialog.dir" hive="LocalMachine"
key="Software\Microsoft\VisualStudio\7.1\Deployment\DialogTemplates\DefaultDir"
/>
<msi output="Setup1.msi" sourcedir="C:\Dev\Setup1\Debug"
template="${nant.location}/MSITaskTemplateVS.msi">
  <properties>
    <property name="ProductCode"
value="{F19FBEF4-A7B1-442B-A245-8A3785F4A6F3}" />
    <property name="PackageCode"
value="{6BF1034B-90A8-43B1-B153-1FA21170D4BA}" />
    <property name="ProductLanguage" value="1033" />
    <property name="ProductName" value="Setup1" />
    <property name="UpgradeCode"
value="{027B2855-0889-4989-A891-06B9041889D5}" />
    <property name="ARPCONTACT" value="Edstrom Industries, Inc." />
    <property name="Manufacturer" value="Edstrom Industries, Inc." />
    <property name="ProductVersion" value="1.0.0" />
  </properties>
  <directories >
     <directory name="D__mydir" foldername="mydir" root="TARGETDIR" />
  </directories>
  <components>
  ....
  </components>
  <features>
    <feature name="DefaultFeature" title="DefaultFeature" display="1"
typical="true" />
  </features>
  <mergemodules>
    <merge feature="DefaultFeature">
      <modules>
        <includes name="${nant.vsnet.dialog.dir}/1033//VsdUserInterface.wim" />
        <includes name="${nant.vsnet.dialog.dir}/1033//VsdConfirmDlg.wid" />
        <includes name="${nant.vsnet.dialog.dir}/1033//VsdWelcomeDlg.wid" />
        <includes name="${nant.vsnet.dialog.dir}/1033//VsdFolderDlg.wid" />
        <includes
name="${nant.vsnet.dialog.dir}/1033//VsdAdminConfirmDlg.wid" />
        <includes name="${nant.vsnet.dialog.dir}/1033//VsdAdminFolderDlg.wid" />
        <includes
name="${nant.vsnet.dialog.dir}/1033//VsdAdminWelcomeDlg.wid" />
        <includes name="${nant.vsnet.dialog.dir}/1033//VsdFinishedDlg.wid" />
        <includes
name="${nant.vsnet.dialog.dir}/1033//VsdAdminFinishedDlg.wid" />
        <includes
name="${nant.vsnet.dialog.dir}/1033//VsdAdminProgressDlg.wid" />
        <includes name="${nant.vsnet.dialog.dir}/1033//VsdBasicDialogs.wim" />
        <includes name="${nant.vsnet.dialog.dir}/1033//VsdProgressDlg.wid" />
      </modules>
      <configurationitems>
        <configurationitem module="VsdWelcomeDlg.wid" name="Welcome"
value="#1203" />
        <configurationitem module="VsdWelcomeDlg.wid"
name="CopyrightWarning" value="#1202" />
        <configurationitem module="VsdAdminWelcomeDlg.wid"
name="Welcome" value="#1203" />
        <configurationitem module="VsdAdminWelcomeDlg.wid"
name="CopyrightWarning" value="#1202" />
        <configurationitem module="VsdFinishedDlg.wid"
name="UpdateText" value="#1258" />
        <configurationitem module="VsdAdminProgressDlg.wid"
name="ShowProgress" value="1" />
        <configurationitem module="VsdProgressDlg.wid"
name="ShowProgress" value="1" />
      </configurationitems>
    </merge>
  </mergemodules>
</msi>

The default installation directory (TARGETDIR) for the NAnt template
is set to Program Files\ManufacturerName\Product Name

To get your methods to run, you need to create a custom action.  You
will need to manually define where and when the custom action will
run.  There is an example or two on how to do this on the wiki.  If
you need further help, let me know.

Hope this sort of helps :)

Jim




On Wed, 25 Aug 2004 11:05:29 -0600, Burton, Kevin <[EMAIL PROTECTED]> wrote:
> One more question.
>
> I ran the .msi file that was generated. It asked me for license aggreement; Typical, 
> Custom, Full Install; prompted for my name and company. I double clicked on the .msi 
> file and I got all of this. When I ran the setup.exe that was generated from the 
> setup project I was not prompted for all of this. Then when I click on the final 
> "Install" button it appears to be copying some files but I am not sure where the 
> files were copied to. I was never prompted for an installation directory. Also there 
> are some setup files that need to run at install time (sets up database and 
> services) these where not run. When I had the Visual Studio setup project I 
> decorated a class with [RunInstaller] and derivce from the Installer class and those 
> methods would get run at install time. How does this work with nant?
>
>         [RunInstallerAttribute(true)]
>         public class PPCSQLInstaller : Installer
>
>         [RunInstallerAttribute(true)]
>         public class ApplicationServiceInstaller : Installer
>
> Thank you for your continued help.
>
> Kevin
>
> -----Original Message-----
> From: Jim Geurts [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 25, 2004 10:35 AM
> To: Burton, Kevin
> Subject: Re: nant
>
> Ok.. I'll try to help you out using this email address for now, I guess :)
>
> I seem to recall a problem putting quotes around the path.  I'll look
> into maybe converting the path, passed to cabarc, to dos 8.3 format.
>
> A workaround for now is that you could copy the files to a temp
> directory and use that temp directory to populate the msi.
>
> Jim
>
> btw, I replied to your post on nant-users and nant-contrib-developers.
>
> On Wed, 25 Aug 2004 09:19:48 -0600, Burton, Kevin <[EMAIL PROTECTED]> wrote:
> > Thank you for your response.
> >
> > I guess somehow you were being blocked because this is the first email that I 
> > received from you. I will try removing the space or somehow escaping it. Do you 
> > think escaping the path or somehow enclosing it in quotes will work? It would be 
> > very hard to change the directory path name for me at this point.
> >
> > Did you post to the NANT list or NANT-CONTRIB?
> >
> > Thanks again.
> >
> > Kevin
> >
> > -----Original Message-----
> > From: Jim Geurts [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, August 25, 2004 10:09 AM
> > To: Burton, Kevin
> > Subject: nant
> >
> > I don't know if your spam software blocks every email I send to you,
> > but I've answered your msi question 3 times now.
> >
> > Try removing the space from the directory path.  I think there is a
> > bug w/ cabarc that does not allow file paths with spaces.
> >
> > Btw, I originally posted this, to the list & to your email, from
> > [EMAIL PROTECTED]
> >
> > Jim
> >
>


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
NAntContrib-Developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer

Reply via email to