|
#1
|
||||
|
||||
|
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);
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);
Thanks. Last edited by Dnixon; 04-10-2008 at 08:44 AM. Reason: Wrong Code |
|
#2
|
||||
|
||||
|
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);
|
|
#3
|
||||
|
||||
|
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); Code:
HTTP.Download(g_SourceURL, g_PatchFileDest, g_HTTPTransferType, g_HTTPTimeout, g_HTTPPort, tableBasicAuthData, nil, nil); |
|
#4
|
||||
|
||||
|
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.
|
|
#5
|
||||
|
||||
|
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 |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
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.








Linear Mode

