IMO the danger is being overestimated.

Windows isn't that dumb. It doesn't care if all your MSI short names are 
Something~1 (or any other name for that matter) because it ignores them. It's 
easy to demonstrate that every time Windows sees a short name that conflicts 
with one already in the destination directory it will create a new one when the 
file is added to the directory. A

The warning implies that you cannot safely install these MSI file table entries:

SOMELO~1.EXE|somelongfile4name.exe
SOMELO~1.EXE|somelongfile3name.exe
SOMELO~1.EXE|somelongfile2name.exe
SOMELO~1.EXE|somelongfile1name.exe
SOMELO~1.EXE|somelongfile5name.exe

Into a folder which already has

Somelongfile6name.exe
Somelongfile7name.exe
Somelongfile8name.exe
Somelongfile9name.exe
Somelongfile10name.exe

Which all have some unpredictable long names, including         SOMELO~1.EXE 
and SOMELO~2.EXE.

In reality the install works fine. Calling the GetShortPath API confirms that 
none of the short names in the MSI file table are relevant.  The only caveat I 
can think of is the (mythical?) OS that doesn't do long names, and I'm pretty 
sure there are none of those around any more, so I've never tested this on a 
SFN-only system.

Phil Wilson

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Mensching
Sent: Friday, June 27, 2008 12:11 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Warning CNDL1044 - How to get rid of this?

No, why would we remove the warning?  You're doing a dangerous thing, the 
compiler is trying to help you.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mathur, Uttam 
(GTS)
Sent: Friday, June 27, 2008 11:19
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Warning CNDL1044 - How to get rid of this?

Thanks Rob but I have 5000 files (5000 rows in XML file) in my package
and I don't think this is the "easiest fix". Can we assume this warning
will go away in new version of WIX?


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rob
Mensching
Sent: Friday, June 27, 2008 2:11 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Warning CNDL1044 - How to get rid of this?

The easiest fix is to remove the ShortName attribute.  The WiX toolset
will generate a stable identifier that doesn't have the ambiguity
problem.

PS:  Is there some way to improve the error message?  It's basically
telling you that you need change the short name since it could collide
with other files already on the system.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mathur,
Uttam (GTS)
Sent: Friday, June 27, 2008 11:09
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Warning CNDL1044 - How to get rid of this?

I am using Wix toolkit 3.0.4220.0.

Thanks.



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rob
Mensching
Sent: Friday, June 27, 2008 2:07 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Warning CNDL1044 - How to get rid of this?

What version of the WiX toolset are you using?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mathur,
Uttam (GTS)
Sent: Friday, June 27, 2008 10:47
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Warning CNDL1044 - How to get rid of this?

Hello,

I am constantly receiving this warning upon building the WIX project
file:

Warning CNDL1044: The File/@ShortName attribute's value 'PERFOR~1.XML'
is an ambiguous short name because it ends with a '~' character followed
by a number.  Under some circumstances, this name could resolve to more
than one file or directory name and lead to unpredictable results (for
example 'MICROS~1' may correspond to 'Microsoft Shared' or 'Microsoft
Foo' or literally 'Micros~1').

Please can someone suggest, how to get rid of this warning CNDL1044?
Fyi, I am compiling from Visual Studio 2008 and I don't know how to
suppress this warning (like we can do by passing it to Candle.exe from
command prompt).

TIA,
Uttam
--------------------------------------------------------

This message w/attachments (message) may be privileged, confidential or
proprietary, and if you are not an intended recipient, please notify the
sender, do not use or share it and delete it. Unless specifically
indicated, this message is not an offer to sell or a solicitation of any
investment products or other financial product or service, an official
confirmation of any transaction, or an official statement of Merrill
Lynch. Subject to applicable law, Merrill Lynch may monitor, review and
retain e-communications (EC) traveling through its networks/systems. The
laws of the country of each sender/recipient may impact the handling of
EC, and EC may be archived, supervised and produced in countries other
than the country in which you are located. This message cannot be
guaranteed to be secure or error-free. This message is subject to terms
available at the following link:
http://www.ml.com/e-communications_terms/. By messaging with Merrill
Lynch you consent to the foregoing.
--------------------------------------------------------
------------------------------------------------------------------------
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to