Forum Discussion
Siva116
Aug 26, 2021Brass Contributor
Shortcut pointing to Batch script (.bat file) - PSF Tool not worked.
Hi All, Scenario: I have an app with multiple shortcuts, in those one shortcut's Target is "cmd.exe" and argument is path of a batch script file(.bat file). I have tried to create MSIX package with ...
mohant1850
Jun 13, 2024Copper Contributor
Siva116 you can follow below steps for .bat shortcuts creation.
- Open the AppxManifest.xml file and choose one of the following actions:
- Create a new “Application” element there and set the “Executable” attribute to point to the PsfLauncher executable.
- Update the “Application” element and set the “Executable” to point to the PsfLauncher executable.
- Create a config.json file as shown below, as per you are application name, .bat file location etc.. make sure "id" should be same in manifest file aswell as config file.
- Add the corresponding PSF files along with the config.json file created at step 4 into your MSIX package.
PsfLauncher32.exe/PsfLauncher64.exe
PsfRunDll32.exe/PsfRunDll64.exe
PsfRuntime32.dll/PsfRuntime64.dll
StartMenuCmdScriptWrapper.ps1
Abir_KumarS
Sep 04, 2024Copper Contributor
mohant1850 - I have applied the same config.json but it is still not working.
- mohant1850Sep 05, 2024Copper ContributorFirst, we need to run the batch file manually. In the Task Manager’s Details column, you can choose the Command Line option to identify the command. Use the same command line; in my case, it was /c.
- Sep 04, 2024Abir_KumarS
You would need to run a process monitor trace to see what you did wrong.