Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Loose file registration lets you validate and share your app during development without going through the full packaging process. Register a folder containing your app's content, and Windows treats it as an installed package.
Warning
Loose file layout registration is for development and testing only. Do not use this approach for production distribution. Always perform final validation on a packaged app that is signed with a trusted certificate.
What is a loose file layout?
A loose file layout places your app's content in a folder instead of building an MSIX package. The package contents are "loosely" available in a folder and not packaged.
Advantages
- Quick validation — because the app files are already unpacked, you can register the layout and launch the app immediately. Use the app as designed without waiting for a packaging step.
- Easy network distribution — if the loose files are on a network share, you can send the share path to other users who have network access. They register the layout and run the app, which lets multiple people validate the app concurrently.
- Collaboration — loose file registration lets developers and designers work on visual assets while the app is registered. Users see updated static assets when they relaunch the app. To update code or dynamically created content, you must recompile the app.
Prerequisites
- Your devices must run Windows 10 version 1809 (build 17763) or later.
- Enable developer mode and device discovery on all devices.
Important
Loose file registration is available only on devices that support the SMB (Network Share) protocol.
Register with WinAppDeployCmd
If you use SDK tools corresponding to Windows 10 version 1809 or later, use the WinAppDeployCmd command in a command prompt:
WinAppDeployCmd.exe registerfiles -remotedeploydir <NetworkPath> -ip <IPAddress> -pin <PIN>
- NetworkPath — the path to the app's loose files.
- IPAddress — the IP address of the target machine.
- PIN — a PIN if required for authentication. See Device Discovery to learn how to get a PIN.
Register with Windows Device Portal
- Connect to Device Portal by following the steps in the Windows Device Portal overview.
- In the Apps Manager tab, select Register from Network Share.
- Enter the network share path to the loose file layout.
- If the host device doesn't have access to the network share, enter the required credentials when prompted.
- After registration is complete, launch the app.
You can also register optional packages by selecting the I want to specify optional packages checkbox and providing the network share paths.
Register with PowerShell
Windows PowerShell enables you to register loose file layouts on the local device. To register a layout on a remote device, use one of the other methods.
Add-AppxPackage -Register <path-to-manifest-file>
Troubleshooting
| Issue | Solution |
|---|---|
| Mapped network drives | Mapped drives are not supported for loose file registration. Use the full network share path instead (for example, \\server\share\myapp). |
| Registration failure | Verify that the device has access to the file layout. If the layout is on a network share, verify that the device has the necessary permissions. |
| Visual asset changes not loading | The app loads visual assets at launch time. If you modify assets after launching, relaunch the app to see the changes. |
Related content
Windows developer