Forum Discussion

Vanbogie1200's avatar
Vanbogie1200
Copper Contributor
Mar 30, 2021

Issue Launching Applications Using PSF

Hi All, I've been having issues trying to launch MSIX applications that need remediation via the PSF. There are a few different applications I've been working with the PSF to resolve various issues but it looks like other people have used Notepad++ as an example here so I will as well.

I'm almost certain there is something missing from my hierarchy of knowledge as to how the PSF operates and something basic is missing or our of place here. I've been editing the files in vscode and testing on devices running 20H2. However, when launched the psfLauncher64.exe will run silently and notepad++ never launches.

 

The issue I'm attempting to resolve with PSF is the MSIX converted Notepad++ tries to create xml files in the root directory. These attempts bring visible errors forward, 'Error Langs.xml' and such. 

The PSF files are in the root of the MSIx Package.

AppxManifest snippet:

<Application Id="NOTEPAD" 
Executable="PSFLauncher64.exe" 
EntryPoint="Windows.FullTrustApplication">


Config.json:
I have tried using the "NOTEPAD" Application ID as well.

 

{
    "applications": [
        {
            "id": "PSFLAUNCHERSIXFOUR",
            "executable": "VFS/ProgramFilesX64/Notepad\\+\\+/notepad\\+\\+.exe",
            "workingDirectory": "VFS/ProgramFilesX64/Notepad\\+\\+/"
        }
    ],
    "processes": [
        {
            "executable": "notepad\\+\\+$",
            "fixups": [
                {
                    "dll": "FileRedirectionFixup64.dll",
                    "config": {
                        "redirectedPaths": {
                            "packageRelative": [
                                {
                                    "base": "VFS/ProgramFilesX64/Notepad\\+\\+/",
                                    "patterns": [
                                        ".*\\.xml"
                                    ]
                                }
                            ]
                        }
                    }
                }
            ]
        }
    ]
}

 

 

4 Replies

Resources