Import INI file problem - Advanced Installer Community
MDomm
Posts: 1
Joined: Wed May 19, 2010 2:09 pm

Import INI file problem

Hello,

I'm using the trial for Advanced Installer 7.6.1 and trying to create an Enterprise installer, however I'm unable to import INI files. Are there any limitations on this functionality?

The INI file that I have contain only one section, i.e.:

Code: Select all

[SectionName]
prop=value
and this seems to get skipped completely, however I tried another INI file, containing two sections:

Code: Select all

[SectionName1]
prop1=value
[SectionName2]
prop2=value
and the file is imported successfully and can be accessed with the INI editor. Just wondering is this a bug or intended behavior?

Thanks!
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Import INI file problem

Hello,

I am afraid I could not reproduce this behavior. Could you please send your .ini file to support at advancedinstaller dot com so we can investigate?

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
matrix
Posts: 4
Joined: Mon Nov 10, 2014 7:17 pm

Re: Import INI file problem

Because we reverse the sections automatically?

BEFORE: GOOD
[PRODUCT0]
name=ARGAN CREAM
photo=ARGAN_CREAM.png
[PRODUCT1]
name=ARGAN OIL
photo=ARGAN_OIL.png
[PRODUCT2]
name=ARGAN SHAMPOO
photo=ARGAN_SHAMPOO.png


AFTER: BAD
[PRODUCT0]
photo=ARGAN_CREAM.png
name=ARGAN CREAM
[PRODUCT2]
name=ARGAN SHAMPOO
photo=ARGAN_SHAMPOO.png
[PRODUCT1]
photo=ARGAN_OIL.png
name=ARGAN OIL
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Import INI file problem

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I'm afraid I don't fully understand what you mean. Can you please give us more details about this (maybe exemplify more or try to iterate a test case which we can follow)?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
matrix
Posts: 4
Joined: Mon Nov 10, 2014 7:17 pm

Re: Import INI file problem

Add the file Products.ini in the installer.
After installing the program, the file (Products.ini) alone is changed.
Why does this happen?
Attachments
Products.ini
(1.17 KiB) Downloaded 755 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Import INI file problem

Hello,

We are using the Windows Installer default support to install INI files. The IniFile Table and WriteIniValues Action are used. Also, it seems at install time Windows Installer doesn't have an order criteria to use when populated the INI file. This is because the sections' order into an INI file shouldn't matter.

Can you please tell us if you need that your INI file sections to be installed in a certain order? If so, can you also please share with us the reason why you need the INI sections to be installed ordered?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
matrix
Posts: 4
Joined: Mon Nov 10, 2014 7:17 pm

Re: Import INI file problem

I need to be sorted by a popular combobox.
I do not want the keys are reversed.
With Windows Installer I have never had any problems.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Import INI file problem

Hello,

I'm afraid there is no predefined support in Advanced Installer to set the order in which the sections within an INI file will be installed. As a workaround, you can try to add your INI file as a regular file (don't import it as an INI file when added in "Files and Folders" page) and if you need to update it during installation try to use our TXT File Update support.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
matrix
Posts: 4
Joined: Mon Nov 10, 2014 7:17 pm

Re: Import INI file problem

Thanks so much.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Import INI file problem

You're welcome.

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

Return to “Common Problems”