13 строки
2.2 KiB
Markdown
13 строки
2.2 KiB
Markdown
## Package Layout
|
|
The Package Support Framework makes some assumptions about which files are present in the package, their location in the package, and what their file names are. These requirements are:
|
|
|
|
| File Name | Requirements |
|
|
| --------- | ------------ |
|
|
| PsfLauncher32.exe<br>PsfLauncher64.exe | This is the entry point to the application that appears in the AppxManifest. There is no naming requirement imposed on it and the only path requirement is that it be able to find PsfRuntimeXX.dll in its dll search path. In fact, you can relatively easily replace this executable with your own if you wish. In general, it is suggested that you match this executable's architecture with that of the target executable to avoid unnecessary extra work. You can find more information on [MSDN](https://docs.microsoft.com/windows/uwp/porting/package-support-framework#create-a-configuration-file) |
|
|
| PsfRuntime32.dll<br>PsfRuntime64.exe | This _must_ be named either `PsfRuntime32.dll` or `PsfRuntime64.dll` (depending on architecture), and _must_ be located at the package root. For more information on this dll, you can find its documentation [here](PsfRuntime/readme.md) |
|
|
| PsfRunDll32.exe<br>PsfRunDll64.exe | Its presence is only required if cross-architecture launches are a possibility. Otherwise, it _must_ be named either `PsfRunDll32.exe` or `PsfRunDll64.exe` (depending on architecture), and _must_ be located at the package root. For more information on this executable, you can find its documentation [here](PsfRunDll/readme.md) |
|
|
| config.json | The configuration file _must_ be named `config.json` and _must_ be located at the package root. For more information, see [the documentation on MSDN](https://docs.microsoft.com/windows/uwp/porting/package-support-framework#create-a-configuration-file) |
|
|
| Fixup dlls | There is no naming or path requirement for the individual fixup dlls, although they must also be able to find `PsfRuntimeXX.dll` in their dll search paths. It is also suggested that the name end with either `32` or `64` (more information can be found [here](PsfRuntime/readme.md#fixup-loading)) |
|
|
|
|
In general, it's probably safest/easiest to place all Package Support Framework related files and binaries directly under the package root.
|