Jun 04 2021 07:50 AM
I am new to this tool and trying to convert the existing applications to MSIX format. I could able to convert the existing applications (EXE/MSI) to MSIX format but while installing the application on windows 10 , facing the following issues :-
set mypath=%cd%
echo %mypath%
%mypath%\python.exe %mypath%\cwp.py %mypath% %mypath%\python.exe %mypath%\Scripts\jupyter-notebook-script.py "%USERPROFILE%/"
Scenario 3: I have captured the exe using Adminstudio/repackager tool and customize the shortcuts to point only to EXE instead of BAT file. Once received MSI file, captured again with MSI packaging tool. Again i'm facing the same issue as i have seen in Scenario 2.
Do we have an option to unpack the captured MSIX file? if yes, where i need to change the parameter to make it work if the application has following parameter to launch - C:\Anaconda3-2020.02\pythonw.exe C:\Anaconda3-2020.02\cwp.py C:\Anaconda3-2020.02 C:\Anaconda3-2020.02\pythonw.exe C:\Anaconda3-2020.02\Scripts\anaconda-navigator-script.py?
Jun 04 2021 02:05 PM - edited Jun 04 2021 02:10 PM
You have run into a couple of issues. First, as you surmised, the packaging tool does not capture shortcuts to non exe files. Second, it does not bring along any command line arguments.
The good news is that this is easily overcome by using the Package Support Framework. You can inject/configure this by using the free PsfTooling app (free app in the Microsoft Store). You would still use the MSIX packaging tool, but after installing the app and still monitoring, you would start PsfTooling and it will detect the problem and make it easy to fix. AdminStudio also includes PSF capabilities that can deal with this.
The bad news is that even with the shortcut issue solved, Anaconda is not working for other (unknown) causes. Generically, python works OK under MSIX, so there is something specific to the Anaconda wrapper that I have not yet solved.
Jun 07 2021 01:35 AM - edited Jun 07 2021 01:37 AM
Thank you very much for your response.
Please let me know how can i use Package Support Framework along with MSIX packgaing tool or Adminstudio? is it possible to share any relevant links?
Current issue:
Need to capture the shortcut which has BAT files
Need to capture the shortcuts which has extra parameter.
I am trying to convert the MSI to MSIX using Adminstudio as well, getting this error - This package contains no shortcuts defined for the application. applications are usually necessary to define the entry popint into the MSIX/Appx app.
Your help is much appreciated.
Jun 07 2021 03:20 AM
Jun 16 2021 09:50 AM
Hi @Mjahange_786,
I'd be happy to offer some help on your experience.
What Timothy Mangan shared is correct, the MSIX Packaging Tool only detects *.exe files as being eligible as for creating shortcuts. With the use of the MSIX Package Support Framework ("https://aka.ms/msix-psf"), other files can be the target, and you can incorporate parameters with the shortcuts. Details on how to use the Package Support Framework can be found on our MSIX Docs site (Package Support Framework - MSIX | Microsoft Docs).
Unpackaging the MSIX App:
Unpackaging the MSIX Windows Apps can be done in a couple of ways. Using the MSIX Packaging Tool, or through the use of the MakeAppx -unpack command.
Overview of MSIX Packaging Tool - Editor:
Edit a package using Package editor - MSIX | Microsoft Docs
Editing an MSIX App Package - Commandline:
Create an app package with the MakeAppx.exe tool - MSIX | Microsoft Docs
Creating Shortcuts:
We have an article in the Microsoft Docs (See below) that provides guidance on how to leverage the MSIX Package Support Framework to create new shortcuts into your MSIX App. The Shortcuts can contain parameter when using the Package Support Framework.
Download the MSIX Package Support Framework:
MSIX Package Support Framework | GitHub
Windows SDK Download | Microsoft Developer Downloads
Package Support Framework - Creating Shortcuts:
Package Support Framework - Launching Windows Apps with Parameters - MSIX | Microsoft Docs
Please let me know if this was helpful.
Roy
Nov 08 2023 07:43 AM
Nov 08 2023 08:28 AM