We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

teplo
Posts: 8
Joined: Tue Nov 01, 2005 12:15 pm
Location: Geneva

Find and store folder path containing a file

Hi, I use search for a specific file on all drives.

The property return full path with file name (like c:\test\myfile.txt), but I need only the path (c:\test\). How can I do that ?


Cheers.
teplo
Posts: 8
Joined: Tue Nov 01, 2005 12:15 pm
Location: Geneva

Sorry bad topic

Oups I think I have not posted my question on good forum topic !
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

The "File Search" returns is the full path including the file name. To remove the file name from the path you need to create a VBS custom action and schedule it after "InstallExecuteSequence->AppSearch" standard action.

Or if you want to search for a folder create "New Search", "Add Location->Folder" in the "Search" page.

Hope this helps.

Kind Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
teplo
Posts: 8
Joined: Tue Nov 01, 2005 12:15 pm
Location: Geneva

Ok I will try it, It's better to create a inline script or external script ?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Please see this for more details about all custom actions type supported by Advanced Installer:
http://www.advancedinstaller.com/user-g ... types.html

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Feature Requests”