3
Vote

DirectoryObjectPicker doesn't work in Windows Server 2008

description

Error "File name is too long" is returned.
Can be reprocuced from the corresponding UnitTest.
only on W2k8, not Vista.

comments

dblock wrote May 17, 2010 at 1:11 PM

Someone on the wix mailing list said it worked perfectly well for them on W2K8.

MPEvans wrote Feb 28, 2012 at 10:27 AM

I can reproduce this on W2K8 and Vista. The computer name is quite long at 15 chars.

MSI Log file available if required.

AlunH wrote Sep 24, 2012 at 4:05 PM

I can also reproduce this on a W2k8 R2 SP1 machine. Computer name is 15 characters (the default random generated one during windows install), no domain.

anton_k1979 wrote Aug 13, 2013 at 1:32 PM

Can be reproduced on Windows Server 2012 when selecting a local computer user (not from a domain). Computer name is 15 characters long - WIN-PREQO1TT1M3 (randomly generated during install).

dblock wrote Aug 13, 2013 at 1:54 PM

I believe this has been fixed in 1.4, see changelog in https://github.com/dblock/msiext. There's a build in http://code.dblock.org/downloads/msiext/

anton_k1979 wrote Aug 14, 2013 at 8:43 AM

Thanks, it's true. Now I see that the call to ::GetComputerNameW(computername, & size) in NetBIOS.cpp has been fixed:
DWORD size = MAX_COMPUTERNAME_LENGTH + 1;
instead of
DWORD size = MAX_COMPUTERNAME_LENGTH;
in previous version that caused an error.