This can be done by following these steps:
- go to the "Search" page and create a search for a file (for example "MY_SEARCH")
- create a .VBS file on the disk and paste this code in it:
Dim path
path=Session.property("MY_SEARCH")
smallPath=Left(path,InStrRev(path,"\")-1)
smallPath=Left(path,InStrRev(smallpath,"\"))
Session.property("MY_SEARCH")=smallPath
- this VBScript code will eliminate the filename from the result of the search, leaving only the path of the folder which contains it
- go to the "Custom Actions" page and add the VBS file as an Attached custom action under "InstallExecuteSequence" -> "AppSearch" (you can see the "AppSearch" standard action by using the "Show Standard Action" button on the toolbar).
- go to the "Files and Folders" page and create a property-based folder by using the property of the search ("MY_SEARCH")
- create in this folder a File Removal operation and configure it to remove the file you want:
http://www.advancedinstaller.com/user-g ... ialog.html
You can read more about custom actions here:
http://www.advancedinstaller.com/user-g ... -page.html
Regards,
Cosmin
FOLLOW US
Get the latest news in Application Packaging