Forum Discussion

nathan-pieces's avatar
nathan-pieces
Copper Contributor
Feb 14, 2022
Solved

An unhandled win32 exception occurred in PsfLauncher64.exe

Hello, and thanks for any help in advance. I have a UWP application that I want to package with the Package Support Framework. All I want to do is run a simple PowerShell script upon installation ...
  • TIMOTHY_MANGAN's avatar
    TIMOTHY_MANGAN
    Feb 16, 2022

    nathan-pieces A quick look indicates that you are mixing your fruits.

     

    The PSF can only work when the manifest Application entry has the EntryPoint="windows.FullTrustAppliccation".  The executable on that line will be a copy of the PsfLauncherXxx.exe.

     

    PsfLauncher can run the script that you have and then run the target application.  However, the form of that target application exe cannot be an exe built as a UWP app.  It must be a Win32, .Net Framework, or Windows App SDK based executable.

     

    I'm thinking that you really should be looking at first porting the UWP to the Windows App SDK.  The simple UWP app you have there should be a piece of cake.  So you should be able to succeed with porting and getting the result you want.  Assuming that this is proof of concept, porting your real UWP app might be more challenging depending on what is in it.

Resources