Forum Discussion
Shortcut pointing to Batch script (.bat file) - PSF Tool not worked.
So what version of Java, is it inside the package or locally installed, what does the script look like.
- Feb 07, 2022
- 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.
- sidharthvermaFeb 07, 2022Copper ContributorHi 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. - Bogdan MitracheFeb 07, 2022Iron Contributor
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.
- sidharthvermaFeb 04, 2022Copper ContributorHi 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. - Siva116Feb 03, 2022Brass ContributorHi 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-psftoolingv48
or can we expect a new PSF Tool with new version??? - Feb 02, 2022Updates 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.
- Bogdan MitracheFeb 02, 2022Iron ContributorHi,
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 - sidharthvermaFeb 02, 2022Copper ContributorHi 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.
- Nov 03, 2021Due to other commitments, I might not get PsfTooling updates released with these fixes until start of December.
- Siva116Nov 03, 2021Brass ContributorHi TIMOTHY_MANGAN,
https://www.tmurgent.com/TMBlog/,
when can we expect the new version of PSF in Microsoft Store. - Oct 26, 2021In 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.
- PollewopsSep 29, 2021Iron Contributor
Tested by colleague of mine and new psflauncher seems to work and BAT/CMD files can be started directly by psflauncher32.exe in json file
- Siva116Sep 28, 2021Brass ContributorThanks a lot TIMOTHY_MANGAN for the updated version with fixes......
- PollewopsSep 27, 2021Iron ContributorWauw you did made some important changes. Will test them hopefully tomorrow.
THANKS - Sep 27, 2021My 2021.09.26 build of the PSF will now let you have PsfLauncher executable be a cmd or bat file that will run inside the container.
- PollewopsSep 22, 2021Iron Contributor
TIMOTHY_MANGAN related to your answer, you posted: Thanks for posting the json. I'm not sure why the main bat file is started via cmd inside a powershell, but the scripting portion looks fine.
Is there another way of starting the BAT file, which is located in the bubble and should be run in the bubble? This seems to be the only way we could find. Another way was to use CMD.exe, but then it works only when we used a cmd.exe copy added to the package. When we ran c:\windows\system32\cmd.exe it seems the BAT file does not start in the bubble, but outside 😞
- Sep 21, 2021I have a fix for the scripting, but it is part of a major PSF set of changes I've been working on to resolve a bunch of PSF issues. There is still one more issue that needs addressing (cross architecture processes) and a bunch of testing. Hopefully released around end of month. I'll update this thread as well as posting to my blog over on tmurgent.
- PollewopsSep 20, 2021Iron ContributorAny idea when new version is available? Or can i subscribe somewhere to get info about new version?
- Sep 20, 2021Thanks for posting the json. I'm not sure why the main bat file is started via cmd inside a powershell, but the scripting portion looks fine.
I am looking at this as a problem with the PSF scripting. I'll let you know when I have it sorted out, but a new version of PsfTooling to include the PSF update will be needed. - PollewopsSep 20, 2021Iron Contributor
TIMOTHY_MANGAN thanks for your responses.....we have Zulu Java 1.8 version installed in the package. The current config.json we use looks like:
{ "applications": [{ "id": "PSFLAUNCHERSIXFOUR", "executable": "c:\\windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe", "arguments": "-ExecutionPolicy Bypass -Command \"& {Invoke-CommandInDesktopPackage Test-0607.01-ENG_fg0t8wag126gc PSFLAUNCHERSIXFOUR cmd.exe '\/c c:\\progra~1\\Test\\Test\\bin\\runclient.bat' -PreventBreakaway}\"", "workingDirectory": "", "stopOnScriptError": true, "startScript": { "scriptPath": "AppLauncher.ps1", "scriptArguments": "", "runInVirtualEnvironment": true, "showWindow": false, "waitForScriptToFinish": true, "runOnce": false }, "endScript": { "scriptPath": "AppLauncher.ps1", "scriptArguments": "", "runInVirtualEnvironment": true, "showWindow": false, "waitForScriptToFinish": true, "runOnce": false } }] }AppLauncher.ps1 is just a dummy file since without a startScript it seems to fail.
runclient.bat is a command file which starts the java.exe with arguments.
Above seems to work although it looks terrible due to the popup boxes of PowerShell and CMD.
But maybe you have some additional tips to make this easier configured. The final situation should be that the JAVA.EXE should be started in the bubble.