IA10->IA18 porting problem with CallDLLfunction

Got a problem you cannot solve? Try here.
jweksej
Posts: 93
Joined: Wed Sep 27, 2006 4:54 am

IA10->IA18 porting problem with CallDLLfunction

Postby jweksej » Fri Mar 28, 2014 1:06 am

Hello,
during porting installer from IA10 to IA18 I've found strange behavior using 'Call DLL function'. I call kernel32->GetDriveType. Installer build with IA10 returnd DRIVE_FIXED (3) what is right, but installer build with IA18 returns DRIVE_NO_ROOT_DIR (1) what is wrong.
Do someone have idea what is going on?

Jarek

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: IA10->IA18 porting problem with CallDLLfunction

Postby FrancescoT » Fri Mar 28, 2014 12:30 pm

Dear Jarek,

Are you calling "GetDriveTypeA" or "GetDriveTypeW" (depending if you want to use the ANSI or the UNICODE function version)?

... it seems you are using a wrong function name.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

jweksej
Posts: 93
Joined: Wed Sep 27, 2006 4:54 am

Re: IA10->IA18 porting problem with CallDLLfunction

Postby jweksej » Mon Mar 31, 2014 5:33 am

I've called GetDriveType - with IA10 it returned ANSI info. I've changed it to GetDriveTypeA and works fine with IA10 and IA18.
Great thanks for help
Jarek

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: IA10->IA18 porting problem with CallDLLfunction

Postby FrancescoT » Mon Mar 31, 2014 11:22 am

:D
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 103 guests