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). [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)
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.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.
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);
?>
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!