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!

kjullion
Posts: 176
Joined: Mon Nov 11, 2013 9:02 pm

XML locator tutorial not creating APPDIR or adding files there

Hi,
I've walked through the XML Locator tutorial and even downloaded the sample AIP file at the bottom of this page http://www.advancedinstaller.com/user-g ... cator.html
and in my version and the downloaded version of the tutorial the "Program Files (x86)\Your Company\Your Application" folder is not getting created and even when I get it to create the APPDIR folder it still is not adding any files (not file1, file2 or any of them).

What am I doing wrong?

Thanks,
Kevin
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: XML locator tutorial not creating APPDIR or adding files there

Hi Kevin,

In the sample project attached to our tutorial, the files are installed only if the XML searches defined in the "Search" page are found. The conditions are set for the components that are available in the "Organization" page. Are you sure that those conditions are true when you install the package?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kjullion
Posts: 176
Joined: Mon Nov 11, 2013 9:02 pm

Re: XML locator tutorial not creating APPDIR or adding files there

Hi Eusebiu,
I see what I was doing wrong. I did not have the XML file on the target (clean VM) machine where I was testing the installation steps. Instead, I was attempting to include the file in with the same MSI that the tutorial created. It would seem that the tutorial assumes that an XML file is already on the end-user's machine, and for a new installation as I was assuming the XML file would not yet be on the end-user's machine.

I would like to know if there are other XML tutorials / examples that have been developed?

For example, what if I wanted to save values from the installation of my application based on the prompts that occur by my installer. Simple example would be this:
  1. my installation package prompts for 2 settings values (say, Name, and User ID key)
  2. I want to save the 2 settings values entered during installation to a read/write "user-level" XML file (in the Public Documents area)
  3. after installation is completed, the running application can then locate and use those 2 settings values found in the XML file
Can you help me get this type of scenario going?

Thanks,
Kevin
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: XML locator tutorial not creating APPDIR or adding files there

Hi Kevin,

In order to achieve this you can follow the steps below:
- go in the "Dialogs" page and add two "Edit Box" controls on one of the dialogs
- copy the properties related to those controls
- go in the "Files and Folders" page, "Public Documents" folder and use the "XML File" toolbar button to create a new XML file
- add as many elements and attributes as you want and use the above properties as values for some attributes
- build and run the project

In the above case, when the package will be installed, the values typed in the edit boxes will be written in the XML file.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”