DPInst.exe fails if space in /PATH parameter pathnamequestion

Fri Apr 06, 2018 1:34 am in AirDroid Win

page 1 / 1
Colin
OP

DPInst.exe fails if space in /PATH parameter pathname

When ARE you going to fix your awful coding bug in Airdroid driver install routine?
My username is Mr Colin Stamp with spaces. (Not my idea!)
Airdroid device driver install on Win 7 fails with:
ERROR: Path 'C:\Users\Mr' not found.
DPINST.EXE is probably older than most of you, it's early DOS almost "8.3 filesystem" architecture, but not quite that bad, but it was last digitally signed in 2006!
If you try and pass DPINST.EXE a space in the /PATH parameter it won't find it.
You have to manually use the hex character for a space to slip your /PATH past DPINST.EXE's parsing & path validation routine.
Which means your program needs to parse the command line it is sending to DPINST.EXE and replace spaces with hex values.
Come on chaps, this is programming 1-0-1, parse the bloody input line checking it's valid for the called program to use:

C:\Users\Mr Colin Stamp\AppData\Local\Temp\AirDroid\DeviceDriver\62de5e3d\DPInst64.exe /SH /SA /LM /PATH C:\Users\Mr Colin Stamp\AppData\Local\Temp\AirDroid\DeviceDriver\62de5e3d

clearly your command line has spaces in the /PATH parameter which will cause any antique DOS program to woof cookies and die.
You will have to embed the hex value for a space to make this work.

Here's the log:

DPINST.LOG:
INFO: Returning with code 0x80000000
INFO: 02/14/2018 16:37:14
INFO: ****************************************
INFO: 04/06/2018 01:00:02
INFO: Product Version 2.1.0.0.
INFO: Version: 6.0.6000
INFO: Platform ID: 2 (NT)
INFO: Service Pack: 0.0
INFO: Suite: 0x0100, Product Type: 1
INFO: Architecture: AMD64.
INFO: Interactive Windows Station
INFO: Command Line: '"C:\Users\Mr Colin Stamp\AppData\Local\Temp\AirDroid\DeviceDriver\ef0f153b\DPInst64.exe" /SH /SA /LM /PATH C:\Users\Mr Colin Stamp\AppData\Local\Temp\AirDroid\DeviceDriver\ef0f153b'
INFO: DPInst is a multi-lingual binary.
INFO: ****************************************
ERROR: Path 'C:\Users\Mr' not found.
INFO: Returning with code 0x80000000
INFO: 04/06/2018 01:01:08
Airdroid Driver Error.jpg
Colin
Niki Admin
#1

Re: DPInst.exe fails if space in /PATH parameter pathname

When ARE you going to fix your awful coding bug in Airdroid driver install routine?
My username is Mr Colin Stamp with spaces. (Not my idea!)
Airdroid device driver install on Win 7 fails with:
ERROR: Path 'C:\Users\Mr' not found.
DPINST.EXE is probably older than most of you, it's early DOS almost "8.3 filesystem" architecture, but not quite that bad, but it was last digitally signed in 2006!
If you try and pass DPINST.EXE a space in the /PATH parameter it won't find it.
You have to manually use the hex character for a space to slip your /PATH past DPINST.EXE's parsing & path validation routine.
Which means your program needs to parse the command line it is sending to DPINST.EXE and replace spaces with hex values.
Come on chaps, this is programming 1-0-1, parse the bloody input line checking it's valid for the called program to use:

C:\Users\Mr Colin Stamp\AppData\Local\Temp\AirDroid\DeviceDriver\62de5e3d\DPInst64.exe /SH /SA /LM /PATH C:\Users\Mr Colin Stamp\AppData\Local\Temp\AirDroid\DeviceDriver\62de5e3d

clearly your command line has spaces in the /PATH parameter which will cause any antique DOS program to woof cookies and die.
You will have to embed the hex value for a space to make this work.

Here's the log:

DPINST.LOG:
INFO: Returning with code 0x80000000
INFO: 02/14/2018 16:37:14
INFO: ****************************************
INFO: 04/06/2018 01:00:02
INFO: Product Version 2.1.0.0.
INFO: Version: 6.0.6000
INFO: Platform ID: 2 (NT)
INFO: Service Pack: 0.0
INFO: Suite: 0x0100, Product Type: 1
INFO: Architecture: AMD64.
INFO: Interactive Windows Station
INFO: Command Line: '"C:\Users\Mr Colin Stamp\AppData\Local\Temp\AirDroid\DeviceDriver\ef0f153b\DPInst64.exe" /SH /SA /LM /PATH C:\Users\Mr Colin Stamp\AppData\Local\Temp\AirDroid\DeviceDriver\ef0f153b'
INFO: DPInst is a multi-lingual binary.
INFO: ****************************************
ERROR: Path 'C:\Users\Mr' not found.
INFO: Returning with code 0x80000000
INFO: 04/06/2018 01:01:08Image
Hi,

Thank you for your feedback and sorry for any inconvenience that you've experienced.

Would you like to click this link to download desktop AirDroid​ on your computer? And to install again to see if it works.
https://s3.amazonaws.com/dl.airdroid.com/20180409134833_AirDroid_Setup_no_ad_3.6.2.0_driver_path_201804091040.exe

Feel free to let us know if you need further help.

Best Regards,
Niki
Admin
(Sign in or sign up to post a reply.)
page 1 / 1

Statistics

24655 posts

7416 threads

Members: 235021

Latest Member: W.R-以藏-

Online: 27