MSIX Dependency Installer

%3CLINGO-SUB%20id%3D%22lingo-sub-1562365%22%20slang%3D%22en-US%22%3EMSIX%20Dependency%20Installer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1562365%22%20slang%3D%22en-US%22%3E%3CP%3EGood%20Morning%20everyone%2C%3C%2FP%3E%3CP%3Ewe're%20currently%20trying%20to%20publish%20our%20MorphCast%20application%20(C%2B%2B%20with%20QT%20framework)%20successfully%20to%20the%20Store.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20already%20have%20it%20working%20on%20the%20store%20by%20capturing%20the%20original%20QT%20installer%2C%20but%20we%20still%20have%20some%20problems%20with%20the%20dependencies%20as%20we%20cannot%20make%20them%20to%20install%2C%20so%20I'm%20asking%20for%20some%20advice.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBasically%2C%20at%20the%20end%20of%20the%20original%20QT%20installer%20we%20launch%20two%20dependencies%20installer%20(both%20exe%20files)%3C%2FP%3E%3CP%3E1)%20VC%20Redistributable%20installer%3C%2FP%3E%3CP%3E2)%20K-LIte%20codec%20pack%20installer%3C%2FP%3E%3CP%3Eso%20that%20all%20the%20necessary%20dll%20and%20codecs%20are%20available%20for%20the%20user.%3C%2FP%3E%3CP%3EBoth%20installers%20are%20now%20packaged%20into%20the%20msix%20as%20exe%20files%2C%20ready%20to%20be%20launched%2C%20in%20the%20main%20application%20folder%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%2C%20by%20converting%20the%20QT%20Installer%20to%20the%20MSIX%20we%20captured%20the%20whole%20installation%2C%20but%20the%20codecs%20and%20the%20vc%20redistributable%20are%20not%20installed%2C%20so%20I'd%20like%20to%20know%20if%20there's%20a%20way%20to%20launch%20both%20installers%20as%20a%20one-time%20action%20when%20installing%20our%20msix.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20we%20tried%3A%3C%2FP%3E%3CP%3E1)%20creating%20a%20launcher.exe%20that%20launches%20both%20installers%2C%20but%20the%20codec%20pack%20installer%20won't%20launch%20due%20to%20%22security%22%20privileges%20missing%3C%2FP%3E%3CP%3E2)%20Using%20a%20powershell%20script%20using%20PSF%2C%20but%20it%20will%20need%20the%20users%20to%20elevate%20the%20shell%20privileges%2C%20and%20that%2C%20if%20I%20understand%20correctly%2C%20is%20something%20that%20is%20unfeasible%20to%20ask%20for%20to%20each%20end-user%20if%20cannot%20be%20automated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETL%3ADR%20Basically%20we%20need%20to%20one-shot%20launch%20these%20two%20installers%20to%20install%20the%20missing%20dll%20and%20codecs.%20How%20ca%20I%20do%20that%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20everyone%20answers%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-1564167%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20Dependency%20Installer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1564167%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F747745%22%20target%3D%22_blank%22%3E%40MorphCast%3C%2FA%3E%26nbsp%3B%20I%20think%20that%20you%20should%20look%20at%20this%20differently.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20VC%20Runtime%20and%20Codec%20should%20be%20installed%20in%20your%20capture.%26nbsp%3B%20There%20should%20be%20no%20need%20for%20these%20to%20be%20installed%20external%20to%20the%20container.%26nbsp%3B%20I%20know%20that%20the%20VC%20Runtime%20is%20OK%20for%20sure.%26nbsp%3B%20I%20assume%20the%20codec%20is%20nothing%20more%20than%20a%20dll%20that%20provides%20audio%2Fvisual%20conversions%20and%20would%20be%20called%20by%20the%20primary%20application.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETim%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1564968%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20Dependency%20Installer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1564968%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F747745%22%20target%3D%22_blank%22%3E%40MorphCast%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20the%20VC%20redist%2C%20if%20you're%20using%20version%2011%2C12%2C%20or%2014%20you%20can%20simply%20add%20it%20as%20a%20dependency%20to%20your%20package%20and%20the%20Store%20will%20install%20it%20automatically%2C%20if%20not%20already%20present%20on%20the%20machine.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20are%20more%20details%20(search%20for%20%22%3CSPAN%3EPackageDependency%3C%2FSPAN%3E%22)%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fmsix%2Fdesktop%2Fdesktop-to-uwp-prepare%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E-%26nbsp%3BPrepare%20to%20package%20a%20desktop%20application%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Good Morning everyone,

we're currently trying to publish our MorphCast application (C++ with QT framework) successfully to the Store.

 

We already have it working on the store by capturing the original QT installer, but we still have some problems with the dependencies as we cannot make them to install, so I'm asking for some advice.

 

Basically, at the end of the original QT installer we launch two dependencies installer (both exe files)

1) VC Redistributable installer

2) K-LIte codec pack installer

so that all the necessary dll and codecs are available for the user.

Both installers are now packaged into the msix as exe files, ready to be launched, in the main application folder

 

Now, by converting the QT Installer to the MSIX we captured the whole installation, but the codecs and the vc redistributable are not installed, so I'd like to know if there's a way to launch both installers as a one-time action when installing our msix.

 

What we tried:

1) creating a launcher.exe that launches both installers, but the codec pack installer won't launch due to "security" privileges missing

2) Using a powershell script using PSF, but it will need the users to elevate the shell privileges, and that, if I understand correctly, is something that is unfeasible to ask for to each end-user if cannot be automated.

 

TL:DR Basically we need to one-shot launch these two installers to install the missing dll and codecs. How ca I do that?

 

Thanks for everyone answers

 

 

2 Replies

@MorphCast  I think that you should look at this differently.

 

The VC Runtime and Codec should be installed in your capture.  There should be no need for these to be installed external to the container.  I know that the VC Runtime is OK for sure.  I assume the codec is nothing more than a dll that provides audio/visual conversions and would be called by the primary application.

 

Regards,

 

Tim 

Hi @MorphCast 

 

For the VC redist, if you're using version 11,12, or 14 you can simply add it as a dependency to your package and the Store will install it automatically, if not already present on the machine.

 

Here are more details (search for "PackageDependency"):

- Prepare to package a desktop application