Install file with same name based on condition? - Advanced Installer Community
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Install file with same name based on condition?

Hello,

I have set the installer to let the user select the SQL connection type. "Trusted Connection (Windows integrated authentication)" or "SQL Connection". When the user select the checkbox it sets the SQL_TRUSTED_CONNECTION to "1" or "". So based on this condition a "New Text File Update" have to be created with the same name on the same folder. Lets say the filename is "Abc.txt". If the SQL_TRUSTED_CONNECTION is "1" then it needs to install one "Abc.txt" file and if the SQL_TRUSTED_CONNECTION is "" then it needs to install another "Abc.txt" file on the same folder location. How to do this please?

:?:
K
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Install file with same name based on condition?

Hello,

To achieve that I will recommend you to check out the "Install files with the same name" article and follow the steps from there.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Install file with same name based on condition?

Worked perfectly. Thank you.
K
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Install file with same name based on condition?

You're always welcome.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”