Forum Discussion
SJamal85
Sep 27, 2022Copper Contributor
Unable to launch .cmd file as shortcut in MSIX
Hi all, I have an application which is using .cmd file as entry point. However, when I am trying to handle this using PSF files in MSIX package, I am getting error stating " The Remote procedure ...
Sep 28, 2022
SJamal85 cmd requires special handling. The easiest way to handle is to use the PackageSupportFramework PsfLauncher to handle it for you.
In essence, this PsfLauncher will run inside the container to start a powershell script that runs outside of the container to then inject a cmd.exe process to run your cmd file back into the container. You would need the 64-bit PsfLauncher (replacing your use of wscript), PsfRuntime, and the powershell script wrapper.