Home

Query on Shortcuts to non-exe files

%3CLINGO-SUB%20id%3D%22lingo-sub-352499%22%20slang%3D%22en-US%22%3EQuery%20on%20Shortcuts%20to%20non-exe%20files%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-352499%22%20slang%3D%22en-US%22%3E%3CP%3EVendors%20sometimes%20have%20installers%20that%20create%20shortcuts%20with%20the%20target%20path%20set%20to%20a%20non%20exe%20file%2C%20such%20as%20a%20PDF%20file%20or%20html%20reference.%26nbsp%3B%20Native%20install%20of%20these%20applications%20work%20properly%2C%20because%20the%20shell%20is%20used%20to%20resolve%20a%20program%20to%20run%20using%20the%20default%20settings%20for%20the%20file%20type.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPackages%20with%20such%20shortcuts%20are%20currently%20ignored%20by%20the%20Packaging%20Tool.%26nbsp%3B%20Using%20the%20PSF%2C%20plus%20some%20creativity%2C%20it%20is%20possible%20to%20rework%20the%20packaging%20having%20the%20shortcut%20point%20to%20PsfLaunch%20and%20let%20PsfLaunch%20handle%20with%20information%20stored%20in%20the%20config.json%20file.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBut%20PsfLaunch%20does%20not%20(currently)%20use%20the%20shell%20interface%20to%20launch%20the%20application%2C%20so%20configuring%20the%20application%20executable%20to%20the%20file%20will%20fail.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHard-coding%20the%20FTA%20(changing%20the%20config.json%20file%20to%20tell%20PsfLaunch%20to%20launch%20an%20exe%20with%20the%20file%20as%20an%20srgument)%20is%20possible%2C%20but%20probably%20not%20desired%3B%20the%20launching%20vehicle%20for%20the%20file%20should%20be%20determined%20at%20runtime.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EA%20better%20solution%20would%20be%20a%20modification%20to%20PsfLaunch%20to%20support%20this%20scenario.%26nbsp%3B%20This%20could%20be%20taken%20on%20as%20a%20community%20project.%26nbsp%3B%20Unless%20Microsoft%20has%20other%20plans%20to%20address%20it%2C%20in%20which%20case%20there%20is%20no%20sense%20in%20wasting%20time%20on%20such%20a%20project..%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-353414%22%20slang%3D%22en-US%22%3ERe%3A%20Query%20on%20Shortcuts%20to%20non-exe%20files%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-353414%22%20slang%3D%22en-US%22%3E%3CP%3EYea%2C%20same%20case%20for%20the%20windows%20chm%20files(help%20files)%20also.%20Is%20it%20possible%20to%20launch%20the%20non%20exe%20files%20without%20using%20the%20PSF%3C%2FP%3E%3C%2FLINGO-BODY%3E
Tim Mangan
MVP

Vendors sometimes have installers that create shortcuts with the target path set to a non exe file, such as a PDF file or html reference.  Native install of these applications work properly, because the shell is used to resolve a program to run using the default settings for the file type.

 

Packages with such shortcuts are currently ignored by the Packaging Tool.  Using the PSF, plus some creativity, it is possible to rework the packaging having the shortcut point to PsfLaunch and let PsfLaunch handle with information stored in the config.json file.

 

But PsfLaunch does not (currently) use the shell interface to launch the application, so configuring the application executable to the file will fail.

 

Hard-coding the FTA (changing the config.json file to tell PsfLaunch to launch an exe with the file as an srgument) is possible, but probably not desired; the launching vehicle for the file should be determined at runtime.

 

A better solution would be a modification to PsfLaunch to support this scenario.  This could be taken on as a community project.  Unless Microsoft has other plans to address it, in which case there is no sense in wasting time on such a project..

 

1 Reply

Yea, same case for the windows chm files(help files) also. Is it possible to launch the non exe files without using the PSF

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
48 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies