How to disable Launch when ready checkbox when installing appx bundle?

227 Views Asked by At

For our sideloaded application we need to disable the user to start the UWP application after install or update.

I went through the package manifest and all of the properties without success in finding a way to disable the Launch when ready checkbox and Launch button.

Any idea is appreciated?

Thanks

2

There are 2 best solutions below

0
On BEST ANSWER

I am afraid it's not possible to modify or customize the installation UI to hide the Launch button or disable the Launch when ready checkbox.

Custom installation dialogs are not supported when using MSIX or APPX.

2
On

For our sideloaded application we need to disable the user to start the UWP application after install or update.

For your requirement, we suggest your add splash screen for the app. And store current app's version to LoclSetting, when you launch the app please compare current version with LocalSetting value in the splash screen, if they are different, you could hidden DismissSplash button that make app will not navigate main page.

public static string GetAppVersion()
{
    Package package = Package.Current;
    PackageId packageId = package.Id;
    PackageVersion version = packageId.Version;

    return string.Format("{0}.{1}.{2}.{3}", version.Major, version.Minor, version.Build, version.Revision);
}