App installs with no errors, but does not fully install

%3CLINGO-SUB%20id%3D%22lingo-sub-1302764%22%20slang%3D%22en-US%22%3EApp%20installs%20with%20no%20errors%2C%20but%20does%20not%20fully%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1302764%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20built%20an%20MSIX%20package%20for%20installing%20DB2%20Connect.%26nbsp%3B%20It%20is%20a%20complex%20install%2C%20that%20requires%20configuration%20file%20execution%2C%20manual%20license%20activation%20and%20a%20registry%20merge%20post%20install%20of%20the%20App%20itself.%26nbsp%3B%20I%20was%20able%20(after%20numerous%20attempts)%20to%20get%20this%20install%20working%20using%20powershell%20execution.%26nbsp%3B%20It%20installs%20cleanly%20on%20the%20Hyper-V%20I%20built%20it%20on%20and%20all%20post%20install%20steps%20clearly%20worked%20before%20I%20close%20the%20installer%20and%20generate%20the%20package.%26nbsp%3B%20The%20package%20installs%20without%20error%20on%20a%20test%20machine%2C%20but%20the%20post-install%20pieces%20are%20not%20there%2C%20when%20checked.%26nbsp%3B%20There%20are%20no%20errors%20in%20the%20log.%26nbsp%3B%20The%20Windows%20App%20Certification%20Kit%20will%20not%20open%20MSIX%20files.%26nbsp%3B%20Any%20help%20or%20suggestions%20are%20appreciated.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1315330%22%20slang%3D%22en-US%22%3ERe%3A%20App%20installs%20with%20no%20errors%2C%20but%20does%20not%20fully%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1315330%22%20slang%3D%22en-US%22%3E%3CP%3EWhere%20are%20these%20'post%20install%20pieces'%3F%20If%20they%20are%20config%20files%20under%20%25APPDATA%25%20for%20example%2C%20they%20get%20captured%20by%20the%20MSIX%20Packaging%20Tool%2C%20but%20the%20MSIX%20runtime%20redirects%20app%20requests%20for%20appdata%20to%20a%20different%20location.%20Use%20the%20PSF%20to%20work%20around%20this%2C%20I%20recommend%20PsfTooling%20or%20try%20to%20capture%20using%20Advanced%20Installer.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1325942%22%20slang%3D%22en-US%22%3ERe%3A%20App%20installs%20with%20no%20errors%2C%20but%20does%20not%20fully%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1325942%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F145709%22%20target%3D%22_blank%22%3E%40Dan%20Gough%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDan%2C%3C%2FP%3E%3CP%3EI%20appreciate%20the%20reply.%26nbsp%3B%20While%20that%20tool%20is%20helpful%20to%20know%20about%2C%20it%20does%20not%20help%20in%20my%20situation.%26nbsp%3B%20I%20have%20reached%20out%20directly%20to%20someone%20I%20know%20on%20the%20Microsoft%20MSIX%20Team.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1326482%22%20slang%3D%22en-US%22%3ERe%3A%20App%20installs%20with%20no%20errors%2C%20but%20does%20not%20fully%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1326482%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F223721%22%20target%3D%22_blank%22%3E%40David%20Hed%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECould%20you%20clarify%20what%20you%20mean%20when%20you%20say%20the%20post%20install%20pieces%20are%20not%20there%3F%20Do%20you%20mean%20they%20are%20not%20in%20the%20package%20at%20all%2C%20or%20do%20you%20mean%20they%20are%20in%20the%20package%20but%20don't%20have%20any%20effect%20when%20you%20install%20it%3F%20You%20can%20check%20this%20by%20opening%20the%20package%20for%20editing%20in%20the%20MSIX%20Packaging%20Tool%20and%20looking%20for%20the%20files%20and%20registry%20keys%20added%20post%20install.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20the%20post%20install%20pieces%20are%20not%20in%20the%20package%2C%20please%20double%20check%20the%20settings%20in%20the%20packaging%20tool%20to%20make%20sure%20they%20are%20not%20in%20the%20exclusions%20list.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20they%20are%20in%20the%20package%20but%20don't%20have%20the%20expected%20effect%20when%20installed%2C%20please%20make%20sure%20they%20are%20in%20a%20location%20that%20is%20merged%26nbsp%3Bwith%20the%20filesystem%20or%20registry%20at%20runtime.%20You%20can%20see%20a%20list%20of%20supported%20locations%20at%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fmsix%2Fdesktop%2Fdesktop-to-uwp-behind-the-scenes%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fmsix%2Fdesktop%2Fdesktop-to-uwp-behind-the-scenes%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20the%20post%20install%20involves%20creating%20file%20type%20associations%20or%20services%20or%20any%20other%20registration%20like%20that%2C%20it%20should%20be%20translated%20to%20an%20entry%20in%20your%20app's%20manifest.%20If%20it%20is%20not%20being%20translated%2C%20please%20let%20us%20know%20what%20information%20is%20missing%20so%20that%20we%20can%20investigate.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1329980%22%20slang%3D%22en-US%22%3ERe%3A%20App%20installs%20with%20no%20errors%2C%20but%20does%20not%20fully%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1329980%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F569046%22%20target%3D%22_blank%22%3E%40Luis_Chacon%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20verified%20that%20all%20pieces%20are%20in%20the%20package.%26nbsp%3B%20The%20part%20that%20is%20not%20coming%20through%20are%20the%20registry%20entries.%26nbsp%3B%20The%20entries%20are%20in%20the%20Virtual%20Registry%20in%20the%20package.%26nbsp%3B%20I%20have%20set%20the%20package%20to%20run%20with%20elevated%20privileges.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1330056%22%20slang%3D%22en-US%22%3ERe%3A%20App%20installs%20with%20no%20errors%2C%20but%20does%20not%20fully%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1330056%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F223721%22%20target%3D%22_blank%22%3E%40David%20Hed%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhere%20in%20the%20registry%20are%20the%20entries%20that%20are%20not%20coming%20through%3F%20Only%20keys%20under%20HKLM%5CSoftware%20are%20read%20from%20the%20package%3B%20keys%20under%20HKCU%20or%20other%20parts%20of%20the%20registry%20are%20not.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1330066%22%20slang%3D%22en-US%22%3ERe%3A%20App%20installs%20with%20no%20errors%2C%20but%20does%20not%20fully%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1330066%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F569046%22%20target%3D%22_blank%22%3E%40Luis_Chacon%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOne%20set%20is%20under%20HKLM%5CSoftware.%26nbsp%3B%20The%20other%20is%20under%20HKCU%5CSoftware.%26nbsp%3B%20Neither%20are%20coming%20through.%26nbsp%3B%20They%20are%20ODBC%20definitions.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1331399%22%20slang%3D%22en-US%22%3ERe%3A%20App%20installs%20with%20no%20errors%2C%20but%20does%20not%20fully%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1331399%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F223721%22%20target%3D%22_blank%22%3E%40David%20Hed%3C%2FA%3E%26nbsp%3BHow%20are%20you%20verifying%20the%20registry%20entries%20are%20not%20being%20seen%20in%20the%20container%3F%20Have%20you%20tried%20to%20open%20regedit%20and%2For%20odbcad32%20inside%20the%20package%20(e.g.%20by%20using%20Hover)%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1332003%22%20slang%3D%22en-US%22%3ERe%3A%20App%20installs%20with%20no%20errors%2C%20but%20does%20not%20fully%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1332003%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F145709%22%20target%3D%22_blank%22%3E%40Dan%20Gough%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20do%20see%20the%20registry%20entries%20in%20the%20package.%26nbsp%3B%20When%20I%20run%20the%20package%20on%20a%20test%20machine%2C%20I%20don't%20see%20the%20entries%20there%20(check%20using%20regedit).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1332160%22%20slang%3D%22en-US%22%3ERe%3A%20App%20installs%20with%20no%20errors%2C%20but%20does%20not%20fully%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1332160%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F569046%22%20target%3D%22_blank%22%3E%40Luis_Chacon%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EHere%20are%20screen%20captures%20of%20the%20Virtual%20Registry%20in%20the%20package%20and%20what%26nbsp%3B%20the%20registry%20on%20the%20machine%20I%20install%20the%20package%20on%20after%20installation.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1333444%22%20slang%3D%22en-US%22%3ERe%3A%20App%20installs%20with%20no%20errors%2C%20but%20does%20not%20fully%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1333444%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F223721%22%20target%3D%22_blank%22%3E%40David%20Hed%3C%2FA%3E%26nbsp%3BHow%20did%20you%20launch%20RegEdit%3F%20(as%20I%20don't%20see%20you%20have%20Powershell%20or%20any%20other%20tools%20open)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20launch%20it%20normally%2C%20it%20won't%20be%20able%20to%20see%20any%20of%20the%20registry%20entries%2C%20that%20is%20expected%20behaviour.%20To%20launch%20a%20local%20exe%20like%20regedit%20inside%20the%20container%2C%20you%20would%20need%20to%20enable%20developer%20mode%20and%20then%20use%20the%26nbsp%3BInvoke-CommandInDesktopPackage%20command%2C%20or%20a%203rd%20party%20tool%20like%20Hover%2C%20MSIX%20Hero%20or%20MSIX%20Commander.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1333553%22%20slang%3D%22en-US%22%3ERe%3A%20App%20installs%20with%20no%20errors%2C%20but%20does%20not%20fully%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1333553%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F223721%22%20target%3D%22_blank%22%3E%40David%20Hed%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20reiterate%20what%20Dan%20Gough%20already%20said%2C%20it%20is%20expected%20that%20you%20do%20not%20see%20the%20registry%20keys%20from%20your%20package%20when%20you%20run%20Regedit%20normally.%20Packaged%20apps%20run%20inside%20a%20container%20and%20you%20will%20only%20be%20able%20to%20see%20the%20keys%20from%20inside%20the%20app's%20container.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20see%20what%20the%20registry%20looks%20like%20for%20your%20app%2C%20you%20would%20need%20to%20launch%20Regedit%20inside%20the%20container.%20You%20can%20do%20%22Invoke-CommandInDesktopPackage%20-PackageFamilyName%20%3CYOUR%20package%3D%22%22%3E%20-Command%20regedit.exe%22%2C%20or%20use%20one%20of%20the%20tools%20Dan%20suggested.%20You%20should%20see%20the%20expected%20keys%20under%20HKLM%5CSoftware%5CODBC.%3C%2FYOUR%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI'm%20not%20familiar%20with%20ODBC%2C%20but%20if%20what%20reads%20the%20registry%20keys%20is%20outside%20of%20your%20package%2C%20it%20will%20not%20be%20able%20to%20see%20the%20keys%20in%20it.%20To%20see%20them%20it%20would%20have%20to%20be%20inside%20the%20container.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1335562%22%20slang%3D%22en-US%22%3ERe%3A%20App%20installs%20with%20no%20errors%2C%20but%20does%20not%20fully%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1335562%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F569046%22%20target%3D%22_blank%22%3E%40Luis_Chacon%3C%2FA%3E%3C%2FP%3E%3CP%3EThe%20whole%20App%20is%20created%20within%20powershell.%26nbsp%3B%20I%20use%20the%20invoke-(cmd)%20for%20regedit%20with%20an%20argument%20pointing%20to%20a%20.reg%20file%20I%20created%20with%20the%20needed%20entries%20(exported%20from%20a%20clean%20machine%20with%20the%20App%20fully%20installed%20manually).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1336223%22%20slang%3D%22en-US%22%3ERe%3A%20App%20installs%20with%20no%20errors%2C%20but%20does%20not%20fully%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1336223%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F223721%22%20target%3D%22_blank%22%3E%40David%20Hed%3C%2FA%3E%20et%20al%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAny%20time%20their%20is%20doubt%20as%20to%20if%20a%20process%20is%20running%20inside%20or%20outside%20of%20the%20container%2C%20looking%20at%20the%20Job%20details%20help.%26nbsp%3B%20The%20container%20is%20implement%20using%20a%20Job%20Object%2C%20and%20when%20a%20process%20like%20ps%20or%20regedit%20jumps%20out%20of%20the%20container%20it%20won't%20have%20one.%26nbsp%3B%20May%20be%20seen%20as%20a%20hidden%20column%20of%20Task%20Manager%20or%20in%20the%20process%20properties%20when%20using%20ProcessExplorer.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1337021%22%20slang%3D%22en-US%22%3ERe%3A%20App%20installs%20with%20no%20errors%2C%20but%20does%20not%20fully%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1337021%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F223721%22%20target%3D%22_blank%22%3E%40David%20Hed%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20assume%20what%20you%20say%20about%20how%20you%20call%20regedit%20is%20about%20the%20Powershell%20script%20you%20use%20for%20installing%20the%20application%3F%3C%2FP%3E%0A%3CP%3EAfter%20you%20create%20the%20MSIX%20package%20and%20install%20it%2C%20how%20are%20you%20launching%20Regedit%20to%20see%20the%20changes%20to%20the%20registry%3F%20The%20keys%20from%20HKLM%5CSoftware%5CODBC%20should%20be%20present%20if%20you%20view%20the%20registry%20from%20inside%20the%20packaged%20app's%20container.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1340717%22%20slang%3D%22en-US%22%3ERe%3A%20App%20installs%20with%20no%20errors%2C%20but%20does%20not%20fully%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1340717%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F569046%22%20target%3D%22_blank%22%3E%40Luis_Chacon%3C%2FA%3E%26nbsp%3B%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F145709%22%20target%3D%22_blank%22%3E%40Dan%20Gough%3C%2FA%3E%26nbsp%3B%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F146612%22%20target%3D%22_blank%22%3E%40TIMOTHY%20MANGAN%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETried%20using%20CommandInDesktopPackage%20from%20powershell.%26nbsp%3B%20Error%20attached.%3C%2FP%3E%3CP%3EInstalled%20MSIX%20Commander%20and%20ran.%26nbsp%3B%20Error%20attached.%3C%2FP%3E%3CP%3EI%20assume%20my%20methodology%20is%20not%20working.%26nbsp%3B%20I%20copy%20a%20folder%20called%20DB2%20to%20the%20Desktop%20of%20my%20Hyper-V%20I%20use%20building%20packages.%26nbsp%3B%20When%20I%20create%20the%20package%2C%20I%20launch%20Powershell%20ISE%20and%20run%20the%26nbsp%3B%20commands%20below.%26nbsp%3B%20Can%20you%20suggest%20a%20better%20way%20to%20accomplish%20what%20I'm%20trying%20to%20do%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EStart-Process%20-FilePath%20%22C%3A%5CUsers%5CDave%5CDesktop%5CDB2%5Csetup.exe%22%20%23%20*Installs%20the%20App%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECopy-Item%20-Path%20%22%5CUsers%5CDave%5CDesktop%5CDB2%5Cdb2consv_zs.lic%22%20-Destination%20%22C%3A%5CProgram%20Files%5Cibm%5CSQLLIB%5CBIN%5Cdb2consv_zs.lic%22%20*Copies%20license%20file%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EStart-Process%20-FilePath%20%22C%3A%5CProgram%20Files%5Cibm%5CSQLLIB%5CBIN%5Cdb2licm.exe%22%20-ArgumentList%20'-a%20db2consv_zs.lic'%20*Activates%20license%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EStart-Process%20-FilePath%20%22C%3A%5CWindows%5Cregedit.exe%22%20-ArgumentList%20%22%2Fs%20C%3A%5CUsers%5CDave%5CDesktop%5CDB2%5Csystemodbc.reg%22%20%23%20*Install%20System%20ODBC%20connections%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EStart-Process%20-FilePath%20%22C%3A%5CWindows%5Cregedit.exe%22%20-ArgumentList%20%22%2Fs%20C%3A%5CUsers%5CDave%5CDesktop%5CDB2%5Cuserodbc.reg%22%20%23%20*Install%20User%20ODBC%20connections%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1340982%22%20slang%3D%22en-US%22%3ERe%3A%20App%20installs%20with%20no%20errors%2C%20but%20does%20not%20fully%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1340982%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F223721%22%20target%3D%22_blank%22%3E%40David%20Hed%3C%2FA%3E%20Perhaps%20do%20the%20following%20to%20help%20us%20understand%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%26nbsp%3BConfirm%20you%20have%20developer%20mode%20enabled%20(due%20to%20publisher%20name%20shown%20in%20attachment)%3C%2FLI%3E%0A%3CLI%3E%26nbsp%3BPost%20the%20AppxManifest.xml%20file%20from%20the%20package.%3C%2FLI%3E%0A%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1341138%22%20slang%3D%22en-US%22%3ERe%3A%20App%20installs%20with%20no%20errors%2C%20but%20does%20not%20fully%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1341138%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F146612%22%20target%3D%22_blank%22%3E%40TIMOTHY%20MANGAN%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMachine%20is%20in%20developer%20mode.%26nbsp%3B%20App%20did%20not%20generate%20a%20Manifest%20file.%26nbsp%3B%20Recreated%20package%2C%20again%20no%20Manifest%20file.%26nbsp%3B%20Have%20attached%20log.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1341767%22%20slang%3D%22en-US%22%3ERe%3A%20App%20installs%20with%20no%20errors%2C%20but%20does%20not%20fully%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1341767%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F223721%22%20target%3D%22_blank%22%3E%40David%20Hed%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20couldn't%20see%20any%20attached%20logs.%20Could%20you%20double%20check%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20manifest%20file%20is%20inside%20the%20package.%20You%20can%20view%20it%20by%20unpacking%20your%20.msix%2C%20e.g.%20by%20using%20the%20Package%20editor%20in%20the%20MSIX%20Packaging%20Tool%2C%20or%20using%20any%20zip%20extraction%20utility.%20If%20you%20unpack%20the%20.msix%2C%20the%20file%20name%20will%20be%20AppxManifest.xml.%3C%2FP%3E%0A%3CP%3EYou%20can%20also%20find%20the%20manifest%20generated%20by%20the%20MSIX%20Packaging%20Tool%20in%20its%20logs%20folder.%20It%20will%20be%20a%20file%20with%20a%20.Manifest%20extension.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20way%20you%20are%20installing%20and%20packaging%20your%20application%20seems%20correct%20to%20me%20overall.%20I%20think%20to%20solve%20your%20problem%20we%20need%20to%20focus%20more%20on%20what%20happens%20after%20you%20install%20the%20.msix%20and%20run%20it.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECould%20you%20try%20Invoke-CommandInDesktopPackage%20or%20MSIX%20Commander%20again%2C%20if%20possible%20in%20a%20different%20machine%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1341958%22%20slang%3D%22en-US%22%3ERe%3A%20App%20installs%20with%20no%20errors%2C%20but%20does%20not%20fully%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1341958%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F569046%22%20target%3D%22_blank%22%3E%40Luis_Chacon%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20tried%26nbsp%3B%3CSPAN%3EInvoke-CommandInDesktopPackage%20on%203%20machines.%26nbsp%3B%20I%20have%20tried%20MSIX%20Commander%20on%202.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EStill%20cannot%20locate%20an%20appmanifest.xml%20file%20when%20unpacking%20the%20package.%26nbsp%3B%20I%20have%20attached%20copies%20of%202%20.manifest%20files%20from%20the%20Log%20folder.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1342177%22%20slang%3D%22en-US%22%3ERe%3A%20App%20installs%20with%20no%20errors%2C%20but%20does%20not%20fully%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1342177%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F223721%22%20target%3D%22_blank%22%3E%40David%20Hed%3C%2FA%3E%20Well%20something%20has%20to%20generate%20an%20AppXManifest.xml%20file%20and%20it%20has%20to%20be%20at%20the%20root%20of%20the%20package%20or%20you%20don't%20have%20a%20MSIX%20file!%26nbsp%3B%20It%20really%20isn't%20clear%20from%20the%20thread%20if%20you%20used%20the%20Microsoft%20MSIX%20Packaging%20Tool%20to%20generate%20the%20package%2C%20or%20if%20you%20are%20building%20your%20own%20using%20MakePri%2FMakeAppX.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20Packaging%20Tool%20will%20generate%20the%20AppXManifest.xml%20file%20for%20you%2C%20so%20if%20it%20did%20not%20then%20the%20tool%20should%20have%20generated%20an%20error%20in%20creating%20the%20package.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1342180%22%20slang%3D%22en-US%22%3ERe%3A%20App%20installs%20with%20no%20errors%2C%20but%20does%20not%20fully%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1342180%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20style%3D%22background-color%3A%20transparent%3B%20box-sizing%3A%20border-box%3B%20color%3A%20%23006dc2%3B%20font-family%3A%20%26amp%3Bquot%3B%20segoeui%26amp%3Bquot%3B%2C%26amp%3Bquot%3Blato%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bhelvetica%20neue%26amp%3Bquot%3B%2Chelvetica%2Carial%2Csans-serif%3B%20font-size%3A%2016px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20underline%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%22%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F223721%22%20target%3D%22_blank%22%3E%40David%20Hed%3C%2FA%3E%20%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAnother%20possibility%20I%20did%20not%20consider.%26nbsp%3B%20Are%20you%20building%20to%20deploy%20to%20older%20OSs%20using%20MSIX%20Core%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1344179%22%20slang%3D%22en-US%22%3ERe%3A%20App%20installs%20with%20no%20errors%2C%20but%20does%20not%20fully%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1344179%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F146612%22%20target%3D%22_blank%22%3E%40TIMOTHY%20MANGAN%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESorry.....I%20had%20been%20digging%20internally%20so%20much%20I%20didn't%20see%20the%20button%20for%20the%20manifest%20file%20right%20in%20front%20of%20my%20face.%26nbsp%3B%20Attached%20is%20a%20docx%20with%20the%20contents.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1344460%22%20slang%3D%22en-US%22%3ERe%3A%20App%20installs%20with%20no%20errors%2C%20but%20does%20not%20fully%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1344460%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F223721%22%20target%3D%22_blank%22%3E%40David%20Hed%3C%2FA%3E%20Looking%20at%20your%20manifest%2C%20I%20see%20three%20things.%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%26nbsp%3BPackage%20includes%20a%20service.%26nbsp%3B%20While%20you%20can%20package%20it%20up%20on%20an%20older%20OS%2C%20the%20runtime%20support%20for%20services%20inside%20the%20package%20exists%20only%20in%20new%20%222004%22%20version%20of%20the%20OS.%26nbsp%3B%20Please%20be%20sure%20that%20you%20are%20not%20testing%20on%201909.%3C%2FLI%3E%0A%3CLI%3E%26nbsp%3BI%20see%20the%20FlexNet%20service%20is%20involved.%26nbsp%3B%20I%20would%20suggest%20directly%20reaching%20out%20to%20Flexera%20as%20to%20how%20to%20handle%20apps%20including%20their%20service.%26nbsp%3B%20While%20their%20experience%20with%20MSIX%20will%20be%20with%20their%20own%20packaging%20tool%2C%20concepts%20on%20how%20to%20handle%20their%20licensing%20service%20should%20be%20portable%20to%20any%20packaging%20tool.%3C%2FLI%3E%0A%3CLI%3EI%20see%20%22Common%20AppData%22%20mentioned.%26nbsp%3B%20Packages%20with%20content%20under%20%22C%3A%5Cprogram%20data%22%20will%20need%20the%20Psf%20FileRedirectionFixup%2C%20much%20like%20%22AppData%22%20and%20%22LocalAppData%22.%3C%2FLI%3E%0A%3C%2FOL%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I have built an MSIX package for installing DB2 Connect.  It is a complex install, that requires configuration file execution, manual license activation and a registry merge post install of the App itself.  I was able (after numerous attempts) to get this install working using powershell execution.  It installs cleanly on the Hyper-V I built it on and all post install steps clearly worked before I close the installer and generate the package.  The package installs without error on a test machine, but the post-install pieces are not there, when checked.  There are no errors in the log.  The Windows App Certification Kit will not open MSIX files.  Any help or suggestions are appreciated.

23 Replies

Where are these 'post install pieces'? If they are config files under %APPDATA% for example, they get captured by the MSIX Packaging Tool, but the MSIX runtime redirects app requests for appdata to a different location. Use the PSF to work around this, I recommend PsfTooling or try to capture using Advanced Installer.

@Dan Gough 

Dan,

I appreciate the reply.  While that tool is helpful to know about, it does not help in my situation.  I have reached out directly to someone I know on the Microsoft MSIX Team.

Hi @David Hed,

 

Could you clarify what you mean when you say the post install pieces are not there? Do you mean they are not in the package at all, or do you mean they are in the package but don't have any effect when you install it? You can check this by opening the package for editing in the MSIX Packaging Tool and looking for the files and registry keys added post install.

 

If the post install pieces are not in the package, please double check the settings in the packaging tool to make sure they are not in the exclusions list.

 

If they are in the package but don't have the expected effect when installed, please make sure they are in a location that is merged with the filesystem or registry at runtime. You can see a list of supported locations at https://docs.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-behind-the-scenes

 

If the post install involves creating file type associations or services or any other registration like that, it should be translated to an entry in your app's manifest. If it is not being translated, please let us know what information is missing so that we can investigate.

@Chacon 

I have verified that all pieces are in the package.  The part that is not coming through are the registry entries.  The entries are in the Virtual Registry in the package.  I have set the package to run with elevated privileges.

 

@David Hed 

Where in the registry are the entries that are not coming through? Only keys under HKLM\Software are read from the package; keys under HKCU or other parts of the registry are not.

@Chacon 

One set is under HKLM\Software.  The other is under HKCU\Software.  Neither are coming through.  They are ODBC definitions.

@David Hed How are you verifying the registry entries are not being seen in the container? Have you tried to open regedit and/or odbcad32 inside the package (e.g. by using Hover)?

@Dan Gough 

I do see the registry entries in the package.  When I run the package on a test machine, I don't see the entries there (check using regedit).

@Luis_Chacon 

Here are screen captures of the Virtual Registry in the package and what  the registry on the machine I install the package on after installation.

@David Hed How did you launch RegEdit? (as I don't see you have Powershell or any other tools open)

 

If you launch it normally, it won't be able to see any of the registry entries, that is expected behaviour. To launch a local exe like regedit inside the container, you would need to enable developer mode and then use the Invoke-CommandInDesktopPackage command, or a 3rd party tool like Hover, MSIX Hero or MSIX Commander.

@David Hed 

To reiterate what Dan Gough already said, it is expected that you do not see the registry keys from your package when you run Regedit normally. Packaged apps run inside a container and you will only be able to see the keys from inside the app's container.

 

To see what the registry looks like for your app, you would need to launch Regedit inside the container. You can do "Invoke-CommandInDesktopPackage -PackageFamilyName <your package's family name> -Command regedit.exe", or use one of the tools Dan suggested. You should see the expected keys under HKLM\Software\ODBC.

 

I'm not familiar with ODBC, but if what reads the registry keys is outside of your package, it will not be able to see the keys in it. To see them it would have to be inside the container.

@Chacon

The whole App is created within powershell.  I use the invoke-(cmd) for regedit with an argument pointing to a .reg file I created with the needed entries (exported from a clean machine with the App fully installed manually).

@David Hed et al,

 

Any time their is doubt as to if a process is running inside or outside of the container, looking at the Job details help.  The container is implement using a Job Object, and when a process like ps or regedit jumps out of the container it won't have one.  May be seen as a hidden column of Task Manager or in the process properties when using ProcessExplorer.

@David Hed 

I assume what you say about how you call regedit is about the Powershell script you use for installing the application?

After you create the MSIX package and install it, how are you launching Regedit to see the changes to the registry? The keys from HKLM\Software\ODBC should be present if you view the registry from inside the packaged app's container. 

@Chacon  @Dan Gough  @TIMOTHY MANGAN 

Tried using CommandInDesktopPackage from powershell.  Error attached.

Installed MSIX Commander and ran.  Error attached.

I assume my methodology is not working.  I copy a folder called DB2 to the Desktop of my Hyper-V I use building packages.  When I create the package, I launch Powershell ISE and run the  commands below.  Can you suggest a better way to accomplish what I'm trying to do?

 

Start-Process -FilePath "C:\Users\Dave\Desktop\DB2\setup.exe" # *Installs the App

 

Copy-Item -Path "\Users\Dave\Desktop\DB2\db2consv_zs.lic" -Destination "C:\Program Files\ibm\SQLLIB\BIN\db2consv_zs.lic" *Copies license file

 

Start-Process -FilePath "C:\Program Files\ibm\SQLLIB\BIN\db2licm.exe" -ArgumentList '-a db2consv_zs.lic' *Activates license

 

Start-Process -FilePath "C:\Windows\regedit.exe" -ArgumentList "/s C:\Users\Dave\Desktop\DB2\systemodbc.reg" # *Install System ODBC connections

 

Start-Process -FilePath "C:\Windows\regedit.exe" -ArgumentList "/s C:\Users\Dave\Desktop\DB2\userodbc.reg" # *Install User ODBC connections

@David Hed Perhaps do the following to help us understand:

  •  Confirm you have developer mode enabled (due to publisher name shown in attachment)
  •  Post the AppxManifest.xml file from the package.

@TIMOTHY MANGAN 

Machine is in developer mode.  App did not generate a Manifest file.  Recreated package, again no Manifest file.  Have attached log.

@David Hed 

I couldn't see any attached logs. Could you double check?

 

The manifest file is inside the package. You can view it by unpacking your .msix, e.g. by using the Package editor in the MSIX Packaging Tool, or using any zip extraction utility. If you unpack the .msix, the file name will be AppxManifest.xml.

You can also find the manifest generated by the MSIX Packaging Tool in its logs folder. It will be a file with a .Manifest extension.

 

The way you are installing and packaging your application seems correct to me overall. I think to solve your problem we need to focus more on what happens after you install the .msix and run it.

 

Could you try Invoke-CommandInDesktopPackage or MSIX Commander again, if possible in a different machine?

@Chacon 

I have tried Invoke-CommandInDesktopPackage on 3 machines.  I have tried MSIX Commander on 2.

Still cannot locate an appmanifest.xml file when unpacking the package.  I have attached copies of 2 .manifest files from the Log folder.