Finding a file to replace - Advanced Installer Community

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!

Toploader
Posts: 7
Joined: Thu Jan 13, 2011 2:36 am

Finding a file to replace

Hey all,

Here is what I need the installer to do, if indeed possible.

We have a product that was made using older installers, and one of the releases did not even make a registry key, and all go into different folders.

We want to release a patch update, which will copy over just one file. So what I want advanced installer to do is search for a file first, then patch (replace it) even though it could be literally anywhere on the end users pc. The file is named uniquely, so no chance that another program will use his file other then ours.

Is this possible?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Finding a file to replace

Hello,

This is possible if you build a regular MSI package.

Please follow the steps described in the "Find the folder which contains a file" section of this how to from our user guide.
After doing this you will have your file's parent folder path stored in a public property.
Then, from the Install Parameters page you can edit the Application Folder text field to the public property which contains the parent folder path.
In the end, just add the new file in the Application Folder from the Files and Folders page and enable the "Ensure that this file overwrites any installed target file" option in the Version tab from the Properties context menu.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Toploader
Posts: 7
Joined: Thu Jan 13, 2011 2:36 am

Re: Finding a file to replace

Thanks for your prompt help, I will give that a go.

Return to “Common Problems”