Find All Files give false negative result...

Got a problem you cannot solve? Try here.
Post Reply
JeffTucker
Posts: 62
Joined: Thu Mar 19, 2009 11:07 am
Contact:

Find All Files give false negative result...

Post by JeffTucker »

I'm asking the script to
"Find All Files in path $WINDIR$\\assembly\\Microsoft.Office.Interop.Word.dll, write result into variable FoundWordInterops"
Such a file does actually exist, but the runtime always says it doesn't. What am I doing wrong?
I checked an WINDIR is c:\\Windows.
Fiddling with technology
JeffTucker
Posts: 62
Joined: Thu Mar 19, 2009 11:07 am
Contact:

The GAC tripped me up...

Post by JeffTucker »

When looking for files in the GAC you would be well advised to open a command line prompt and type in the dir commands you mean to use. The GAC view in the windows explorer does not show individual files, but only some folders with hashed subfolders that contain the actual file. So the corrected command to find the Word interop looks like this:
Find All Files in path $WINDIR$assembly\\GAC\\Microsoft.Office.Interop.Word.* (include subfolders), write result into variable FoundWordInterops.

Also the $WINDIR$ builtin variable includes the trailing '\\' (which I did not expect).
Fiddling with technology
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

Are you reporting a bug with Find All Files?
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
JeffTucker
Posts: 62
Joined: Thu Mar 19, 2009 11:07 am
Contact:

Not reporting a bug

Post by JeffTucker »

Thanks Mike. Not a bug per se. You might pass along those comments to the documentation folks to include as a side note for those attempting to find files in the GAC. 8) 8)
Fiddling with technology
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

This would still be a bug since InstallAware should enumerate those folder contents properly.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

This was unable to reproduce, by the way:

---------------------------
FAF
---------------------------
C:\\WINDOWS\\assembly\\GAC\\Microsoft.Office.Interop.Word\\12.0.0.0__71e9bce111e9429c\\Microsoft.Office.Interop.Word.dll
---------------------------
OK
---------------------------


with this code:

Code: Select all

Get Common Folder Location System->Windows Directory into WINDIR
Find All Files in path $WINDIR$\\assembly\\Microsoft.Office.Interop.Word.dll (include subfolders), write result into variable FAF
MessageBox: FAF, $FAF$
and MSIcode:

Code: Select all

~InstallAware Clipboard Data~
~MessageBox~
~{49511701-A789-4560-8B8F-6552B3309D70}~
~FAF~
~$FAF$~
~0~
~1~
~~
~Find All Files~
~{816ECC44-F834-4E34-AB60-271FEFC0DFBE}~
~$WINDIR$\\assembly\\Microsoft.Office.Interop.Word.dll~
~TRUE~
~FALSE~
~FAF~
~Get Folder Location~
~{813D6B92-29E0-4348-BB2D-770625931967}~
~WINDIR~
~25~
~TRUE~
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply