How can I modify a specific config file after installation? - Advanced Installer Community
Liam
Posts: 2
Joined: Tue Jan 27, 2015 8:27 am

How can I modify a specific config file after installation?

There is a config file, whose name is
[APPDIR]\demo.cnf
Here [APPDIR] refers to the directory the app installed in.

For some reason, I have to modify this config file after installation. The following pattern in the config file
C:\this\is\a\demo\path
should be replaced by
[APPDIR]

How could I achieve this?

Any clues would be appreciated.

L
2015-01-27
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How can I modify a specific config file after installati

Hi and welcome to Advanced Installer forums.

In order to achieve this, you can go in the "Files and Folders" page, use the "Text File Update" toolbar button, in the dialog that appears set the same name as for the file that you want to edit and go to the "Replace" section to find and replace the string from your file.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Liam
Posts: 2
Joined: Tue Jan 27, 2015 8:27 am

Re: How can I modify a specific config file after installati

Eusebiu wrote:Hi and welcome to Advanced Installer forums.

In order to achieve this, you can go in the "Files and Folders" page, use the "Text File Update" toolbar button, in the dialog that appears set the same name as for the file that you want to edit and go to the "Replace" section to find and replace the string from your file.

Best regards,
Eusebiu
Hello Eusebiu,

Thank you for the suggestion but it doesn't work for me.

After switch to the ''Files and Folders'' page, I found no ''Text File Update'' in the toolbar, but a ''New Text File Update''. Unfortunately, however, this bottom appears gray, which indicates that it's temperately not available.
I also checked the user guide your provided, but I didn't find useful info.

Could you please explain what happened to me?

All the best.

L
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How can I modify a specific config file after installati

Hi,

That button is grayed out because the option is available only in an "Enterprise" or higher project type. You may use a "Simple", "Professional" or "Java Application" project type.

That user guide page I mentioned, describes how the "Replace" operation can be configured, how you can set a string to be found and the string that will replace it.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”