Hi Marcelo,
A
prerequisite is something that the package needs to run or install before it can be launched. Therefore, if you create a prerequisite it should be an installation package or a program that does something to the target computer. Each prerequisite uses
install conditions in order to determine if it will be installed or not. These install conditions can be
searches which try to find files or registry entries or they can be searches performed by custom executables.
For your prerequisite you can create a "File Version" search which tries to find the assembly you want. The target of the search should be an assembly file in the GAC, for example:
Code: Select all
[WindowsFolder]assembly\GAC\System.Xml\1.0.5000.0__b77a5c561934e089\System.XML.dll
Please note that you need to search for the actual file of the assembly. In order to find it in the "C:\Windows\assembly" folder you can use the command shell or a tool which can show the files in this folder (Windows Explorer does not show the assembly files).
If your package doesn't have any prerequisites and you only need to find out if an assembly is in the GAC, you can use a
file search in the
Search page. The property of the search will be empty if the assembly is not found and it will contain the path of the assembly if it's found.
Regards,
Cosmin
FOLLOW US
Get the latest news in Application Packaging