Page 1 of 1
Find All Files give false negative result...
Posted: Wed Apr 01, 2009 12:14 pm
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.
The GAC tripped me up...
Posted: Wed Apr 01, 2009 2:06 pm
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).
Posted: Wed Apr 01, 2009 3:33 pm
by MichaelNesmith
Are you reporting a bug with Find All Files?
Not reporting a bug
Posted: Tue Apr 07, 2009 8:34 am
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.

Posted: Tue Apr 07, 2009 6:02 pm
by MichaelNesmith
This would still be a bug since InstallAware should enumerate those folder contents properly.
Posted: Tue Apr 07, 2009 6:06 pm
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~