I had a funny bug with short names
today.
I use a _vbscript_ to auto generate my
filenames:
Basically something like this that uses the shortname
property:
Call RecurseDirectories(".")
Sub RecurseDirectories(Directory)
Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFolder = objFSO.GetFolder(Directory) Set colSubfolders = objFolder.Subfolders ParentFolderWas = ParentFolder Wscript.Echo "Folder Name: " & objFolder.Name & "Folder Short name: " & objFolder.ShortName Call
PrintAllFileElements(objFolder)
End Sub
Sub PrintAllFileElements(objFolder)
Set colFiles = objFolder.Files
Set objRE = New RegExp
objRE.Global = True objRE.IgnoreCase = False objRE.Pattern = regExpression
first = 0
For Each objFile In colFiles Wscript.Echo "File Name: " & objFile.Name & "Short name: " & objFile.ShortName Next End Sub I know it is doing what tallow will do. But I
autogenerate the GUID's. (I know huge component rule
failure!)
But anyway the bug is that this works great on my d: and my
c: drive.
But when I tried to run it from my clearcase v: drive the
short names and the long names are the same on a unix mapped
drive.
Wix started complaining everywhere about the Name="" to
being 8.3 compliant.
Crazy.
I wish we could role some of the functionality of 3.0 back
into 2.0!
Brandon
Crazy! From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Simon Burgess Sent: Wednesday, June 07, 2006 3:45 PM To: [EMAIL PROTECTED]; wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Unique Short Names? My installs are only
ever for internal consumption and will always be on Windows 2003
server From: Rob
Mensching [mailto:[EMAIL PROTECTED] Possibly. If
your install ever ends up on a short name system (and you don't have complete
control over that) then you're going to be seriously
hosed. From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Simon Burgess I am using the latest wix
v2. Does anyone know if the ‘Name’
attribute on the <File> element needs to be unique? All of the file’s I
install I use the appropriate ‘Longname’ value, but as I ‘m having trouble
auto-generating short names I have used the same value for the ‘Name’ attribute
for every file and it seems to work fine. Is this likely to cause me problems
down the line? This e-mail transmission may contain information that is proprietary, privileged and/or confidential and is intended exclusively for the person(s) to whom it is addressed. Any use, copying, retention or disclosure by any person other than the intended recipient or the intended recipient's designees is strictly prohibited. If you are the intended recipient, you must treat the information in confidence and in accordance with all laws related to the privacy and confidentiality of such information. If you are not the intended recipient or their designee, please notify the sender immediately by return e-mail and delete all copies of this email, including all attachments. |
_______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users