PSF Launcher - EXE with .config file

%3CLINGO-SUB%20id%3D%22lingo-sub-3050429%22%20slang%3D%22en-US%22%3EPSF%20Launcher%20-%20EXE%20with%20.config%20file%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3050429%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20launch%20.NET%20exe%20which%20has%20.config%20file%20with%20the%20exe.%3C%2FP%3E%3CP%3EHow%20can%20I%20launch%20the%20exe%20using%20PSF%20launcher%3F%26nbsp%3B%20I%20tried%20setting%20argument%20and%20working%20directory%20but%20that%20didn't%20help.%3CBR%20%2F%3EPS%20-%20I%20am%20trying%20to%20apply%20FileRedirectionFixup.%20Application%20needs%20write%20permission%20in%20INSTALLDIR.%3CBR%20%2F%3ECan%20someone%20help%20me%20create%20the%20config%20file%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20Config%20File%20%3A-%3C%2FP%3E%3CP%3E%7B%3CBR%20%2F%3E%22applications%22%3A%20%5B%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22id%22%3A%20%22PSF%22%2C%3CBR%20%2F%3E%22executable%22%3A%20%22VFS%2FProgramFilesX86%2FHC%2FHCDF.exe%22%2C%3CBR%20%2F%3E%22workingDirectory%22%3A%20%22VFS%2FProgramFilesX86%2FHC%2F%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%5D%2C%3CBR%20%2F%3E%22processes%22%3A%20%5B%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22executable%22%3A%20%22.*%22%2C%3CBR%20%2F%3E%22fixups%22%3A%20%5B%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22dll%22%3A%20%22FileRedirectionFixup32.dll%22%2C%3CBR%20%2F%3E%22config%22%3A%20%7B%3CBR%20%2F%3E%22redirectedPaths%22%3A%20%7B%3CBR%20%2F%3E%22packageRelative%22%3A%20%5B%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22base%22%3A%20%22VFS%2FProgramFilesX86%2FHC%2F%22%2C%3CBR%20%2F%3E%22patterns%22%3A%20%5B%3CBR%20%2F%3E%22.*%5C%5C.xml%22%3CBR%20%2F%3E%5D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%5D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%5D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%5D%3CBR%20%2F%3E%7D%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I am trying to launch .NET exe which has .config file with the exe.

How can I launch the exe using PSF launcher?  I tried setting argument and working directory but that didn't help.
PS - I am trying to apply FileRedirectionFixup. Application needs write permission in INSTALLDIR.
Can someone help me create the config file?

 

My Config File :-

{
"applications": [
{
"id": "PSF",
"executable": "VFS/ProgramFilesX86/HC/HCDF.exe",
"workingDirectory": "VFS/ProgramFilesX86/HC/"
}
],
"processes": [
{
"executable": ".*",
"fixups": [
{
"dll": "FileRedirectionFixup32.dll",
"config": {
"redirectedPaths": {
"packageRelative": [
{
"base": "VFS/ProgramFilesX86/HC/",
"patterns": [
".*\\.xml"
]
}
]
}
}
}
]
}
]
}

2 Replies
Did you make sure you modified the manifest to set the Executable attribute of the Application element to the name of the PSF Launcher executable file?

More info about this here:
https://docs.microsoft.com/en-us/windows/msix/psf/package-support-framework
yes..but still the same issue