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!

DiegoCP
Posts: 139
Joined: Fri Jan 23, 2015 1:02 pm

Write to a configuration file

Hello,

I am trying to save all the user instalation option to a configuration file so it can be used later.

Ex: UserType - Begginner, Intermidiate, Advanced lets say the user chooses begginner. The file would look something like this:

[INSTALLSETTINGS]
USERTYPE="Begginner"


Other Possible Settings:

[INSTALLSETTINGS]
LANGUAGE="English"
USERTYPE="Begginner"
INSTALLPATH="....."
COMPONENTES="ImageFiles,Documentation,..."


Is there anyway to do this step by step adding to the file??
This file will be installed in the user's PC.

Thank You very Much!

Have a Good Day.

Sincerely,
Diego.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Write to a configuration file

Hi Diego,

In order to save the user input, you can either use the XML Files support or the INI File support.

You can also take a look on the Import and edit an XML file article which may be useful to you.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DiegoCP
Posts: 139
Joined: Fri Jan 23, 2015 1:02 pm

Re: Write to a configuration file

Hello Dan,


So far i've tried using the Text File Update it works great.

But we might go for the xml format.


Thanks for your help.!



Sincerely,
Diego.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Write to a configuration file

You're always welcome Diego,

If you have other questions, please let me know.

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

Return to “Building Installers”