All,

 

I’m trying to create an MSI using the <msi> task.  I got the most recent nightly nant build (7/17/2004).

The build generated this exception:

System.ArgumentException: Version conflict with ResourceManager .resources files!  Expected version: 1 but got: 2

 

Besides the exception that I got, I could use some help with the msi task.  The 5/25 build doesn’t like the task elements.

My build target and msi task is shown below.

 

I want to create a very simple MSI for deployment to some web servers.

After my build runs, I have the following directory structure

            V1.0.3.4\Storefront

            V1.0.3.4\CatalogManager

            V1.0.3.4\GAC-Installs

            V1.0.3.4\Profiles

            V1.0.3.4\WebServices

 

The deployment is almost a straight copy to the following directories:

            D:\inetpub\wwwroot-storefront\Storefront

            D:\inetpub\wwwroot-storefront\CatalogManager

            D:\inetpub\wwwroot-storefront\WebServices

            C:\Program Files\ITBAS\Profiles

 

            Install all files from the GAC-Installs directory into the GAC.

 

The person installing the MSI shouldn’t be allowed to change locations or installed components.

 

Any help would be much appreciated.  I’ve never created an MSI before.

 

Thanks,

Noel

 

 

 

C:\Projects\Storefront-CI>nant\bin\nant /f:Test.build MSI
NAnt 0.85 (Build 0.85.1659.0; net-1.0.win32; nightly; 7/17/2004)
Copyright (C) 2001-2004 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///C:/Projects/Storefront-CI/Test.build
Target(s) specified: MSI

MSI:


Build failure

INTERNAL ERROR

System.ArgumentException: Version conflict with ResourceManager .resources files!  Expected version: 1 but got: 2
   at System.Resources.ResourceReader.ReadResources()
   at System.Resources.ResourceReader..ctor(Stream stream, Hashtable table)
   at System.Resources.RuntimeResourceSet..ctor(Stream stream)
   at System.Resources.ResourceManager.CreateResourceSet(Stream store)
   at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tr
yParents)
   at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tr
yParents)
   at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tr
yParents)
   at System.Resources.ResourceManager.GetString(String name, CultureInfo culture)
   at System.Resources.ResourceManager.GetString(String name)
   at NAnt.Contrib.Tasks.SchemaValidatedTask.InitializeTask(XmlNode TaskNode) in C:\Documents and Settings\drieseng\Loca
l Settings\Temp\tmp11F4.tmp\src\Tasks\SchemaValidatedTask.cs:line 99
   at NAnt.Contrib.Tasks.Msi.MsiTask.InitializeTask(XmlNode TaskNode) in C:\Documents and Settings\drieseng\Local Settin
gs\Temp\tmp11F4.tmp\src\Tasks\Msi\MsiTask.cs:line 353
   at NAnt.Core.Task.InitializeElement(XmlNode elementNode) in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmpA66.tmp\src\NAnt.Co
re\Task.cs:line 407
   at NAnt.Core.Element.Initialize(XmlNode elementNode, PropertyDictionary properties, FrameworkInfo framework) in C:\DO
CUME~1\drieseng\LOCALS~1\Temp\tmpA66.tmp\src\NAnt.Core\Element.cs:line 272
   at NAnt.Core.Element.Initialize(XmlNode elementNode) in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmpA66.tmp\src\NAnt.Core\E
lement.cs:line 192
   at NAnt.Core.Project.CreateTask(XmlNode taskNode, Target target) in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmpA66.tmp\src
\NAnt.Core\Project.cs:line 1003
   at NAnt.Core.Target.Execute() in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmpA66.tmp\src\NAnt.Core\Target.cs:line 247
   at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmpA
66.tmp\src\NAnt.Core\Project.cs:line 876
   at NAnt.Core.Project.Execute() in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmpA66.tmp\src\NAnt.Core\Project.cs:line 833
   at NAnt.Core.Project.Run() in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmpA66.tmp\src\NAnt.Core\Project.cs:line 903

Please send bug report to [EMAIL PROTECTED]

Total time: 1.7 seconds.



    <target name="MSI">
        <msi output="C:\Projects\V1.0.4.17.msi" sourcedir="C:\Projects\V1.0.4.17" verbose="true">
            <features>
                <feature name="StorefrontProject" display="1" title="All of Storefront" typical="true"
                    directory="C:\Projects\V1.0.4.17\Storefront" attr="16" />
            </features>
            <components>
                <component name="D_Storefront" feature="StorefrontProject"
                    directory="D:\inetpub\wwwroot-storefront\Storefront"
                    id="{000F93F1-30E8-48E2-ABB2-96D4CEC8202E}" attr="0" installassembliestogac="false">
                    <key file="default.aspx" />
                    <fileset basedir="D:\inetpub\wwwroot-storefront\Storefront">
                        <include name="**\*.*" />
                    </fileset>
                </component>
                <component name="D_CatalogManager" feature="StorefrontProject"
                    directory="D:\inetpub\wwwroot-storefront\CatalogManager"
                    id="{C61BCC71-9315-4EAE-AC66-589ABD0E2379}" attr="0" installassembliestogac="false">
                    <key file="default.aspx" />
                    <fileset basedir="D:\inetpub\wwwroot-storefront\CatalogManager">
                        <include name="**\*.*" />
                    </fileset>
                </component>
                <component name="D_WebServices" feature="StorefrontProject"
                    directory="D:\inetpub\wwwroot-storefront\WebServices"
                    id="{0825B8AA-27D0-4800-A1B1-4672F5C94E45}" attr="0" installassembliestogac="false">
                    <key file="default.aspx" />
                    <fileset basedir="D:\inetpub\wwwroot-storefront\WebServices">
                        <include name="**\*.*" />
                    </fileset>
                </component>
                <component name="D_GAC" feature="StorefrontProject"
                    directory="D:\Applications\Storefront-GAC"
                    id="{0139707C-18B7-4F89-A8B0-42B8B8A74F19}" attr="0" installassembliestogac="true">
                    <key file="Test.dll" />
                    <fileset basedir="D:\Applications\Storefront-GAC">
                        <include name="*.*" />
                    </fileset>
                </component>
            </components>
        </msi>

 

 

 

 

_____________________________________________

Noel Gifford

Intel® IT Information Services & Technology Group

Supply Chain & Workflow Automation Development

 

 

 

Reply via email to