Prasad
Posts: 25
Joined: Fri May 25, 2012 12:55 pm

Writing the input string from user to the file

Hello,

During the setup, on one Dialog, I need to accept some input text from user in edit box and after clicking on Next button I want to write that string in my Config File.

Please tell me How to write the accepted text/string to the config file (It is XML file)
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Writing the input string from user to the file

Hi,

This is very easy. First you will need to add the edit control on a MSI dialog, after that you will need to import the XML file in your Advanced Installer project.

This will allow you to capture the user input and have the MSI write it in the XML file at install time, when all the other files are installed, not immediately when you press Next button on the dialog capturing the user input.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Prasad
Posts: 25
Joined: Fri May 25, 2012 12:55 pm

Re: Writing the input string from user to the file

Thanks Bogdon for your help.... it was very helpful
raju
Posts: 5
Joined: Sat Jun 02, 2012 3:42 am

Re: Writing the input string from user to the file

I am creating package for the application, having multiple language support.
User will select application language from Combo box , and my application will get installed with that selected language.

This is working, but when I install application, I see all the language folders are copied at application folder.

Can I copy only selected language sub-directory in application folder c:\Programs Files\... .
I don't want to give user other language resource.dll files.

Can you please help me to achieve this.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Writing the input string from user to the file

Hello and welcome to Advanced Installer forums,

Here's the "Property with UI Language" thread you can follow.

You can group every language resource in its own folder (from Files and Folders page) and component (from Organization page) and add a condition for each component using the ProductLanguage property.

If you need to install resources with same name in the same location conditionally, here's How do I install two files with the same name in the same folder? article to help.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”