Dinamically changed URL for Prererquisites - Advanced Installer Community
VAlch
Posts: 18
Joined: Fri Oct 04, 2013 3:03 pm

Dinamically changed URL for Prererquisites

Hello there!
I want to create an installer, that will install an application from URL, before/after the main installation process.
So, I created a new item in the Prererquisites section using a New URL Prererquisite menu item. After that I've set the URL field value (in the Main Setup File) to the http://mysite.com/downloads/setup.exe value
After the project builded all works fine, I installed main application and the additional application from URL automatically (setup file was downloaded and started successfully).
But if I set the URL in Main Setup File section as a Property (in my case it [TBM_strDownload]) than I have 2 problems:
1. Sometimes the project not compiled, I see the error message
Image
2. If project builded without errors, I see error while installation.
Image
My problem is that I can't use fixed value for URL field. I'm getting URL each time when the installer starts from POST request via vbs script.
So please let me to know is it possible to use the URL value that passed via installer properties variables, and, if it is possible, what is the correct way to do this?

Thanks in advance for your help!
Vasiliy
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Dinamically changed URL for Prererquisites

Hi Vasiliy and welcome to Advanced Installer forums.

Thank you for your interest in Advanced Installer.
1. Sometimes the project not compiled, I see the error message
Indeed, we are aware of this problem, it appears when the output folder (the folder where the package will be created) is open. A conflict between the Operating System and Advanced Installer is encountered. So, it is recommended to close the output folder when the package is built.
2. If project builded without errors, I see error while installation.
I'm not sure why you encounter this behavior. In order to use a property that stores the URL of a prerequisite you can go in the "Setup Files" tab of the prerequisite and write the property in the "URL" field (i.e. [|TBM_strDownload]). Please keep in mind that the URL field is of PseudeFormatted Type.

Also, if your prerequisite is not added in the "Pre-install" folder it is recommended that the property used for the URL to be written only with upper-case letters, otherwise its custom value (set at install time) will not be passed from the "Wizard Dialogs Stage" to the "Install Execution Stage".

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
VAlch
Posts: 18
Joined: Fri Oct 04, 2013 3:03 pm

Re: Dinamically changed URL for Prererquisites

Hi Eusebiu,
Thanks a lot for your answer!
The pb#1 fixed, all works fine now.
But I still have a notification window for pb#2.
Image
I created a test AI project (zip-file with project attached to this post). Can you please look at it and help me to fix this pb?

The idea is that the test.vbs (from custom action) starts and gets a TBM_URL property value from my test server (it call a test.php script that returns a xml string with TBM_URL value). After the main installer done, I want to download and install file from TBM_URL. But I see error window while the downloading or the installation starts. You can find all scripts inside the scripts folder.
Thanks in advance!
Attachments
TestInstaller.zip
Test AI project
(387.28 KiB) Downloaded 383 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Dinamically changed URL for Prererquisites

Hi Vasiliy,

As I mentioned in my previous post, the "URL" field is of "PseudoFormatted" type not "Formatted" type (i.e. [|TMB_URL] instead of [TMB_URL]), which means that the value from that field must be resolved at build time, not at run time.

However, we will investigate this and try to make an improvement as soon as possible, so that "Formatted" properties will also be accepted in the "URL" field of the "Feature-based" and "Post-install" prerequisite. Thank you for bringing it to our attention.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Dinamically changed URL for Prererquisites

Hi Vasiliy,

We have already made this improvement and it will be available in the next version of Advanced Installer. If you need to test it, just send us an e-mail to support at advancedinstaller dot com and we will give you the fixed DLL file.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
VAlch
Posts: 18
Joined: Fri Oct 04, 2013 3:03 pm

Re: Dinamically changed URL for Prererquisites

Many thanks Eusebiu,
My pb fixed, all works fine.
Regards
Vasiliy
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Dinamically changed URL for Prererquisites

You're welcome Vasiliy. Glad to help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Dinamically changed URL for Prererquisites

Hello,

This improvement was added in version 10.7 of Advanced Installer released on November 11, 2013.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
VAlch
Posts: 18
Joined: Fri Oct 04, 2013 3:03 pm

Re: Dinamically changed URL for Prererquisites

Daniel wrote:Hello,

This improvement was added in version 10.7 of Advanced Installer released on November 11, 2013.

All the best,
Daniel
Please let me to know about 11.2 version. Is this improvement exists?
I see Error 12006 (see attachment) when I try to use the [|LINK_DOWNLOAD0] as URL parameter for the Prerequsite parameter if I use static URL all works fine.

Thanks in advance.
Attachments
pic_1.JPG
pic_1.JPG (13.43 KiB) Viewed 10264 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Dinamically changed URL for Prererquisites

Hello,

I'm not sure why this happens. Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
VAlch
Posts: 18
Joined: Fri Oct 04, 2013 3:03 pm

Re: Dinamically changed URL for Prererquisites

Thanks! I sent it yesterday.
Just duplicate the app here.
Attachments
Warning screen
Warning screen
TestAppp.JPG (29.7 KiB) Viewed 10241 times
TestApp.log
installer log
(221.54 KiB) Downloaded 374 times
TestApp.aip
installer prj
(20.42 KiB) Downloaded 368 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Dinamically changed URL for Prererquisites

Hello Vasiliy,

This happens because you have added your "DOWNLOAD_URL" property, in the URL field of your prerequisite, as a pseudo-formatted reference (i.e. [|DOWNLOAD_URL]). In this case the URL field will be resolved at build time to your "DOWNLOAD_URL" property value (which is "http://").

In order to use the "DOWNLOAD_URL" property value set at install time, the "URL" field of your prerequisite should contain your property added as a formatted reference (i.e. [DOWNLOAD_URL]).

So, can you please set the "URL" field of your prerequisite like this:

Code: Select all

[DOWNLOAD_URL]
and see if the behavior still persists?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
VAlch
Posts: 18
Joined: Fri Oct 04, 2013 3:03 pm

Re: Dinamically changed URL for Prererquisites

oops, sorry, I forgot about "|" symbol. Thank you for your help! All works fine!!!
Regards
Vasiliy
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Dinamically changed URL for Prererquisites

You're always welcome Vasiliy.

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

Return to “Common Problems”