SOLVED

Add custom installation in specified directory along with registry entry

%3CLINGO-SUB%20id%3D%22lingo-sub-1572246%22%20slang%3D%22en-US%22%3EAdd%20custom%20installation%20in%20specified%20directory%20along%20with%20registry%20entry%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1572246%22%20slang%3D%22en-US%22%3E%3CP%3EHI%2C%3C%2FP%3E%3CP%3EI%20want%20to%20register%20some%20COM%20components%20on%20the%20machine%20along%20with%20some%20other%20DLL%2C%20And%20want%20to%20place%20those%20item%20in%20other%20Folder%20like%26nbsp%3B%20c%3A%5C%20Program%20Files%5CFolderName.%26nbsp%3B%3C%2FP%3E%3CP%3EThose%20extra%20DLL%20will%20be%20placed%20in%20this%20folder.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20i%20uninstall%20the%20application%20%2C%20the%20other%20folder%20and%20registry%20entry%20also%20removed%20from%20the%20system.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20we%20achieve%26nbsp%3B%20this%20using%20MSIX%2C%20appx%20deployment%20process%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1573844%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20custom%20installation%20in%20specified%20directory%20along%20with%20registry%20entry%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1573844%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F751038%22%20target%3D%22_blank%22%3E%40AtulD%3C%2FA%3E%20I%20believe%20so.%26nbsp%3B%20There%20is%20a%20potential%20issue%20depending%20on%20how%20applications%20are%20supposed%20to%20find%20the%20dlls%20placed%20in%20an%20alternative%20folder%20that%20might%20not%20work%20out%20of%20the%20box%2C%20but%20can%20be%20easily%20addressed.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1574403%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20custom%20installation%20in%20specified%20directory%20along%20with%20registry%20entry%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1574403%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%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%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20are%20correct%20but%20some%20other%20applications%20are%20dependent%20on%20some%20of%20the%20DLL%20and%20registry%20entry%20and%20i%20want%20to%20deploy%20when%20we%20installing%20the%20app%20and%20and%20i%20want%20to%20remove%20those%20registry%20entry%20and%20other%20folder%20when%20uninstalling%20the%20application%20just%20like%20MSI%20work.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20can%20be%20achieved%20using%20InstallShield%20suit%20but%20we%20can%20not%20distribute%20them%20with%20web%20browser.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20looking%20the%20solution%20which%20can%20install%20both%20from%20the%20web%20browser.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYour%20inputs%20most%20welcome.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1574575%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20custom%20installation%20in%20specified%20directory%20along%20with%20registry%20entry%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1574575%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F751038%22%20target%3D%22_blank%22%3E%40AtulD%3C%2FA%3E%26nbsp%3BOK%20then!%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EDeploying%20dll%20components%20for%20use%20by%20non-containerized%20applications%20outside%20the%20container%20they%20are%20delivered%20in%20is%20not%20supported%20at%20this%20time.%3C%2FLI%3E%0A%3CLI%3EDepending%20on%20the%20type%20of%20COM%20registration%2C%20those%20might%20be%20available%20external%20to%20the%20container%2C%20and%20depending%20on%20their%20internal%20design%20(i.e.%20does%20the%20software%20inside%20the%20COM%20require%20access%20to%20package%20registry%20once%20activated)%20might%20work.%3C%2FLI%3E%0A%3CLI%3EThere%20is%20the%20possibility%20of%20creating%20a%20dependency%20(or%20maybe%20framework%2C%20I'm%20not%20sure%20which%20term%20applies%20here)%20package%20with%20shared%20components.%20If%20you%20look%20on%20your%20system%20you'll%20see%20these%20for%20things%20like%20.net%20packages%20and%20vcruntime%20packages.%20Each%20package%20that%20requires%20this%20would%20need%20to%20list%20it%20as%20a%20dependency%20in%20the%20manifest.%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3EMicrosoft%20has%20discussed%20the%20possibility%20in%20the%20future%20of%20defining%20a%20group%20of%20packages%20that%20should%20run%20together%20in%20a%20single%20container%2C%20but%20not%20provided%20details%20or%20dates%20(to%20my%20knowledge).%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3ENewer%20is%20better%20when%20it%20comes%20to%20runtime%2C%20so%20stay%20working%20with%202004.%20You'll%20eventually%20need%20to%20test%20on%20back-rev%20OS%20due%20to%20the%20COM%2C%20but%20I'd%20start%20here.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1578228%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20custom%20installation%20in%20specified%20directory%20along%20with%20registry%20entry%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1578228%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%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20You%20for%20time%20and%20help%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

HI,

I want to register some COM components on the machine along with some other DLL, And want to place those item in other Folder like  c:\ Program Files\FolderName. 

Those extra DLL will be placed in this folder.

 

If i uninstall the application , the other folder and registry entry also removed from the system.

 

Can we achieve  this using MSIX, appx deployment process?

 

4 Replies

@AtulD I believe so.  There is a potential issue depending on how applications are supposed to find the dlls placed in an alternative folder that might not work out of the box, but can be easily addressed.

Thank you @TIMOTHY MANGAN 

 

You are correct but some other applications are dependent on some of the DLL and registry entry and i want to deploy when we installing the app and and i want to remove those registry entry and other folder when uninstalling the application just like MSI work.

 

This can be achieved using InstallShield suit but we can not distribute them with web browser. 

I am looking the solution which can install both from the web browser.

 

Your inputs most welcome.

 

 

best response confirmed by AtulD (New Contributor)
Solution

@AtulD OK then!

  • Deploying dll components for use by non-containerized applications outside the container they are delivered in is not supported at this time.
  • Depending on the type of COM registration, those might be available external to the container, and depending on their internal design (i.e. does the software inside the COM require access to package registry once activated) might work.
  • There is the possibility of creating a dependency (or maybe framework, I'm not sure which term applies here) package with shared components. If you look on your system you'll see these for things like .net packages and vcruntime packages. Each package that requires this would need to list it as a dependency in the manifest. 
  • Microsoft has discussed the possibility in the future of defining a group of packages that should run together in a single container, but not provided details or dates (to my knowledge).

Newer is better when it comes to runtime, so stay working with 2004. You'll eventually need to test on back-rev OS due to the COM, but I'd start here.