Modify INI file after Installation - 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!

vlopez1985
Posts: 3
Joined: Sun Mar 21, 2010 5:55 pm

Modify INI file after Installation

Hello,

After instaling my application I need to modify the application.ini file and add some lines at the end.

I already have a jar file that do this, but i need to execute this jar and pass a folder as parameter, I mean i need to add a custom action that do something like this:

java - jar "[myjar.jar]" [ProgramFilesFolder][Manufacturer]\[ProductName]\myFolder

Is this possible??
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Modify INI file after Installation

Hello,

You can easily use the "Launch File or Open URL" custom action to achieve this. Make sure you place your jar as a temporary file so it is available from the very beginning of the install. Also make sure you install it in the Windows' temp folder so that you have write permissions (temp files are created before elevation).

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”