We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

sasha
Posts: 91
Joined: Fri Oct 20, 2023 8:37 pm

Calling a function in a standard DLL issue (ARM64)

Hello, thanks for looking at my question.

Our installer has a custom action calling a function in one of our DLLs (when a prior version of the product is installed).
Our product is x64 (mostly).
Now, running the installer on an ARM64 system, the custom action fails with an error that a DLL required could not be run.

Could you, please, explain why that happens? I understand that AI provides a wrapper to call functions in standard DLLs. I also understand that AI is x64-based. So, why does it fail to load our x64 DLL and call a function in it?

Does it rely on some system DLL to make a call and that DLL is, of course, ARM64 and that's why it fails?

Can you suggest a workaround? My current approach is to use PowerShell with crazy method definitions and twists and turns to ensure a proper architecture PowerShell is used.

Thanks!
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Calling a function in a standard DLL issue (ARM64)

Hello,

Apologies for the quite delayed reply on this!

This is currently under investigation on our side and I will followup as soon as I will have more information.

Thank you for your patience!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Calling a function in a standard DLL issue (ARM64)

Hello,

If possible, could you please share with me the following resources:

- a copy of the AIP file

- a download link for the setup

- a download link for the DLL file that is causing these issues

by email at support at advancedinstaller dot com so we can further investigate this?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sasha
Posts: 91
Joined: Fri Oct 20, 2023 8:37 pm

Re: Calling a function in a standard DLL issue (ARM64)

Thanks for the reply.
I would need to obtain a permission to supply the files first.
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Calling a function in a standard DLL issue (ARM64)

You are always welcome, Sasha!

And sure thing, there's no rush here - we will be waiting for the resources so we can also run some tests on our end.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”