Forum Discussion
How to create url shortcut in MSIX
- Dec 16, 2024
I tried to send email and wanted a good repro....guess what..it works now. Pff...did probably something wrong myself in the first place. This is my config which is working.
<Application Id="PSFLAUNCHERThree" Executable="PsfLauncher3.exe" EntryPoint="Windows.FullTrustApplication">
<uap3:VisualElements AppListEntry="default" BackgroundColor="transparent" Description="Google url" DisplayName="Google url" Square150x150Logo="Assets\Edge-Square150x150Logo.scale-400.png" Square44x44Logo="Assets\Edge-Square44x44Logo.scale-400.png" VisualGroup="Test"></uap3:VisualElements>
</Application>
"applications": [
{
"id": "PSFLAUNCHERThree",
"executable": "https://www.google.com/",
"arguments": "",
"workingDirectory": ""
}
]
Chacon The Package Support Framework PsfLauncher can be used to target a URL. You just Add PsfLauncher64.exe and PsfRuntime64.dll in your package, point your shortcut to Psflauncher, and enter the URL in the target application field in the Config.Json file's Application section..
To update this old post, there are two possibilities these days to achieve your goal:
- Microsoft has added an extension to the AppXManifest to support URL launches. This would use the default browser on the end user system. This is the most appropriate path for a developer, but can be used in repackaging if you manually edit the AppXManifest file.
- The Package Support Framework can launch the URL using either the default FTA (e.g. the same default browser), or you can provide a path to the default browser. This is supported when repackaging via the Microsoft MSIX Packaging Tool and PsfTooling or TMEditX (although I suggest the soon to be released versions of those external tools PsfTooling 5.2 or TMEditX 2.2). This is probably also possible through various other third party repackaging tools.
- PollewopsDec 16, 2024Iron Contributor
Hi TIm, I tried using the Psflauncher, but it started a 'white' window and nothing more :-(
- Dec 16, 2024
Note the second bullet in your post. How was the Psflauncher added to the package (what tooling was used)? I would expect the PsfLauncher built into the packaging tool to not have this support.
- PollewopsDec 16, 2024Iron Contributor
Hi Tim, I used your Psflauncher. I copied the file to the root of the package and use them from there. I put the website in the the config.json 'executable' field.
- alexmarin89May 06, 2023Iron ContributorHey Tim,
Do you have a link to some documentation in regards of the native support for URLs that MS implemented?- May 24, 2023
- PollewopsDec 16, 2024Iron Contributor
Maybe someone has an example of this? How to configure the manifest so a shortcut will be available in the start menu, pointed to a website url?
- ramprasadb1986May 02, 2023Copper Contributor
Hi Tim,
Thanks for this post.
Would it be possible to pass the port numbers as well along with URL ?
Could please share the steps and sample syntax if possible.
I don't have any shortcuts, files and icons. Just have url details and port number (to pass it as a parameter)Thanks in Advance.
- May 05, 2023I'm unsure if arguments are permitted in the Microsoft AppXManifest extension for URL Launches.
As to using the PSF, yes this can be done. If the port is specified in the .url file, then I believe TMEditX will detect and use it. If I am wrong, you can manually edit the config.json file in the TMEditX tool, after applying the PSF fix, to add the port number.- ramprasadb1986May 05, 2023Copper ContributorHI Tim,
Thanks for the reply.
Is there any sample manifest file sysntax to call url using psflauncher ? could you please help me if any.
Thanks in advance.