Shortcut pointing to Batch script (.bat file) - PSF Tool not worked.

Brass Contributor

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 the help of PSF Tool. while testing I am able to launch every shortcut, except this one (which has batch script).

 

I tried the below things:

1. As we know there is no communication between MSIX container and the native cmd.exe file, I have copied cmd.exe (which is not recommendable) file into msix package and tried to launch the shortcut. It didn't work.

2. In config.json file, replaced cmd.exe with the psflauncher.exe in place of target, which mean this psflauncher will call the .bat file to execute. It didn't work

3. In config.json file, placed .bat file path in Target place with out any arguments. It didn't work.

 

Is there any thing else to try other than above, please advise and guide.

Thanks in Advance.

 

 

30 Replies
In spite of the previous reply, we found that there were still issues in launching BAT/CMD files. After a lot of research, I have implemented a new approach in the PSF to solve the issues. The testing of this approach looks positive, and I should be releasing updates soon-ish. This will involve PSF changes, as well as an updated PsfTooling/TMEditX with the updated PSF.
Hi @TIMOTHY MANGAN,
https://www.tmurgent.com/TMBlog/,
when can we expect the new version of PSF in Microsoft Store.
Due to other commitments, I might not get PsfTooling updates released with these fixes until start of December.
Hi @TIMOTHY MANGAN I have similar issue in my package where I have 5 shortcuts pointing to the batch file. Have you implemented the solution for this in PSFtooling now. If not could you let us know what is the solution for it so that we cam implement it directly in our package via PSF.
Hi,

Have you tried the free Express edition from Advanced Installer to create your MSIX package? It should allow you to specify a BAT file as a target and from what I remember there is no limit on the number of shortcuts.
https://www.advancedinstaller.com/express-edition.html
Updates to the PSF took longer than expected. That work (as well as work on the paid tool) concluded last week. An update to PsfTooling is next on the agenda.
Hi @TIMOTHY MANGAN
Is this the latest PSF Tool which has everything till date with latest fixes: Version: 4.15.2.1
https://www.tmurgent.com/AppV/en/resources/tools-downloads/msix-tools/128-msix-tools/557-psftoolingv...

or can we expect a new PSF Tool with new version???
Hi @Bogdan Mitrache,

I tried using Advanced installer express edition. However, it does not allow me to build the MSIX package as it is trial version and also i am not able to edit an existing package with the trial version. I also could not find any option in the shortcuts to point to an existing batch file. It only has the option to point to executables.

Hi @sidharthverma,

 

The Express edition is a fully free version, all you need to do is to register with an email when you start using it. It shouldn't go into trial mode. Do you also have a separate version of Advanced Installer (Pro/Enterprise or Architect) installed on your machine? Maybe there is a license conflict between the Express edition and the commercial edition.

 

Regarding the option to select a BAT file - when you try to configure/select your application do you see the following option in the file picker? It should allow you to pick EXE and BAT file, as shown in the screenshot.

 

BogdanMitrache_0-1644231860152.png

 

Hi @TIMOTHY MANGAN,

Thanks a lot for updating the PSF tool. could you let us know where we can download the latest binaries of PSF from. Also, since we have a very urgent package to deliver can you provide us with the configuration of config and manifest file to implement in our package.

@sidharthverma 

  • PsfTooling contains a version of the PSF, so you might not need to get your own.
  • The latest versions of the PSF that I maintain on my fork can be downloaded in binary form from the Github repository https://github.com/TimMangan/MSIX-PackageSupportFramework (See releases on the right side of the page.
  • PsfTooling 4.15.2.1 contains the PSF Release 2021.12.07

The PSF Release 2022.1.19 should appear in the next PsfTooling release (target version 5). There is no set date for the next PsfTooling release, other than soon.