Indigo Rose Software
  #1  
Old 04-10-2008
Dnixon's Avatar
Dnixon Dnixon is offline
Indigo Rose Customer
 
Join Date: Jun 2007
Posts: 94
Bug with HTTP.Download?

All of a sudden my True Update application is failing on a few computers, but not all of them are running it. It is very strange. They all were working about a week or two ago. Now some do and some don't. It seems to be related to the True Update application, and not the different operating systems.

What's happening is I get an error saying argument 1 of my HTTP.Download call has to be of a type string...but it is. Here's my code:

Code:
g_SourceURL = "http://m-repro.com/update_bpv1.5-2.exe";
g_PatchFileDest = SessionVar.Expand("%SourceFolder%\\Patches\\update_bpv1.5-2.exe");
g_HTTPTimeout = 30;
g_HTTPPort = 80;
g_HTTPTransferType = MODE_BINARY;
tableBasicAuthData = nil;

HTTP.Download(g_SourceURL, g_PatchFileDest, g_HTTPTransferType, g_HTTPTimeout, g_HTTPPort, tableBasicAuthData);
If I replace the variable in argument 1 with "http://m-repro.com/update_bpv1.5-2.exe" I don't get that error, but I get a new one. It says argument 2 must be of a type string. My code at that point looks like this:

Code:
g_PatchFileDest = SessionVar.Expand("%SourceFolder%\\Patches\\update_bpv1.5-2.exe");
g_HTTPTimeout = 30;
g_HTTPPort = 80;
g_HTTPTransferType = MODE_BINARY;
tableBasicAuthData = nil;

HTTP.Download("http://m-repro.com/update_bpv1.5-2.exe", g_PatchFileDest, g_HTTPTransferType, g_HTTPTimeout, g_HTTPPort, tableBasicAuthData);
It seems to be a bug with the HTTP.Download call, in my opinion, but I don't really know at this point. Any ideas from the Indigo Rose staff?

Thanks.

Last edited by Dnixon; 04-10-2008 at 08:44 AM. Reason: Wrong Code
Reply With Quote
  #2  
Old 04-10-2008
Dnixon's Avatar
Dnixon Dnixon is offline
Indigo Rose Customer
 
Join Date: Jun 2007
Posts: 94
Huh?

Well, I changed my download method from HTTP to FTP, and I get the same error, so I don't know at this point. This time it says argument 1 of my FTPWI.Download call must be of type string. Here is my code:

Code:
g_SourceAddress = "208.109.83.188/update_bpv1.5-3.exe";
g_PatchFileDest = SessionVar.Expand("%SourceFolder%\\Patches\\update_bpv1.5-3.exe");
g_FTPPort = 21;
g_FTPTimeout = 30;
g_FTPUsername = "username";
g_FTPPassword = "password";
g_FTPUsePassiveMode = true;
g_FTPTransferType = MODE_BINARY;

FTPWI.Download(g_SourceAddress, g_PatchFileDest, g_FTPUsername, g_FTPPassword, g_FTPTransferType, g_FTPTimeout, g_FTPPort, g_FTPUsePassiveMode);
I'm guessing my variable g_SourceAddress isn't of a type string...I guess I don't quite understand what a string type is because I though mine was. Any ideas out there?
Reply With Quote
  #3  
Old 04-10-2008
Adam's Avatar
Adam Adam is offline
Indigo Rose Staff Member
 
Join Date: May 2000
Location: Indigo Rose Software
Posts: 2,154
Not sure about the second part but in your original HTTP download one you are missing the arguments 'ProxyData' and 'CallbackFunction'.

Code:
HTTP.Download(g_SourceURL, g_PatchFileDest, g_HTTPTransferType, g_HTTPTimeout, g_HTTPPort, tableBasicAuthData);
Should be:

Code:
HTTP.Download(g_SourceURL, g_PatchFileDest, g_HTTPTransferType, g_HTTPTimeout, g_HTTPPort, tableBasicAuthData, nil, nil);
Adam Kapilik
Reply With Quote
  #4  
Old 04-10-2008
Dnixon's Avatar
Dnixon Dnixon is offline
Indigo Rose Customer
 
Join Date: Jun 2007
Posts: 94
I still haven't figured it out either. It's interesting to note that my code was generated by the TU wizard...I didn't write it from scratch.
Reply With Quote
  #5  
Old 04-14-2008
Mark's Avatar
Mark Mark is offline
Indigo Rose Staff Member
 
Join Date: Jun 2000
Location: Indigo Rose Software
Posts: 1,773
Hi Dnixon,

Is that the entirety of the code that you are running? Or are there some actions in between? I.e. some actions that may change the values of your variables?

What happens if you use a Dialog.Message() action to display your variables before you run your HTTP or FTPWI actions? What does the Dialog display? What are the values of your variables?
__________________
MSI Factory The Next Generation Intelligent Setup Builder
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
New Version Available: 7.1.1005.0 Darryl AutoPlay Media Studio 7.5 Discussion 33 03-19-2008 09:09 AM
New Version Available: 7.1.1005.0 Darryl AutoPlay Media Studio 7.5 Suggestions 0 03-04-2008 12:56 PM
TrueUpdate 2.0 Update (v2.0.6.0) Released Brett TrueUpdate 2.0 0 10-31-2006 02:10 PM
New Setup Factory 7.0 (v 7.0.2.0) Available Darryl Setup Factory 7.0 Discussion 9 03-06-2005 02:57 PM
AutoPlay Media Studio 4.0.0.3 Released Brett AutoPlay Media Studio 4.0 0 12-11-2002 09:39 AM


All times are GMT -6. The time now is 03:52 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software