Forum Discussion
How to run Client Server application with MSIX
Hi Vlad,
I do not have the code since it is a third party product we use. The exe on the share is started with a simple shortcut that is locally on the pc. I put the shortcut into the MSIX file.
Maybe it makes sense that an external exe has no access to the containers registry or files in terms of security.
/Rudi
Hi Rudi,
Thanks for clarifying, we don't support it via a shortcut today, can you please share how do you run the shortcut from within the MSIX package?
As an FYI - We do support running an .exe from outside the package within the container via CreateProcessAsUser function via the PROC_THREAD_ATTRIBUTE_DESKTOP_APP_POLICY attribute but it is more of a developer scenario - https://msdn.microsoft.com/en-us/library/windows/desktop/ms686880(v=vs.85).aspx
Vlad
- RRobesinNov 27, 2019Copper Contributor
Hi Vlad,
The shortcut is launched by the user and points directly to the exe on the fileshare like "\\server\share\folder\subfolder\runthis.exe". I read the developer info but think that is a bit to far for us. Also I am not fond of using all kind of custom things. If things change which will be the case with MSIX it might not work anymore. I think the conclusion for now is that this is not suitable yet to use in an enterprise environment.
Or am I wrong?
- Vladimir PostelNov 27, 2019Former EmployeeYes, you are right, we don't support this scenario yet. I will capture it.
One more clarification please, how the user finds the shortcut if you deploy it with the MSIX package (it will be under the WindowsApps folder that a regular user don't have permissions for)? Are you coping it to the desktop when the app starts?
Thanks,
Vlad- RRobesinNov 29, 2019Copper Contributor
Hi Vlad,
I forgot to say that for the shortcut I use a man in the middle exe made by Winbatch compiler. It only contains the exepath and wortking folder and runs that. So the shortcut points towards an exe local in the container and that exe starts the exe on the share.
That is how I got the shortcut.