WinForms UWP app 2 issues

StewartBW 1,360 Reputation points
2025-04-22T22:27:38.8766667+00:00

Hi all

My WinForms .NetFw 4.8 app is installed with msi, I've created an msix installer and it installs to Windows Apps just fine, with a few issues:

When I request to read/write:

AppData Local

It's redirected to:

AppData Local Packages id LocalCache Local

Most operations are done automatically, but when I need to open a text file with:

Process.Start

and path is: AppData Local ...

It will not auto-redirect! So how to open text or eml files?

Why Process.Start does not redirect read requests?

I'm getting this error:

The specified executable is not a valid application for this OS platform.

So what are my safe options here?

I'm in vb.net WinForms Fw4.8.

Also, second issue would be that when registering the app as default app via settings, it works, but will start the app without UWP context, just like I directly open it from:

Program Files WindowsApps

Any workaround?

Generally, when uwp msix is installed, what's the difference internally if run from start menu with uwp context and run directly by clicking on it without uwp context?

Thanks everyone

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,827 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.