Download File returning blank value
Posted: Mon Sep 17, 2012 8:27 pm
Hi again
I am having an issue with the updates process.
I had it working locally on my PC, where I could build a setup with the updates.ini file, place it in the IIS web directory, and the previous version of the application would find the new update, and allow me to download and install it.
Now I am trying to integrate the build process with our application under development, which is managed by TFS team build. Once I got the build working, and copied the files to a different web server (I created a clean setup with the correct updates.ini link to this remote server), I was getting the message "Unable to contact update server".
So I added in some logging, using the Write To File and $LOGGED$ variable, and found the variable $UPDATE_GET_INI$ appears to be blank after the above line in the Updates script.
I am pretty sure its blank, because the text I write out in the same message is displayed, but there is no SUCCESS or ERROR value where there should be.
I created a separate IA project with the following 3 lines of code only, and set the #UPDATE_SERVER# compiler var to the same value, and I get a SUCCESS value from that. or an ERROR message when I change it to an incorrect link.
Any ideas on why I am getting a blank return value from the Download File command?
Thanks
Wes
I am having an issue with the updates process.
I had it working locally on my PC, where I could build a setup with the updates.ini file, place it in the IIS web directory, and the previous version of the application would find the new update, and allow me to download and install it.
Now I am trying to integrate the build process with our application under development, which is managed by TFS team build. Once I got the build working, and copied the files to a different web server (I created a clean setup with the correct updates.ini link to this remote server), I was getting the message "Unable to contact update server".
Code: Select all
Download File #UPDATE_SERVER# into $SUPPORTDIR$\updates.ini (get result into variable UPDATE_GET_INI)I am pretty sure its blank, because the text I write out in the same message is displayed, but there is no SUCCESS or ERROR value where there should be.
I created a separate IA project with the following 3 lines of code only, and set the #UPDATE_SERVER# compiler var to the same value, and I get a SUCCESS value from that. or an ERROR message when I change it to an incorrect link.
Code: Select all
Set Variable UPDATE_GET_INI to -1
Download File #UPDATE_SERVER# into $SUPPORTDIR$\updates.ini (get result into variable UPDATE_GET_INI)
MessageBox: download, Value: $UPDATE_GET_INI$$NEWLINE$$SUPPORTDIR$Thanks
Wes