App build using .NET Core 6 Winforms application need .NET Core Desktop runtime

880 Views Asked by At

We are building an app using .NET Core 6 Winforms. This app would be hosted on a network file share. If users need to access this app, they would need at least .NET desktop runtime to be installed on their machine.

My question: is it possible to install the .NET desktop runtime on the host machines in non-admin mode?

We have number of users who need to access this app and those users would not have the admin rights to install the needed desktop runtime on their machine so we are trying to create a utility which would install the .NET desktop runtime on their machine by using PowerShell but that's only possible if there is a way to do non-admin installation for the .NET Desktop runtime?

1

There are 1 best solutions below

2
Elijah On

You can change your Deployment Mode to Self-Contained to bundle the runtime with your program. Note that this option will only appear if the Target runtime is not Portable. I don't think it's possible do do it any other way. This will also produce a lot of DLLS. If you'd like to only produce one large EXE you can use Single-file mode.