IA10->IA18 porting problem with CallDLLfunction

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

IA10->IA18 porting problem with CallDLLfunction

Post by jweksej »

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

Post by FrancescoT »

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

Post by jweksej »

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

Post by FrancescoT »

: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
Post Reply