SOLVED

Use custom appinstaller file in Visual Studio packaging process

%3CLINGO-SUB%20id%3D%22lingo-sub-995615%22%20slang%3D%22en-US%22%3EUse%20custom%20appinstaller%20file%20in%20Visual%20Studio%20packaging%20process%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-995615%22%20slang%3D%22en-US%22%3E%3CP%3EHi!%20Still%20new%20to%20MSIX%20and%20trying%20to%20figure%20out%20the%20workflows.%20I%20have%20a%20WPF%20Bridge%20app%20and%20a%20Windows%20Application%20Packaging%20project%20in%20Visual%20Studio.%20I%20have%20successfully%20used%20Visual%20Studio's%20Publish%20-%26gt%3B%20Create%20App%20Package%20wizard.%20Now%20I'd%20like%20to%20add%20the%20option%20to%20the%20appinstaller%20file%20to%20show%20a%20prompt%20when%20there's%20an%20update%20(%26nbsp%3B%3CUPDATESETTINGS%3E%3CONLAUNCH%20showprompt%3D%22%26quot%3Btrue%26quot%3B%22%20...%3D%22%22%3E%3C%2FONLAUNCH%3E%3C%2FUPDATESETTINGS%3E%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-995615%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Eappinstaller%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EVisual%20Studio%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1000570%22%20slang%3D%22en-US%22%3ERe%3A%20Use%20custom%20appinstaller%20file%20in%20Visual%20Studio%20packaging%20process%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1000570%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F452263%22%20target%3D%22_blank%22%3E%40twastvedt%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20the%20report.%26nbsp%3B%20It%20does%20appear%20that%20the%20tooling%20does%20not%3A%3C%2FP%3E%0A%3CP%3E1)%20provide%20a%20UI%20in%20the%20wizard%20for%20creating%20that%20entry%3C%2FP%3E%0A%3CP%3E2)%20nor%20preserve%20your%20modifcations%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20will%20open%20a%20bug%20on%20Visual%20Studio%20to%20address%20this.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1000834%22%20slang%3D%22en-US%22%3ERe%3A%20Use%20custom%20appinstaller%20file%20in%20Visual%20Studio%20packaging%20process%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1000834%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F452263%22%20target%3D%22_blank%22%3E%40twastvedt%3C%2FA%3E%26nbsp%3B%20As%20an%20alternative%20to%20manually%20editing%2C%20you%20can%20also%20build%20an%20app%20installer%20file%20using%20the%20App%20Installer%20File%20Builder%2C%20which%20is%20available%20through%20the%20MSIX%20Toolkit.%20This%20provides%20a%20handy%20UI%20that%20allows%20you%20to%20customize%20your%20app%20installer%20file%20without%20needing%20to%20edit%20the%20xml%20manually.%20You%20can%20find%20it%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2FMSIX-Toolkit%2Ftree%2Fmaster%2FAppInstallerFileBuilder%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%20on%20our%20GitHub%3C%2FA%3E.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1001025%22%20slang%3D%22en-US%22%3ERe%3A%20Use%20custom%20appinstaller%20file%20in%20Visual%20Studio%20packaging%20process%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1001025%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F452263%22%20target%3D%22_blank%22%3E%40twastvedt%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you're%20using%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%20Visual%20Studio%202019%20%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EYou%20can%20add%20the%20.appinstaller%20file%20to%20your%20App%20Packaging%20Project%20and%20modify%20the%20update%20settings%20from%20there.%3C%2FP%3E%0A%3CP%3EWhen%20you%20eventually%20go%20through%20the%20packaging%20wizard%2C%20the%20update%20settings%20you%20defined%20in%20the%20file%20are%20preserved.%3C%2FP%3E%0A%3CP%3EHave%20a%20look%20at%20this%20post%20for%20more%20details%20-%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FWindows-Dev-AppConsult%2FIntroducing-the-new-App-Installer-template-in-Visual-Studio-2019%2Fba-p%2F739019%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FWindows-Dev-AppConsult%2FIntroducing-the-new-App-Installer-template-in-Visual-Studio-2019%2Fba-p%2F739019%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EVisual%20Studio%202017%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThe%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2FMSIX-Toolkit%2Ftree%2Fmaster%2FAppInstallerFileBuilder%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAppInstaller%20File%20Builder%3C%2FA%3E%20Sharla%26nbsp%3Brecommends%20is%20a%20great%20option%20to%20use%20for%20generating%20the%20.appinstaller%20file%20with%20your%20preferred%20update%20settings.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHope%20this%20helps.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETanaka%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1015168%22%20slang%3D%22en-US%22%3ERe%3A%20Use%20custom%20appinstaller%20file%20in%20Visual%20Studio%20packaging%20process%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1015168%22%20slang%3D%22en-US%22%3EPerfect!%20This%20is%20exactly%20what%20I%20was%20looking%20for.%20Thanks!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1015169%22%20slang%3D%22en-US%22%3ERe%3A%20Use%20custom%20appinstaller%20file%20in%20Visual%20Studio%20packaging%20process%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1015169%22%20slang%3D%22en-US%22%3EI%20just%20applied%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F387730%22%20target%3D%22_blank%22%3E%40Tanaka_MSFT%3C%2FA%3E's%20solution%2C%20below%2C%20and%20it%20does%20preserve%20modifications%2C%20so%20your%20%232%20is%20not%20an%20issue.%20It's%20not%20in%20the%20UI%2C%20but%20it%20works%20for%20me!%3C%2FLINGO-BODY%3E
New Contributor

Hi! Still new to MSIX and trying to figure out the workflows. I have a WPF Bridge app and a Windows Application Packaging project in Visual Studio. I have successfully used Visual Studio's Publish -> Create App Package wizard. Now I'd like to add the option to the appinstaller file to show a prompt when there's an update ( <UpdateSettings><OnLaunch ShowPrompt="true" ... ). Is there a way to have that option included in the packaging process through Visual Studio? The only alternative that I can see is to manually edit the generated appinstaller file in AppPackages every time I publish, which I'd prefer not to have to do.

Thanks!

5 Replies

@twastvedt 

Thanks for the report.  It does appear that the tooling does not:

1) provide a UI in the wizard for creating that entry

2) nor preserve your modifcations

 

I will open a bug on Visual Studio to address this.  

Thanks!

@twastvedt  As an alternative to manually editing, you can also build an app installer file using the App Installer File Builder, which is available through the MSIX Toolkit. This provides a handy UI that allows you to customize your app installer file without needing to edit the xml manually. You can find it here on our GitHub

Best Response confirmed by twastvedt (New Contributor)
Solution

@twastvedt 

 

If you're using:

 

Visual Studio 2019

You can add the .appinstaller file to your App Packaging Project and modify the update settings from there.

When you eventually go through the packaging wizard, the update settings you defined in the file are preserved.

Have a look at this post for more details - https://techcommunity.microsoft.com/t5/Windows-Dev-AppConsult/Introducing-the-new-App-Installer-temp...

 

Visual Studio 2017

The AppInstaller File Builder Sharla recommends is a great option to use for generating the .appinstaller file with your preferred update settings.

 

Hope this helps.

 

Tanaka

 

 

Perfect! This is exactly what I was looking for. Thanks!
I just applied @Tanaka_Jimha's solution, below, and it does preserve modifications, so your #2 is not an issue. It's not in the UI, but it works for me!