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!

chandrabhushan
Posts: 76
Joined: Thu Jul 02, 2015 10:58 am

using an exe file in advanced installer for find and replace across folders

Hi Team,
As per my installation i need to search and replace files across the folder structure . to do this i am utilizing the fart exe (tool which finds and replaces )
in the cmd command prompt i am able to do it by typing


fart.exe location >FART -i -r "D:\WIP\*.bat" text_to_find Text_to_replace[APPDIR]
so to do that in advanced instraller my steps are following
1. launch attached file
2. attached file = {attached file location }
3. file type =executable
4 command line = -i -r [APPDIR]*.bat TEXT_TO_FIND [APPDIR]

THIS IS NOT WORKING .(See the attached image )
Please advice with the proper command or procedure to do so

Thanks
Attachments
fart.PNG
fart.PNG (55.72 KiB) Viewed 3468 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: using an exe file in advanced installer for find and replace across folders

Hello,

Please note that the fart.exe custom action is of Immediately one. Although it is added after the Add Resources group, the files are not yet copied on the target machine. The files are copied on the target machine during the deferred phase. So, can you please set your custom action execution time as When the system is being modified (deferred) and see if the behaviour still persist?

By the way, have you noticed our predefined Text File Updates support? A Text File Update can be used to either create a new file with the specified content or to modify those existing using "Append" and "Search & Replace" operations.

If you need any help, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: using an exe file in advanced installer for find and replace across folders

You're welcome,

I'm glad you got this working.
If there is anything else I can help you with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”