how to show an TXT from an ini file - Advanced Installer Community
owe911
Posts: 12
Joined: Fri Mar 27, 2015 11:13 am

how to show an TXT from an ini file

hi,

what should i do if i want to show a String read from a ini file in the dialog ?

i mean read a sting from a ini file and shown as a static text in the dialog

anyhelp is appreciate!
Attachments
String.jpg
String.jpg (36.27 KiB) Viewed 3740 times
String.jpg
String.jpg (36.27 KiB) Viewed 3740 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: how to show an TXT from an ini file

Hi,

For this, you can create a XML Search operation in the Search page. For details, please take a look on the Creating an XML Search tutorial which will guide you step by step in the process of creating a valid and working XML custom search.

Also, I've attached a sample project which implements a similar scenario. During the fist time install, the user is prompted to enter some information.

To perform an upgrade the following steps need to be done:
  • increase the product version from the Product Details page;
  • generate a new ProductCode when prompted;
  • build the project;
  • run the installation package;
When running the upgraded version, the related fields will be filled automatically, so the user don't have to enter once again the related information.

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

Best regards,
Dan
Attachments
Your Application.zip
(3.71 KiB) Downloaded 258 times
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
owe911
Posts: 12
Joined: Fri Mar 27, 2015 11:13 am

Re: how to show an TXT from an ini file

hi dan

thans a lot!
problem solved !
owe911
Posts: 12
Joined: Fri Mar 27, 2015 11:13 am

Re: how to show an TXT from an ini file

Dan wrote:Hi,

For this, you can create a XML Search operation in the Search page. For details, please take a look on the Creating an XML Search tutorial which will guide you step by step in the process of creating a valid and working XML custom search.

Also, I've attached a sample project which implements a similar scenario. During the fist time install, the user is prompted to enter some information.

To perform an upgrade the following steps need to be done:
  • increase the product version from the Product Details page;
  • generate a new ProductCode when prompted;
  • build the project;
  • run the installation package;
When running the upgraded version, the related fields will be filled automatically, so the user don't have to enter once again the related information.

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

Best regards,
Dan

hi dan,

another question need to be asked.
in the XML search , could i use the relative path to find the xml file?
i want to find the xml file from the same path where the exe file was placed.

for example:
i copy both the setup.exe and the xml file to drive E
then the xml search will search drive E

if both copied to D:\test
then the xml search will search D:\test
owe911
Posts: 12
Joined: Fri Mar 27, 2015 11:13 am

Re: how to show an TXT from an ini file

Any help is appreciate~ :D
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: how to show an TXT from an ini file

Hi,
another question need to be asked.
in the XML search , could i use the relative path to find the xml file?
Yes, you can use relative path.
As you noticed in my sample project, I'm using the following path for the .XML file:
FilePath.png
FilePath.png (2.04 KiB) Viewed 3681 times
where APPDIR is the installation folder selected by the user during the installation.

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

Return to “Common Problems”