order sections in Ini file - Advanced Installer Community
CarlAarnes
Posts: 58
Joined: Tue May 24, 2011 3:43 pm

order sections in Ini file

Hi

Is there a way to order sections and/or parameters within a INI file?

/Carl
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: order sections in Ini file

Hi Carl,

I am not sure I understand your question. Arranging the sections from our INI file editor from Files and Folders page is not what you need?

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
CarlAarnes
Posts: 58
Joined: Tue May 24, 2011 3:43 pm

Re: order sections in Ini file

There seems to be some form of auto ordering, not sure if this is a bug.

According to you sections should be in the order they are shown in INI editor ?
In my ini file they have different order from the editor.

Advanced installer 9.8 build 48877.

/Carl
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: order sections in Ini file

Hello Carl,

It seems this is the standard Windows Installer implementation. At install time section within INI files are sorted by Windows Installer. Also, you cannot set a section order in your Advanced Installer project.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
raddad555
Posts: 23
Joined: Sat Feb 09, 2013 3:40 pm

Re: order sections in Ini file

I know this is an old post but I am still a new AI'er and as long as I put the ini file in as a regular file it maintains the order , but if using property variables (which I need to do) then the order is screwed up. Ini files have a header as well as a sections area and this needs to be maintained or the data is not always parsed correctly. Has this been looked at recently or again since it does cause a problem not being able to move the sections to their proper places.
raddad555
Posts: 23
Joined: Sat Feb 09, 2013 3:40 pm

Re: order sections in Ini file

To my understanding now it does not matter whether the header is after the section area since they are both delineated a particular way.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: order sections in Ini file

Hello,

Unfortunately this is the default Windows Installer behavior. We'll try to add an improvement regarding this in a future version of Advanced Installer, but for the moment I'm afraid there are not immediate plans. Thank you for your understanding.

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

Return to “Common Problems”