Problem with updater.exe

Having trouble running Advanced Installer? Got a bug to report? Post it all here.

Problem with updater.exe

Postby Marek » Fri Apr 27, 2012 3:08 pm

I used Advanced Installer 9.0.1.
I run for test:
Code: Select all
updater.exe /checknow -licenseid 'aka'

As a result updater.exe creates and sends a POST command.
Below the content of the command shown by Wireshark.
Code: Select all
0000  00 17 e0 53 1b 12 08 00  27 4c b1 33 08 00 45 00   ...S.... 'L.3..E.
0010  00 ff 56 1a 40 00 80 06  66 dc ac 10 00 80 4f 60   ..V.@... f.....O`
0020  41 12 05 c4 00 50 31 d2  10 a6 8b ee 88 93 50 18   A....P1. ......P.
0030  fa 1e 41 b9 00 00 50 4f  53 54 20 2f 6c 69 63 65   ..A...PO ST /lice
0040  6e 63 65 2e 70 68 70 20  48 54 54 50 2f 31 2e 31   nce.php  HTTP/1.1
0050  0d 0a 43 6f 6e 74 65 6e  74 2d 54 79 70 65 3a 20   ..Conten t-Type:
0060  61 70 70 6c 69 63 61 74  69 6f 6e 2f 78 2d 77 77   applicat ion/x-ww
0070  77 2d 66 6f 72 6d 2d 75  72 6c 65 6e 63 6f 64 65   w-form-u rlencode
0080  64 0d 0a 55 73 65 72 2d  41 67 65 6e 74 3a 20 41   d..User- Agent: A
0090  64 76 61 6e 63 65 64 49  6e 73 74 61 6c 6c 65 72   dvancedI nstaller
00a0  0d 0a 48 6f 73 74 3a 20  61 75 74 6f 75 70 64 61   ..Host:  autoupda
00b0  74 65 2e 74 72 78 2e 63  6f 6d 2e 70 6c 0d 0a 43   te.trx.c om.pl..C
00c0  6f 6e 74 65 6e 74 2d 4c  65 6e 67 74 68 3a 20 33   ontent-L ength: 3
00d0  31 0d 0a 43 61 63 68 65  2d 43 6f 6e 74 72 6f 6c   1..Cache -Control
00e0  3a 20 6e 6f 2d 63 61 63  68 65 0d 0a 0d 0a 6c 00   : no-cac he....l.
00f0  69 00 63 00 65 00 6e 00  73 00 65 00 69 00 64 00   i.c.e.n. s.e.i.d.
0100  3d 00 27 00 61 00 6b 00  61 00 27 00 26            =.'.a.k. a.'.&

Why the POST parameter in format 'licenseid=%s&languageid=%u" is incomplete and Unicode?
Marek
 
Posts: 20
Joined: Mon Dec 28, 2009 9:25 am

Re: Problem with updater.exe

Postby mihai.petcu » Mon Apr 30, 2012 9:00 am

Hello,

Why the POST parameter in format 'licenseid=%s&languageid=%u" is incomplete and Unicode?

Can you please specify what do you mean by incomplete? Also, why doesn't the Unicode standard meet your requirements?

All the best,
Mihai
Mihai Petcu
Advanced Installer Team
http://www.advancedinstaller.com/
mihai.petcu
 
Posts: 3452
Joined: Thu Aug 05, 2010 8:01 am

Re: Problem with updater.exe

Postby Marek » Mon Apr 30, 2012 1:25 pm

Can you please specify what do you mean by incomplete?


Look at first post. In TCP packet data have not any string in format 'languageid=%u' after '&'.

Also, why doesn't the Unicode standard meet your requirements?


Because, the _POST array look like this.
Code: Select all
Array
(
    [l] => \0\'\0a\0k\0a\0\'\0
)
Marek
 
Posts: 20
Joined: Mon Dec 28, 2009 9:25 am

Re: Problem with updater.exe

Postby mihai.petcu » Mon Apr 30, 2012 4:11 pm

Hello,
Look at first post. In TCP packet data have not any string in format 'languageid=%u' after '&'.

Thank you for bringing this to our attention. We'll investigate this issue.

Because, the _POST array look like this.

I'm afraid I don't understand what you mean. Can you please give us more details?

All the best,
Mihai
Mihai Petcu
Advanced Installer Team
http://www.advancedinstaller.com/
mihai.petcu
 
Posts: 3452
Joined: Thu Aug 05, 2010 8:01 am

Re: Problem with updater.exe

Postby Marek » Wed May 02, 2012 7:38 am

mihai.petcu wrote:
Marek wrote:Because, the _POST array look like this.

I'm afraid I don't understand what you mean. Can you please give us more details?

I mean that in a PHP script that looks like this:
Code: Select all
<?php
$handle = fopen("info.txt", "w");
fwrite($handle, print_r($_POST, true));
fclose($handle);
?>

it gives the following result in file info.txt
Code: Select all
Array
(
    [l] => \0\'\0a\0k\0a\0\'\0
)

It seems to me that it should look like
Code: Select all
Array
(
    [licenseid] => 'aka'
    [languageid] => 1045
)

(where 1045 is polish language code)

It seems to me that because POST command parameters are in Unicode, so the web server wrong parses them and $_POST array in PHP has a bad fields and values.
Marek
 
Posts: 20
Joined: Mon Dec 28, 2009 9:25 am

Re: Problem with updater.exe

Postby mihai.petcu » Thu May 03, 2012 8:19 am

Hello,

It seems there's a bug in the unicode updater which will be fixed in a future version. Thank you for bringing it to our attention.

Meanwhile you can use the ASCII updater by following these steps:
- enable the Advanced Updater from the Updater page
- go to Files and Folders page
- right click "updater.exe" -> Properties
- change the "Source Path" to point to the updater located in "\stubs\x86a"

All the best,
Mihai
Mihai Petcu
Advanced Installer Team
http://www.advancedinstaller.com/
mihai.petcu
 
Posts: 3452
Joined: Thu Aug 05, 2010 8:01 am

Re: Problem with updater.exe

Postby Marek » Fri May 04, 2012 1:12 pm

mihai.petcu wrote:Hello,

It seems there's a bug in the unicode updater which will be fixed in a future version. Thank you for bringing it to our attention.

Meanwhile you can use the ASCII updater by following these steps:
- enable the Advanced Updater from the Updater page
- go to Files and Folders page
- right click "updater.exe" -> Properties
- change the "Source Path" to point to the updater located in "\stubs\x86a"

All the best,
Mihai

It's working. Thanks a lot.
Marek
 
Posts: 20
Joined: Mon Dec 28, 2009 9:25 am

Re: Problem with updater.exe

Postby mihai.petcu » Mon May 07, 2012 6:36 am

You're welcome, glad to assist.
mihai.petcu
 
Posts: 3452
Joined: Thu Aug 05, 2010 8:01 am


Return to Common Problems

Who is online

Users browsing this forum: Dan, Daniel, FergusMurray, Google [Bot] and 6 guests