Marek
Posts: 24
Joined: Mon Dec 28, 2009 9:25 am

Problem with updater.exe

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?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Problem with updater.exe

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
Follow us: Twitter - Facebook - YouTube
Marek
Posts: 24
Joined: Mon Dec 28, 2009 9:25 am

Re: Problem with updater.exe

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
)
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Problem with updater.exe

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
Follow us: Twitter - Facebook - YouTube
Marek
Posts: 24
Joined: Mon Dec 28, 2009 9:25 am

Re: Problem with updater.exe

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.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Problem with updater.exe

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
Follow us: Twitter - Facebook - YouTube
Marek
Posts: 24
Joined: Mon Dec 28, 2009 9:25 am

Re: Problem with updater.exe

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.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Problem with updater.exe

You're welcome, glad to assist.
e1469699
Posts: 7
Joined: Mon Mar 03, 2014 4:00 pm

Re: Problem with updater.exe

mihai.petcu wrote:You're welcome, glad to assist.
Hello my brother @mihai.petcu and @Marek.
Althought, my case is different with this thread. But it have a connection (connexion or concern).
This is:
I use a Liscensing from server.
This picture is example. My URL is different with it:
Image
. My SQL and .php: okay. no problem.
But when user use a Sniffer Tool ( Network Associates Sniffer or Analyzer: a public domain protocol analyzer or Windump or Dsniff ...ect) or Wireshark like Mr@Marek.
Then user install my soft:
Image
And at the moment, they can read and know about my URL: .php -> althought, i don't like this:
Image
Okay. But with: "User-Agent" : I want change. Can you teach me?
Please help me and for me a way: How to change?
thanks you so much
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Problem with updater.exe

Hello,

You can see my response on the "Updater URL - Updates server security" thread.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
e1469699
Posts: 7
Joined: Mon Mar 03, 2014 4:00 pm

Re: Problem with updater.exe

Daniel wrote:Hello,

You can see my response on the "Updater URL - Updates server security" thread.

All the best,
Daniel
Oh, i don't think so. This is of Firefox
But my case is our software: advancedinstaller
I think we need config at our advancedinstaller.
Can you tell me more and more cause i am newbie
thanks

Return to “Common Problems”