How best to package an application which uses dynamic parameters?

%3CLINGO-SUB%20id%3D%22lingo-sub-2011200%22%20slang%3D%22en-US%22%3EHow%20best%20to%20package%20an%20application%20which%20uses%20dynamic%20parameters%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2011200%22%20slang%3D%22en-US%22%3E%3CP%3EI'd%20like%20to%20package%20an%20application%20which%20currently%20uses%20a%20batch%20script%20to%20launch%20an%20exe.%20Unfortunately%20the%20script%20can't%20simply%20set%20environment%20variables%20prior%20to%20launching%20the%20exe%20as%20these%20parameters%20must%20be%20passed%20into%20the%20application%20at%20launch%20and%20are%20built%20dynamically%20based%20on%20factors%20such%20as%20the%20system%20hostname.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPSF%20almost%20looks%20like%20it%20could%20do%20what%20I%20want%20but%20the%20PSF%20json%20seems%20to%20want%20to%20know%20the%20.exe%20file%20to%20launch%20when%20the%20script%20is%20complete.%20Perhaps%20this%20is%20better%20for%20the%20PSF%20space%2C%20but%20can%20PSF%20simply%20launch%20a%20script%20without%20running%20an%20exe%20afterwards%3F%20Or%20is%20there%20some%20%22null%22%20exe%20I%20can%20hack%20into%20the%20MSIX%20as%20a%20place%20holder%3F%20I'm%20not%20sure%20this%20is%20a%20good%20idea%20because%20if%20I%20understand%20MSIX%20correctly%2C%20it%20tries%20to%20%22wait%22%20until%20applications%20in%20the%20package%20are%20unused%20before%20beginning%20say%2C%20an%20update.%20But%20if%20the%20application%20was%20launched%20by%20a%20script%2C%20I%20don't%20think%20MSIX%20would%20have%20any%20visibility%20on%20that.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20MSIX%20a%20bad%20choice%20for%20an%20application%20such%20as%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Senior Member

I'd like to package an application which currently uses a batch script to launch an exe. Unfortunately the script can't simply set environment variables prior to launching the exe as these parameters must be passed into the application at launch and are built dynamically based on factors such as the system hostname.

 

PSF almost looks like it could do what I want but the PSF json seems to want to know the .exe file to launch when the script is complete. Perhaps this is better for the PSF space, but can PSF simply launch a script without running an exe afterwards? Or is there some "null" exe I can hack into the MSIX as a place holder? I'm not sure this is a good idea because if I understand MSIX correctly, it tries to "wait" until applications in the package are unused before beginning say, an update. But if the application was launched by a script, I don't think MSIX would have any visibility on that.

 

Is MSIX a bad choice for an application such as this?

0 Replies