Can traditional Win32 apps installed from MSIX\APPx packages or "Microsoft Web Store" access external dll files? - Advanced Installer Community
WPA
Posts: 15
Joined: Wed Feb 16, 2022 11:04 pm
Contact: Website

Can traditional Win32 apps installed from MSIX\APPx packages or "Microsoft Web Store" access external dll files?

Can traditional Win32 apps installed from MSIX\APPx packages or "Microsoft Web Store" access external dll files such as "advapi32.dll"?
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Can traditional Win32 apps installed from MSIX\APPx packages or "Microsoft Web Store" access external dll files?

Hello,

Applications that are packaged as MSIX run in a container, isolated from the rest of the system, so the answer to your question would be no.

For more details, please have a look here:

MSIX Container

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
WPA
Posts: 15
Joined: Wed Feb 16, 2022 11:04 pm
Contact: Website

Re: Can traditional Win32 apps installed from MSIX\APPx packages or "Microsoft Web Store" access external dll files?

Catalin wrote: ↑Wed Mar 30, 2022 2:27 pm the answer to your question would be no.

So does it mean that even external visual c++ dll files can't be accessed? no external dll files can be accessed at all even if "Full Trust" capability is checked?
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Can traditional Win32 apps installed from MSIX\APPx packages or "Microsoft Web Store" access external dll files?

Hello,

I might be wrong here, but I remember testing at some point packaging an app that required VC++ Redistributable in order to work as MSIX and the app worked just fine after the installation (if the VC++ Redistributable was installed on that machine).

Have you tried testing this? If so, how did it go?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
WPA
Posts: 15
Joined: Wed Feb 16, 2022 11:04 pm
Contact: Website

Re: Can traditional Win32 apps installed from MSIX\APPx packages or "Microsoft Web Store" access external dll files?

Catalin wrote: ↑Mon Apr 04, 2022 3:37 pm Have you tried testing this? If so, how did it go?

After extensive tests in real and virtual machines, it was noticed that traditional Win32 Apps installed with MSIX\APPx + "Full Trust" capability can indeed access external dll files, including "advapi32.dll" and visual c++ dll files!

Unfortunately, although external dll files can be accessed, it seems that most traditional Win32 Apps still don't work properly and as intended if installed with MSIX\APPx packages + "Full Trust" capability, since errors and crashes occur often! For example, outputs often return unexpected blank\empty strings, "Exception_Access_Violation" error occurs frequently, and so on!

Saying that, it really does not worth the time and effort to package traditional Win32 Apps as MSIX\APPX since most of them don't work properly and as intended, and most developers by now seems to agree with that.

Some test images below:

https://i.imgur.com/mIlvgu1.png
Image

https://i.imgur.com/gf55Sog.png
Image

https://i.imgur.com/HtpPC7Z.png
Image
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Can traditional Win32 apps installed from MSIX\APPx packages or "Microsoft Web Store" access external dll files?

Hello,

You are indeed right. The MSIX technology is still undergoing development.

Please let me know if there is anything else I could help you with and I will gladly assist.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
leny
Posts: 6
Joined: Thu Dec 15, 2022 10:32 am

Re: Can traditional Win32 apps installed from MSIX\APPx packages or "Microsoft Web Store" access external dll files?

Hi all

I am currently evaluating the product to see if it could meet our needs

we developed an MAUI application in C# (MyApp).
This application is packed as an MSIX package . Some of the dependencies of the application requires the VC++Redist2015 https://www.microsoft.com/fr-fr/downloa ... x?id=48145.

I created an MSIX project with AdvInstaller by importing my MyApp.msix.
But I cannot find how to add a custom action in the MSIX project to install the VC++Redist.exe

Thank in advance if you could help
Leny
Liviu
Posts: 1419
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Can traditional Win32 apps installed from MSIX\APPx packages or "Microsoft Web Store" access external dll files?

Hello Leny,

As I can see, my colleague Daniel has replied to you over the email.

Please continue the conversation there to avoid duplicate threads.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
leny
Posts: 6
Joined: Thu Dec 15, 2022 10:32 am

Re: Can traditional Win32 apps installed from MSIX\APPx packages or "Microsoft Web Store" access external dll files?

Yes , Daniel gave me a solution using an Enterprise project.
I will try this solution.
Thanks
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Can traditional Win32 apps installed from MSIX\APPx packages or "Microsoft Web Store" access external dll files?

You're always welcome, Leny!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
leny
Posts: 6
Joined: Thu Dec 15, 2022 10:32 am

Re: Can traditional Win32 apps installed from MSIX\APPx packages or "Microsoft Web Store" access external dll files?

So, I am trying to apply the solution given by daniel:

1. start AI and create an Enterprise setup project
2. go to "Files and Folders" page and add your MSIX file as a temporary file, using [Add Temporary Files] toolbar button
3. go to "Prerequisites" page and select from our predefined prerequisites list the desired VCRedist prerequisite version
4. go to "Custom Actions" page and add an "Install MSIX package" action to install the MSIX package

But, at step 4, how to specify the MSIX Path <Path to MSIX/APPX> to target the MSIX file which has been added in step 2??
(sorry probably a question for dummy...)
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Can traditional Win32 apps installed from MSIX\APPx packages or "Microsoft Web Store" access external dll files?

Hello Leny,

To achieve that, you can simply click on the field, press "[" --> "File" --> select your file.

Screenshot_36.png
Screenshot_36.png (6.09 KiB) Viewed 10155 times
Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”