MSIX package Support Framework JSON Argument issue

%3CLINGO-SUB%20id%3D%22lingo-sub-3019368%22%20slang%3D%22en-US%22%3EMSIX%20package%20Support%20Framework%20JSON%20Argument%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3019368%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20create%20some%20additional%20app%20shortcuts%20for%20Python%20(as%20part%20of%20ARCGISPro).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFirstly%2C%20I%20find%20it%20incredible%20that%20MS%20have%20not%20included%20basic%20shortcut%20functionality%20within%20MSIX%2C%20and%20we%20have%20to%20utilize%20PSF%20for%20some%20pretty%20basic%20requirements.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20I%20guess%20this%20is%20where%20we%20are..%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20problem%20with%20my%20config.json%20file%20as%20the%20arguments%20for%20Python%20also%20include%20file%20paths%2C%20and%20the%20.json%20file%20does%20not%20seem%20to%20accept%20these.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20local%20installation%20shortcut%20for%20iPython%20looks%20like%20this%3A%3C%2FP%3E%3CP%3E%22C%3A%5CProgram%20Files%5CArcGIS%5CPro%5Cbin%5CPython%5Ccwp.exe%22%20%22C%3A%5CProgram%20Files%5CArcGIS%5CPro%5Cbin%5CPython%5Cenvs%5Carcgispro-py3%22%20%22C%3A%5CProgram%20Files%5CArcGIS%5CPro%5Cbin%5CPython%5Cenvs%5Carcgispro-py3%5Cpython.exe%22%20%22C%3A%5CProgram%20Files%5CArcGIS%5CPro%5Cbin%5CPython%5Cenvs%5Carcgispro-py3%5CScripts%5Cipython-script.py%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20cwp.exe%20is%20calling%201.%20arcgispro-py3%2C%202.%20python.exe%2C%203.%20ipython-script.py%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20created%20my%20config.json%20file%20as%20follows%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%7B%3CBR%20%2F%3E%22applications%22%3A%20%5B%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22id%22%3A%20%22iPython%22%2C%3CBR%20%2F%3E%22executable%22%3A%20%22VFS%2FProgramFilesX64%2FArcGIS%2FPro%2FBin%2Fcwp.exe%3CBR%20%2F%3E%22arguments%22%3A%22VFS%2FProgramFilesX64%2FArcGIS%2FPro%2FBin%2Fpython%2Fenvs%2Farcgispro-py3%22%22VFS%2FProgramFilesX64%2FArcGIS%2FPro%2FBin%2Fpython%2Fenvs%2Farcgispro-py3%2Fpython.exe%22%20%22VFS%2FProgramFilesX64%2FArcGIS%2FPro%2FBin%2Fpython%2Fenvs%2Farcgispro-py3%2Fscripts%2Fipython-script.py%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%5D%3CBR%20%2F%3E%7D%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22NickS_1-1638293784689.png%22%20style%3D%22width%3A%20568px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F330480i07E0FBE3A0C72D62%2Fimage-dimensions%2F568x149%3Fv%3Dv2%22%20width%3D%22568%22%20height%3D%22149%22%20role%3D%22button%22%20title%3D%22NickS_1-1638293784689.png%22%20alt%3D%22NickS_1-1638293784689.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20I%20keep%20getting%20a%20failure%20of%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22NickS_0-1638293682241.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F330478i09C772DFAE203F73%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22NickS_0-1638293682241.png%22%20alt%3D%22NickS_0-1638293682241.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20not%20sure%20how%20the%20%22arguments%22%26nbsp%3B%20should%20be%20recorded%3A%3C%2FP%3E%3CP%3E1.%20Should%20I%20still%20be%20using%20the%20full%20VFS%20path%20for%20each%20call%3C%2FP%3E%3CP%3E2.%20Should%20I%20remove%20%2F%20add%20the%20%22%20marks%3C%2FP%3E%3CP%3E3.%20Is%20this%20at%20all%20possible%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can%20get%20it%20to%20work%20n%20more%20simple%20applications%20with%20standard%20%22%2Fargument%20%22%20context%2C%20but%20not%20with%20this%20long%20VFS%20imbedded%20string.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20would%20be%20greatly%20appreciated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3019368%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Econfig.json%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMSIX%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Epackage%20support%20framework%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPSF%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3038565%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20package%20Support%20Framework%20JSON%20Argument%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3038565%22%20slang%3D%22en-US%22%3EHi%20Nick%2C%20%3CBR%20%2F%3EI%20think%20a%20closing%20quote%20is%20missing%20for%20executables%20and%20I%20will%20put%20the%20whole%20list%20of%20arguments%20in%20a%20set%20of%20double%20quotes%20and%20try%20escaping%20the%20quotes%20needed%20as%20a%20part%20of%20arguments%20to%20be%20passed%20on.%20I%20have%20messaged%20you%20for%20more%20details%20and%20with%20an%20example.%20Let%20me%20know%20if%20that%20works.%20%3CBR%20%2F%3E%3CBR%20%2F%3EHarshada%3C%2FLINGO-BODY%3E
Occasional Contributor

I am trying to create some additional app shortcuts for Python (as part of ARCGISPro).

 

Firstly, I find it incredible that MS have not included basic shortcut functionality within MSIX, and we have to utilize PSF for some pretty basic requirements.

 

However, I guess this is where we are..

 

I have a problem with my config.json file as the arguments for Python also include file paths, and the .json file does not seem to accept these.

 

My local installation shortcut for iPython looks like this:

"C:\Program Files\ArcGIS\Pro\bin\Python\cwp.exe" "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3" "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe" "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Scripts\ipython-script.py"

 

 

So cwp.exe is calling 1. arcgispro-py3, 2. python.exe, 3. ipython-script.py

 

 

I have created my config.json file as follows:

 

{
"applications": [
{
"id": "iPython",
"executable": "VFS/ProgramFilesX64/ArcGIS/Pro/Bin/cwp.exe
"arguments":"VFS/ProgramFilesX64/ArcGIS/Pro/Bin/python/envs/arcgispro-py3""VFS/ProgramFilesX64/ArcGIS/Pro/Bin/python/envs/arcgispro-py3/python.exe" "VFS/ProgramFilesX64/ArcGIS/Pro/Bin/python/envs/arcgispro-py3/scripts/ipython-script.py"
}
]
}

NickS_1-1638293784689.png

 

But I keep getting a failure of:

 

NickS_0-1638293682241.png

 

 

I'm not sure how the "arguments"  should be recorded:

1. Should I still be using the full VFS path for each call

2. Should I remove / add the " marks

3. Is this at all possible?

 

I can get it to work n more simple applications with standard "/argument " context, but not with this long VFS imbedded string.

 

Any help would be greatly appreciated.

 

Thanks

 

 

 

1 Reply
Hi Nick,
I think a closing quote is missing for executables and I will put the whole list of arguments in a set of double quotes and try escaping the quotes needed as a part of arguments to be passed on. I have messaged you for more details and with an example. Let me know if that works.

Harshada