Bugs item #1868600, was opened at 2008-01-10 15:28
Message generated for change (Comment added) made by barnson
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1868600&group_id=105970

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: candle
Group: None
>Status: Closed
>Resolution: Wont Fix
Priority: 5
Private: No
Submitted By: recitalsoftware (recitalsoftware)
Assigned to: pmarcu (pmarcu)
Summary: ODBCDriver Long file name

Initial Comment:
When using long filenames with the ODBCDriver element the entry in the registry 
is not added correctly;

<Component Id='ODBCDriverInstall' Guid='Removed For Example' 
SharedDllRefCount="yes">
   <File Id='RecitalODBCSetupDLL' Name='RecitalODBCSetup.dll' DiskId='1'        
  Source='C:\Windows\System32\RecitalODBCSetup.dll' Vital='yes'>
   </File>
   <File Id='RecitalODBCDLL' Name='RecitalODBC.dll' KeyPath='yes' DiskId='1' 
Source='C:\Windows\System32\RecitalODBC.dll' Vital='yes'>
      <ODBCDriver Id='RecitalUniversalODBCDriver' Name='Recital Universal ODBC 
Driver' SetupFile='RecitalODBCSetupDLL' />
   </File>
</Component>

And the registry entries are

Driver
C:\WINDOWS\system32\nqovn5rh.dll|RecitalODBC.dll

Setup
C:\WINDOWS\system32\loeygij5.dll|RecitalODBCSetup.dll

They should be

Driver
C:\WINDOWS\system32\RecitalODBC.dll

Setup
C:\WINDOWS\system32\RecitalODBCSetup.dll



----------------------------------------------------------------------

>Comment By: Bob Arnson (barnson)
Date: 2008-05-02 05:43

Message:
Logged In: YES 
user_id=26581
Originator: NO

This is a two-fer bug, one a weakness in WiX and one in MSI: The
ODBCDriver table doc at
http://msdn.microsoft.com/en-us/library/aa370547(VS.85).aspx says:

File_Setup 
The setup DLL file for the driver if it is different than from Driver. The
File_ column is an external key into the File table. The filename entered
in the Filename column of that File table record must be in the short
filename format. The SFN|LFN syntax cannot be used.

WiX does nothing to enforce the SFN-only rule on the file. It would be
exceedingly difficult to enforce, however, as there's no requirement that
the files be in the same fragment/source file as the ODBCDriver element.

MSI's weakness is that it blindly takes whatever is specified in the
Filename column and stuff it in the registry.

The only workaround I can suggest is to stick with an 8.3 filename.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1868600&group_id=105970

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to