tarnic
Posts: 26
Joined: Mon May 18, 2009 10:41 am

Collect and send to Webserver problem

Hi, I'm creating a new Dialog that collect and send user information.

I read lot of times the help-tutorial which describes the right procedure, nothing... (this: http://www.advancedinstaller.com/user-g ... -info.html)
I tried a lot, sometimes (very rarely) it worked, often not. I don't understand where is the error.

I explain here my procedure.

Create new project, very simple, add a Custom Action under UI Custom Action, it's called SendCollectedData of DataUploader.dll.
Then, in Dialogs, I created a new dialog like in the screenshot attached (sorry if strings are in italian).
dialog.png
dialog.png (36.56 KiB) Viewed 2193 times
[HttpPostCollectData] is the PropertyName of the TextEdit.
[HttpPostUrl] my website PHP page
I tried also to add manually in Install Parameters a property called PROP_MIA as textEdit, then I ran with debug, and this is the result log:
(the URL website is right but not showed)
(I translated in English something)
MSI (c) (C8:D8) [22:41:19:213]: PROPERTY CHANGE: Modifying PROP_MIA property. Its current value is 'Trying'. Its new value: 'Trying2'.
MSI (c) (C8:D8) [22:41:19:258]: PROPERTY CHANGE: Adding HttpPostCollectData property. Its value is 'PROP_MIA'.
MSI (c) (C8:D8) [22:41:19:276]: PROPERTY CHANGE: Adding HttpPostUrl property. Its value is 'http://---------------------automatic_registration.php'.
MSI (c) (C8:D8) [22:41:19:293]: Doing action: SendCollectedData
Action 22:41:19: SendCollectedData.
Start Action 22:41:19: SendCollectedData.
MSI (c) (C8:44) [22:41:19:378]: Invoking remote custom action. DLL: C:\------------\AppData\Local\Temp\MSI1E58.tmp, Entrypoint: SendCollectedData
MSI (c) (C8!90) [22:41:19:668]: PROPERTY CHANGE: Adding HttpPostServerResponse property. Its value is '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
</body></html>
'.
Termine azione 22:41:19: SendCollectedData. Return value 1.
Custom action seems to work perfectly, but there is the response error (440 Bad request), I don't know if it's normal or not.


The PHP page is very simple to try the Setup functionality.
http://---------------------automatic_registration.php

Code: Select all

<?
$fp = fopen("LOGS/" . "setup.log", "w");
fwrite($fp, "work\n");
fclose($fp);
?>
If the page is opened by someone, it creates a simple log file.
In this case, it's not important to view POST data, because this simple example doesn't work.

I don't know where is my error, it seems so simple...
Can you help me?

Thank you!
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Collect and send to Webserver problem

Hello,

This seems to be a problem with the communication between the custom action and the server. If your server is Apache, look in the access.log to see the request the DataUploader.dll custom action sent to your server. Please post that request here. Or you can send us the access.log file to support at advancedinstaller dot com to better help us assist you with the issue.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”