Hi, I've run into a problem building an msi using nAnt. I hope you can give me some idea of what is wrong.
I am setting up my directory as seen in the build below. When I set the foldername for USR to something five characters long or less, I get an entry for it in the Defaultdir field of the directory table that looks like c:\usr12|usr12 msiexec does not like this and gives a 2714 error. If I set the foldername for USR to 6 or more characters, the Defaultdir field looks like usr123|usr123 Do you have any idea what might be causing this or how I could get around it? I have not been able to find any discussion of this issue on the web. Here is the entire build file. When I set USR to "usr123" it build and installs correctly. If I set USR to "usr12" it builds OK, but msiexec fails. <?xml version="1.0"?> <project name="Scanner" xmlns="http://nant.sf.net/release/0.85/nant.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://nant.sf.net/release/0.85/nant.xsd http://ilqhfaatc1ws628/nant.xsd"> <!-- Nant command line: c:\nant\nant -debug+ /f:"D:\LaptopServiceTools\ShortFilenameFailure.build.xml" -v+ create.msi --> <target name="create.msi"> <setenv> <!--Set path to CabArc.exe.--> <variable name="PATH" path="c:\Program Files\Microsoft Visual Studio 8\Common7\Tools\Bin\;%PATH%" /> </setenv> <msi sourcedir="c:\" output="c:\test.msi"> <properties> <property name="ProductName" value="nAntTest" /> <property name="ProductVersion" value="2.5.1.0002" /> <property name="Manufacturer" value="Test" /> <property name="ProductCode" value="{F86BC501-47EB-4A14-BB01-2CC2CB8D1232}"/> <property name="UpgradeCode" value="{B095E2D1-B9D1-412B-8B1D-A914E8876DD5}"/> <property name="TARGETDIR" value="c:\"/> </properties> <directories> <directory name="USR" foldername="usr12" root="TARGETDIR"> <directory name="DIAMONDROOT" foldername="diamond.root"> <directory name="BIN" foldername="bin"/> <directory name="CCFG" foldername="comcal_cfg"/> <directory name="CFG" foldername="cfg"> <directory name ="APPDEFAULTS" foldername="app-defaults"/> </directory> </directory> <directory name="SERVICEROOT" foldername="service.root"> <directory name="RELI" foldername="reli"/> </directory> <directory name="DIAMONDDATA" foldername="diamond.data"> <directory name="PHYSICSLOG" foldername="Physics_log"/> </directory> </directory> </directories> <components> <component name="DiamondRootBinFiles" id="{9904C798-B9F7-450D-902A-1C92D7008014}" attr="2" directory="BIN" feature="FilesFeature" keepsubdirs="true"> <key file="cmd.exe"/> <fileset basedir="c:\Windows\system32"> <include name="cmd.exe" /> </fileset> </component> </components> <features> <feature name="FilesFeature" title="Scanner" display="1" typical="true" directory="C__DRIVE"> <description>Log viewer support files Files</description> </feature> </features> </msi> </target> </project> Thanks for any help you can provide The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users