MSIX Modification package-file customization with Package Support Framework sample

%3CLINGO-SUB%20id%3D%22lingo-sub-838620%22%20slang%3D%22en-US%22%3EMSIX%20Modification%20package-file%20customization%20with%20Package%20Support%20Framework%20sample%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-838620%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20there%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20had%20created%20MSIX%20package%20with%20package%20support%20framework%20file-redirection%20fixup%20applied%20which%20has%20the%20scenario%20of%20looking%20for%20config.txt%20file%20in%20the%20current%20directory.%3C%2FP%3E%3CUL%3E%3CLI%3ECreated%20a%20MSIX%20package%20keeping%20sample%20application%20in%20VFS%20directory%3C%2FLI%3E%3CLI%3ESample%20application%20will%20look%20for%20config.txt%20in%20current%20directory%3C%2FLI%3E%3CLI%3EDidn't%20add%20the%20specific%20file%20in%20main%20package%3C%2FLI%3E%3CLI%3EApplied%20file-redirection%20fixup%20to%20the%20specific%20sample%3C%2FLI%3E%3CLI%3EInstalled%20and%20ran%20main%20package%20which%20will%20fail%20to%20find%20the%20file%20in%20the%20current%20directory%3C%2FLI%3E%3CLI%3ECreated%20a%20modification%20package%20by%20adding%20the%20specific%20file%20to%20the%20current%20directory%20which%20is%20in%20VFS%3C%2FLI%3E%3CLI%3EInstalled%20modification%20package%20with%20which%20it%20is%20able%20to%20find%20missed%20out%20file%3C%2FLI%3E%3CLI%3EMy%20assumption%20was%20on%20uninstalling%20the%20modification%20package%20will%20retain%20its%20old%20behavior%20back%3C%2FLI%3E%3CLI%3EBut%20it%20wasn't%2Csample%20was%20still%20able%20to%20find%20the%20file%20which%20doesn't%20exist.By%20this%2Cthe%20behavior%20of%20modification%20package%20seems%20little%20weird%2Cis%20that%20something%20with%20PSF%20modification%20package%20won't%20work%20properly%3F%3C%2FLI%3E%3C%2FUL%3E%3CP%3ECan%20anyone%20please%20explain%20me%20why%20this%20is%20happening%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EJenifer%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-840443%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20Modification%20package-file%20customization%20with%20Package%20Support%20Framework%20sample%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-840443%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%2F153639%22%20target%3D%22_blank%22%3E%40Jenifer%20Rajendren%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20just%20re-tested%20the%20samples%20I%20had%20for%20my%20%3CA%20href%3D%22https%3A%2F%2Fyoutu.be%2FKBvllLlXkIk%3Ft%3D329%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EIgnite%202018%20demo%20on%20modification%20packages%3C%2FA%3Eand%20I%20don't%20reproduce%20your%20behavior.%20When%20I%20uninstall%20the%20modification%20package%20the%20main%20does%20not%20find%20my%20config%20file%20anymore.%20What%20Win%2010%20version%20are%20you%20using%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.dropbox.com%2Fs%2Fr7rb15nghtlny96%2Fmodification_packs_samples.zip%3Fdl%3D0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EHere%20you%20can%20find%20my%20sample%20packages%3C%2FA%3Eif%20you%20want%20to%20test%20them.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%2C%20I%20assume%20you%20correctly%20uninstall%20the%20modification%20package%2C%20from%20Settings%20app%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F130424iC6279298356267DE%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_0.png%22%20title%3D%22clipboard_image_0.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-840531%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20Modification%20package-file%20customization%20with%20Package%20Support%20Framework%20sample%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-840531%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%2F147865%22%20target%3D%22_blank%22%3E%40Bogdan%20Mitrache%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20response.I%20too%20have%20a%20sample%20where%20file%20customization%20works.The%20non-working%20scenario%20is%26nbsp%3Bspecific%20with%20PSF%20applied%20sample%20application%3A%3C%2FP%3E%3CP%3ESample%20can%20be%20found%20at%3A%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2FMSIX-PackageSupportFramework%2Ftree%2Fmaster%2Fsamples%2FPSFSample%2FPSFSampleApp%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fmicrosoft%2FMSIX-PackageSupportFramework%2Ftree%2Fmaster%2Fsamples%2FPSFSample%2FPSFSampleApp%3C%2FA%3E%3C%2FP%3E%3CP%3EI%20had%20applied%20file%20redirection%20fixup%20in%20which%20intentionally%20i%20dint%20add%20%22Config.txt%22.On%20applying%20modification%20package%20it%20is%20able%20to%20find%20Config.txt%20if%20i%20remove%20modification%20package(Yes%2Ci%20had%20uninstalled%20it%20from%20App%20add-ons%20%26amp%3B%20downloadable%20content%20only.That%20is%20the%20primary%20way%20to%20uninstall%20i%20guess)%20the%20sample%20application%20was%20still%20able%20to%20find%20Config.txt%20though%20it%20isn't%20there%20in%20the%20current%20directory%20mentioned%20in%20config.json.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EJenifer%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-841230%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20Modification%20package-file%20customization%20with%20Package%20Support%20Framework%20sample%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-841230%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%2F153639%22%20target%3D%22_blank%22%3E%40Jenifer%20Rajendren%3C%2FA%3EThank%20you%20for%20posting%20your%20question.%20Which%20file-direction%20fix%20up%20did%20you%20use%3F%20Did%20you%20ensure%20that%20the%20proper%20.dll%20get%20applied%3F%20Also%2C%20did%20you%20try%20to%20create%20a%20modification%20package%20because%20the%20package%20support%20framework%20did%20not%20work%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello there,

 

I had created MSIX package with package support framework file-redirection fixup applied which has the scenario of looking for config.txt file in the current directory.

  • Created a MSIX package keeping sample application in VFS directory
  • Sample application will look for config.txt in current directory
  • Didn't add the specific file in main package
  • Applied file-redirection fixup to the specific sample
  • Installed and ran main package which will fail to find the file in the current directory
  • Created a modification package by adding the specific file to the current directory which is in VFS
  • Installed modification package with which it is able to find missed out file
  • My assumption was on uninstalling the modification package will retain its old behavior back
  • But it wasn't,sample was still able to find the file which doesn't exist.By this,the behavior of modification package seems little weird,is that something with PSF modification package won't work properly?

Can anyone please explain me why this is happening?

 

Thanks,

Jenifer

 

3 Replies

Hi @Jenifer Rajendren 

 

I just re-tested the samples I had for my Ignite 2018 demo on modification packages and I don't reproduce your behavior. When I uninstall the modification package the main does not find my config file anymore. What Win 10 version are you using?

 

Here you can find my sample packages if you want to test them.

 

Also, I assume you correctly uninstall the modification package, from Settings app? And restarted your app from start menu?

 

clipboard_image_0.png

Hi @Bogdan Mitrache ,

 

Thanks for the response.I too have a sample where file customization works.The non-working scenario is specific with PSF applied sample application:

Sample can be found at:https://github.com/microsoft/MSIX-PackageSupportFramework/tree/master/samples/PSFSample/PSFSampleApp

I had applied file redirection fixup in which intentionally i dint add "Config.txt".On applying modification package it is able to find Config.txt if i remove modification package(Yes,i had uninstalled it from App add-ons & downloadable content only.That is the primary way to uninstall i guess) the sample application was still able to find Config.txt though it isn't there in the current directory mentioned in config.json.

 

Thanks,

Jenifer

Hi @Jenifer Rajendren Thank you for posting your question. Which file-direction fix up did you use? Did you ensure that the proper .dll get applied? Also, did you try to create a modification package because the package support framework did not work?