Ini file reference - Advanced Installer Community
augustin.yann
Posts: 2
Joined: Mon Dec 22, 2014 11:33 am

Ini file reference

Hello,

I created a file with the ini file editor. I added my sections and keys.
This is working fine, Advanced installer creates the file as expected.

I want now to use the created file as parameter from a shortcut. How can I do this?
When I tries to add a file reference with “[#” it does not appears in the file list.

Can you please help?
Best regards
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Ini file reference

Hi Augustin and welcome to Advanced Installer forums,

If the INI is created or imported using the Windows Installer format you can't reference it.

The editor is mostly used for updating INI files. In case you just need to create it, you should manually do so with a dedicated editor like Notepad++ and import it as a regular file into the Advanced Installer project. To import it as a regular file, be sure to disable the checkbox next to it when prompted after import. If it's a regular file you can reference it using:
[#
Let me know how this goes.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
augustin.yann
Posts: 2
Joined: Mon Dec 22, 2014 11:33 am

Re: Ini file reference

Hello,

Thank you for your reply, but I do not think it solve my issue.

I need to update my ini file during the installation, mainly to set some keys with the installation path selected by the user in the initial dialog.
I need afterward to create a shortcut to an exe file with the ini file as parameters, to give my application some setup including the install path. (/ini=Myconfig.ini)

So I think I need to create the ini file from Advanced installer, to be able to set some keys with installation properties.
Or is there a way to do it differently ?

Best regards
Yann
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Ini file reference

Hello Yann,

First of all I apologize for such a delayed reply. In order to achieve what you need you can reference the INI file in the "Arguments" field of your shortcut by using a reference to the parent folder of your INI. For example, if the INI file is added under the "Application Folder" directory from "Files and Folder" page, then you can write the path to your INI like this:

Code: Select all

[APPDIR]MyIniFile.ini
Also, you can take a look on our "Folder Paths" article which should be useful too.

Let us know if this helped.

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

Return to “Common Problems”