Update Textfiles - Advanced Installer Community
why
Posts: 3
Joined: Sat Aug 30, 2014 1:57 pm

Update Textfiles

Hi,

I have 2 textfiles, with the same name but a diffrent content.
I want search in the Target PC for a Regestry Value.

If on the Target Pc the Regesrty Value is found install the file with the content "A"
If on the Target Pc the Regesrty Value is not found install the file with the content "B"

I tried with Search functions, but I found no successful solution to handle the "Serach-function" with the textfiles.

Who could gave me an advice?

Thanks!
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Update Textfiles

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.
I have 2 textfiles, with the same name but a diffrent content.
In order to install two files with identical name in the same folder based on a condition, you can take a look on the following article.
I want search in the Target PC for a Regestry Value.
The Search Page allows you to set up system-wide searches. In order to achieve that you can go to Search Page.
  • Create a new Search.
    Add a Search Location and select registry
For registry location properties please take a look on this article.
Please go to the Organization Page and put each of the two files into a separate component.For each component use the search property as a condition.
I tried with Search functions, but I found no successful solution to handle the "Serach-function" with the textfiles.
Every component has a key resource that can be only a file, a folder, a registry key or value or a data source.

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
why
Posts: 3
Joined: Sat Aug 30, 2014 1:57 pm

Re: Update Textfiles

Thank you!

Your advice helped me to find the mistake.

Return to “Common Problems”