Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scripting and PackageRoot folder #125

Closed
TimMangan opened this issue Jan 26, 2020 · 2 comments
Closed

Scripting and PackageRoot folder #125

TimMangan opened this issue Jan 26, 2020 · 2 comments

Comments

@TimMangan
Copy link
Contributor

TimMangan commented Jan 26, 2020

Many of the more interesting Start Scripts that I want to write require the script to know what the root folder of the package is so that files can be located. For example, a first run script might involve looking for configuration files under the package VFS/AppData or LocalAppData folder(s), then checking to see if native equivalent files exist (from an older non-MSIX install), and copying from the non-MSIX or package source as appropriate into the package redirection folder.

So I would like to see the "arguments" field of the script definition in the json to be able to specify a pseudo-variable, such as %PackageRoot% and have the Psf Script processing replace that with the value of g_PackageRootPath.

This would allow a generic script for that purpose, which uses arguments for the root folder and relative specific file paths. This script could then be used for any package, no matter how it is built.

@TimMangan
Copy link
Contributor Author

Addressed in PR#132

@TimMangan
Copy link
Contributor Author

Addressed in replacement PR#137.

Two new Pseudo-variables are introduced for processing by PsfLauncher for scripting. %MsixPackageRoot% and %MsixWritablePackageRoot% will be replaced if present in the command line/arguments for the scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant