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!

adihanifsdr
Posts: 1
Joined: Fri Jul 26, 2013 2:58 pm

how to edit CFG files after install ?

Hi, i have question , how to add some text in the last paragraph CFG files in another location , example (C:\ProgramData\Games\LoadObjects.CFG) after install ?
then could you tell me some example for search the number in the CFG file like as follows.
In the CFG file, there is some like

Code: Select all

[obj.001]
...
...

[obj.002]
... ...


[obj.011]
... ...
I should find the last number in the CFG file. Do you have some information of example progame for finding the last number so that I can judge the number I want to append.


thanks :) ;)
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: how to edit CFG files after install ?

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

In order to achieve that you can create your own custom action that will read that config file and append your desired values. For example, you can create your custom action as a custom action written in C# or a custom action written in C++.

Then you can go in the Custom actions page and add a predefined Call function from attached native DLL custom action with sequence.
You can add this custom action in the “Install Execution Stage” >> “Finish Execution” stage.

If you have any questions, please let us know.

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

Return to “Building Installers”