Forum Discussion

AkazaRenn's avatar
AkazaRenn
Copper Contributor
Feb 08, 2023

Best way to include VC Redist in a packaged app?

Hi all, I'm creating an app using an DLL that requires the presence of https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2015-2017-2019-and-2022, does anyone know how I can make the dependency getting installed automatically when the user is installing the app from Microsoft Store? I've tried declaring https://learn.microsoft.com/en-us/troubleshoot/developer/visualstudio/cpp/libraries/c-runtime-packages-desktop-bridge#how-to-install-and-update-desktop-framework-packages as a dependency, but that doesn't work. i assume they are different things?

 

Details of the package can be found here: https://github.com/AkazaRenn/FruitLanguageSwitcher/blob/dev/vcppdep/Package.appxmanifest

 

Thanks in advance!

 

1 Reply

  • I'm not sure, but you could try this since you are full trust and not uwp.

    <PackageDependency Name="Microsoft.VCLibs.140.00" MinVersion="14.0.22929.0" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" />

Resources