Jul 02 2020 02:16 AM
Hi all,
I hope that topic fits in this board. I want to deploy a Windows-Store-App with a customInstall-Action as I need Dokany installed on the local system to create a Virtual File System that I want to manage with a UWP-app. The app itself works, but I do not get the Package-Project to pre-install the Dokany-Prerequisit. On install, I get an "invalid manifest" error, which is quite unspecific. I followed the instructions on how to use the customInstall-extension.
This github-issue describes the same problem - I've got to your community by a hint from there:
https://github.com/MicrosoftDocs/winrt-related/issues/194#event-3493578241
This is the open-source-project where I need to deploy dokany before my own app:
https://github.com/TopperDEL/DokanNet.Tardigrade
You can find the appx-manifest in question here:
Can someone tell me, if:
- customInstall is available for everybody? The doc says only for partners and for certain games, but the github-issue does not mention that restriction.
- if my manifest is correct or where I may have an error.
Thank you very much!
Kind regards,
TopperDEL
Jul 02 2020 02:30 AM
I don't think you will get this working. We tried to leverage the customInstall support in Advanced Installer too and the reply we got was a standard "no". As mentioned in the docs:
This element is currently intended to be used only by certain types of desktop PC games that are published by Microsoft and our partners.
Jul 02 2020 04:03 AM
@Bogdan Mitrache Thank you! Well at least this leads me to "search for another way" instead of hoping ans trying to get this to work, then.
Jul 03 2020 03:15 AM
One option you can try is with the help of the Package Support Framework and it's support to run PowerShell scripts.
Jul 03 2020 03:20 AM
@Bogdan Mitrache That's a nice hint! Powershell would be supported with Windows Store Apps, too?
Have to digg into this one, then. Seems to be a valid path to use. Thank you!
Jul 03 2020 04:01 AM
Jul 05 2020 09:12 AM
@TopperDEL If looking to use the PSF scripting support to run a PowerShell script, you need to be aware of the following:
I will also mention this. If the destination location to place files is outside of the folder coverage of files inside the package, files created by processed in the container are placed outside of the virtualized file system. For example, if you don't include any files in the Documents folder in the package, a file written will end up in the real documents folder.
Writing files outside of the container that are not intended for use by other applications is not in-line with Microsoft's "never regret" strategy with MSIX, where removal removes everything. So if you are talking about files only used by the app, consider if external writing is actually needed. When client-side customizations are needed, I have used an in-container script that writes to the redirected location (using the new %MSIXWritablePackageRoot% pseudo-variable supported by Psf Scripting) to solve the problem and support "never regret".
Aug 03 2020 03:49 AM
I still did not get it to work.
The "customInstall" has been constantly rejected from Microsoft - that fits the expectations from the documentation.
PSF did not work on my side, either. Is this really usable for Store-Apps @Bogdan Mitrache? Unfortunately John Vintzel did not respond here yet.
Currently I'm a completely lost as I 1. do not know if PSF is really supported in my case and 2. if there is a "legal" and "official" way to install Dokany via MSI together with my store-app.
Aug 04 2020 04:18 AM
Hi @TopperDEL
This is how to launch an MSI from an MSIX package using the Packager Support Framework.
I doubt Microsoft will allow you to publish this in the store. But you should be allowed to publish it directly on your website, using an appinstaller file.
The appinstaller file also allows you to configure auto-updates using the OS's native support, even if the app is not deployed through the Store.
Hope it helps,
Bogdan
Sep 20 2021 01:59 PM