Jaa


Package.InstalledPath Property

Definition

Gets the current package's path in the original install folder for the current package.

public:
 property Platform::String ^ InstalledPath { Platform::String ^ get(); };
winrt::hstring InstalledPath();
public string InstalledPath { get; }
var string = package.installedPath;
Public ReadOnly Property InstalledPath As String

Property Value

String

Platform::String

winrt::hstring

The current package's path in the original install folder for the current package.

Windows requirements

Device family
Windows 10, version 2004 (introduced in 10.0.19041.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v10.0)

Remarks

There are several other ways to refer to a file in a package.

  • You can just begin a URI with a "/" to refer to the package root: <img src="/file.png" alt="" />
  • You can use the "ms-appx:///" protocol: <img src="ms-appx://packageFullName/file.png" alt="" />
  • You can also omit the package name to let the system fill in the domain: <img src="ms-appx:///file.png" alt="" />

For more info about how to refer to files in an app's package, see URI schemes and Reference an image or other asset from XAML markup and code.

Applies to

See also