Hello,
I HAVE A requirement where my installer should check for one file in network shared location . If that file is available then it should proceed for installation .
I already know about search file utility , And it seems its not working for shared network location.
The search operations from the
Search page are executed by the standard
AppSearch action. This action does not seems to search on a network location.
To overcome this you can create your own custom action. For example, you can take advantage of the
DriveInfo Class that provides access to information on a drive (e.g. get the
DriveInfo.DriveType Property that gets the drive type, such as CD-ROM, removable, network, or fixed.). If the DriveType is network, then you can check if the file is there using the
File.Exists Method. You can also take a look on the
Directory.GetFiles Method (String) article which may be useful to you.
To integrate your custom action in the installation package, please follow the steps from the
How to integrate and debug custom actions? article.
Also please let me know how to use the search results (output ) .
Please note that when a search operation is added in the
search page, a property is automatically added (the default one is
RESULT_PROPERTY). The related property contains the value of the search result. For a search file operation, the property would be set with the path to the related file. If the property is not set, then the file does not exist.
Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.
Best regards,
Dan
FOLLOW US
Get the latest news in Application Packaging