Apr 06 2020 10:33 PM
Hi,
I’m working on MSIX application shortcut Arguments for Mozilla Firefox to build some understanding on the process of how it works. I’m facing the issue as in below.
Note: I have tested the same using Advanced Installer and PSFTooling it works as expected, but when i’m trying to do same with PSF files i’m having issue.
Steps Performed
{
"enableReportError": true,
"applications": [
{
"id": "PSFLAUNCHEROne",
"executable": "VFS\\ProgramFilesX86\\Mozilla Firefox\\firefox.exe",
"arguments": "-devtools",
"workingDirectory": "VFS\\ProgramFilesX86\\Mozilla Firefox",
"stopOnScriptError": false
}
],
"processes": []
}
<!--Package created by MSIX Packaging Tool version: 1.2019.1220.0-->
<Identity ProcessorArchitecture="x64" Version="1.0.0.0" Publisher="CN=Contoso Software (FOR LAB USE ONLY), O=Contoso Corporation, C=US" Name="Firefox-MSPT-PSF-X86"/>
-<Properties>
<DisplayName>Firefox-MSPT-PSF-X86</DisplayName>
<PublisherDisplayName>MS</PublisherDisplayName>
<Description>Firefox-MSPT-PSF-X86</Description>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>
-<Resources>
<Resource Language="en-us"/>
</Resources>
-<Dependencies>
<TargetDeviceFamily Name="Windows.Desktop" MaxVersionTested="10.0.18335.0" MinVersion="10.0.17763.0"/>
</Dependencies>
-<Capabilities>
<rescap:Capability Name="runFullTrust"/>
</Capabilities>
-<Applications>
-<Application EntryPoint="Windows.FullTrustApplication" Executable="VFS\ProgramFilesX86\Mozilla Firefox\PsfLauncher1.exe" Id="PSFLAUNCHEROne">
-<uap:VisualElements Description="Firefox" Square44x44Logo="Assets\Square44x44Logo.png" Square150x150Logo="Assets\Square150x150Logo.png" DisplayName="Firefox" BackgroundColor="transparent">
<uap:DefaultTile Square71x71Logo="Assets\Square71x71Logo.png" Square310x310Logo="Assets\Square310x310Logo.png" Wide310x150Logo="Assets\Wide310x150Logo.png"/>
</uap:VisualElements>
</Application>
</Applications>
</Package>
Upon testing the package i get below error
I’m struggling hard to overcome this issue but no luck, Any Assistance/Guidance/direction will be much appreciated
Apr 07 2020 01:37 PM
Hi @KumarOne., can you verify that the config.json is in the same folder as PSFLauncher.exe?
Apr 07 2020 08:26 PM
Apr 08 2020 10:26 AM
Apr 09 2020 05:20 AM
Apr 09 2020 05:21 AM
Apr 10 2020 11:46 AM
Hi @KumarOne,
We did a bit of digging. Typically, config and PSF binaries need to be in the root on the app. If you take PSFRundll, PsfLauncher, Config.json, and PsfRuntime and put them in the root of the app Firefox will launch.
Also,
-Dian
Apr 11 2020 09:06 AM
I have tried that as well but no luck, have you tested ? has it worked for you ?, if so can you please share the JSON Entries & App Manifest details.
Apr 13 2020 11:04 AM
Hey, @KumarOne
The error you have posted says that the configuration file can't be parsed. Turns out that the configuration file can be found now, good job on fixing the initial error.
The configuration file you posted in your opening message is correct and PSF should be able to parse it.
Can you please post your config.json file here so I can look at it?
Apr 13 2020 09:20 PM
Hi, i have already uploaded the files and msix package as well. I hope you should be able to fetch out the details from MSIX Package. As per the suggestions from @Dian Hartono i have modified the config and xml as in below.
Apr 28 2020 09:29 AM
@Dian Hartono I'll just note here that support in the PSF to handle the PSF components not being at the root folder was added into GitHub some time back. Whether that is in the current nuget package version I'm not sure.
Apr 28 2020 09:41 AM
@KumarOne While this is probably not your issue, please rule this out. Make sure that you used a copy of the 32-bit version of PsfLauncher. The bitness of the Psf launcher and dlls should always match that of the target application.
Apr 29 2020 10:46 AM
Hey @KumarOne
@TIMOTHY MANGAN might be right. The other PSF binaries do need to be 32 bit if your main executable is 32 bit.
I have uploaded Firefox with the configuration manifest changes. Can you please try this package and report back?
If the application still does not work we'll need to diagnose why it isn't working on your machine.
Apr 29 2020 10:54 AM