Hi Thomas,

The snippet of Nant Script you posted looks sensible.  Are you allowed to post the whole script?  It would help to see what the rest of the script looks like.  When you view the created msi, what entries do you get in the FeatureComponents table?  Is there a directory structure under your release If you are adding files to a component that are in sub-directories, then behind the scenes, the <msi> tasks will create separate components for these as a component is associated with a single directory, so you can't have a directory heirarchy in a single component.  The associations between these components and the feature you linked your "real" component to are in the FeatureComponents table.  In here I would expect to see all the components in your component table linked to F__DefaultFeature.

It's also probably worth running the install in debug mode to see if there are any errors, and check that the install thinks it should be installing the components and feature.  to do this, run the following from a DOS prompt:

        msiexec /i <your install.msi> /lx Logfile.txt

Cheers,

Bill








From "Thomas Schroedter" <[EMAIL PROTECTED]>@lists.sourceforge.net
Sent by: [EMAIL PROTECTED]

09/05/2006 04:57


To
<[EMAIL PROTECTED]>
cc
<[email protected]>, <[EMAIL PROTECTED]>
Subject
RE: [NAnt-users] How to modify the MSITaskTemplate.msi file?






Hi Bill,
 
I checked my MSI file and it looks like all DLLs are in the MSI file. Each DLL in it's own Component, but the components don't belong to the default feature or any other feature. How can I change that with Orca and in my Nant script?
 
At the moment I use the following code to include the DLLs:
...
    <!--
    ==========================
    BEGIN: Main folder content
    ==========================
    -->
   <!-- Main files (*.dll, *.exe -->
   <component
    name  = "C__Main_Files"
    id   = "{FAF2D6DD-82A4-4738-A40F-09D236B4B2E4}"
    attr  = "2"
    directory = "TARGETDIR"
    feature  = "F__DefaultFeature">
    <key file="Fiducian.Desktop.exe"/>
    <fileset basedir="${release.dir}">
     <include name="*.*" />
     <exclude name="*.bat"/>
     <exclude name="*.cs"/>
     <exclude name="*.xml"/>
     <exclude name="*.pdb"/>
     <exclude name="*.resx"/>
     <exclude name="*.SCC"/>      
     <exclude name="*.csproj"/>      
     <exclude name="*.vspscc"/>
    </fileset>
   </component>

...
 
Thanks,
Thomas
 
-----Original Message-----
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent:
Friday, 5 May 2006 6:00 PM
To:
Thomas Schroedter
Cc:
[email protected]; [EMAIL PROTECTED]
Subject:
Re: [NAnt-users] How to modify the MSITaskTemplate.msi file?


Hi Thomas,


I did edit the default template that comes with the <msi> task as I wanted to remove the user name and the License agreement dialogs (as it's an internal install)


As I don't have any commercail software for editing the msi, I simply used Orca.  To remove the dialogs, you need to edit the Dialog, Control, ControlEvent and possibly the ControlCondition tables.  Changing these shouldn't affect what files are installed.


Is CustomDlg one you've build yourself, or do you mean the CustomizeDlg one that ships as part of the template?  If you have created your own dialog, are you sure you are setting the correct Install level or Action Statesfor the features?  If you are not allowing the user to select which features to install, have you got all your features set to be part of the typical install?  (set the 'typical' attribute of the <feature> element to 'true'.)


HTH,


Bill









>From "Thomas Schroedter" <[EMAIL PROTECTED]>@lists.sourceforge.net
Sent by: [EMAIL PROTECTED]

05/05/2006 06:24



To
<[email protected]>
cc
Subject
[NAnt-users] How to modify the MSITaskTemplate.msi file?








Hi,

I've got a working nant script which creates a msi file. It works fine with
the default MSI Template provided by NAntContrib. But I have tried to change

the displayed dialogs in MSI Template file, using InstallShield Developer.

What I want to do is to skip the 'Welcome' dialog and display the "CustomDlg'

instead. The goal is to allow the user to select the destination folder for

the installation and nothing else!

I deleted 'WelcomeDlg" from the list and added "CustomDlg". When I run my

nant script everything seems to be fine. I get the new MSI file, but when I

install it half the files are missing. Looks like all DLL files are not

installed, the calulated disk space is arround 1 MByte, normaly 30MByte.

Is there some one out there who has already modified the default MSI
Template?


Thanks,

Thomas

****** IMPORTANT ******
This email and any attachments transmitted with it are confidential. If you are not the intended recipient or person responsible for delivering the email to the intended recipient, you are prohibited from disclosing, copying or using the information contained in it. If you have received this email in error, contact us by replying to this email and delete all copies of the message and attachments from your system.
Before opening or using attachments, check them for viruses and defects. We accept no responsibility for any damage caused by any computer viruses or other defects or conditions which may damage or interfere with data, hardware or software with which it might be used. This email and any attachment may have been modified or otherwise interfered with in the course of its transmission. We give no warranty that the integrity of this email has been maintained.
Fiducian Portfolio Services Limited ABN 13 073 845 931 AFS Licence 231101. Email: [EMAIL PROTECTED]


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________




IMPORTANT
The information contained in this e-mail and any attachments is intended for the addressee only
and may contain legally privileged or confidential information. If you are not the intended
recipient you must not use, disclose, copy, distribute, alter, or take any action in reliance
on the information and Avon Insurance plc will not accept liability for any loss or damage howsoever
arising, directly or indirectly in reliance on it and gives no warranty or representation as to its
accuracy or reliability. If you are not the addressee, please notify us immediately on 01789 202121*
and delete the material from your computer and destroy any copies.

Avon Insurance plc reserves the right to monitor and record incoming and outgoing email messages for
the purposes of investigating or detecting unauthorised use of its system and ensuring its effective operation.
Avon Insurance plc will not accept liability for any loss or damage as a result of any virus being passed on.

Avon Insurance plc (No. 209606).
Registered in England. Registered Office: Arden Street, Stratford upon Avon, Warwickshire CV37 6WA.
Authorised and regulated by the Financial Services Authority.
A member of the NFU Mutual group of companies and the Association of British Insurers.

*For security and training purposes, telephone calls may be recorded and monitored.


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________




IMPORTANT
The information contained in this e-mail and any attachments is intended for the addressee only
and may contain legally privileged or confidential information. If you are not the intended
recipient you must not use, disclose, copy, distribute, alter, or take any action in reliance
on the information and Avon Insurance plc will not accept liability for any loss or damage howsoever
arising, directly or indirectly in reliance on it and gives no warranty or representation as to its
accuracy or reliability. If you are not the addressee, please notify us immediately on 01789 202121*
and delete the material from your computer and destroy any copies.


Avon Insurance plc reserves the right to monitor and record incoming and outgoing email messages for
the purposes of investigating or detecting unauthorised use of its system and ensuring its effective operation.
Avon Insurance plc will not accept liability for any loss or damage as a result of any virus being passed on.


Avon Insurance plc (No. 209606).
Registered in England. Registered Office: Arden Street, Stratford upon Avon, Warwickshire CV37 6WA.
Authorised and regulated by the Financial Services Authority.
A member of the NFU Mutual group of companies and the Association of British Insurers.


*For security and training purposes, telephone calls may be recorded and monitored.

Reply via email to