CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2002
    Location
    Australia
    Posts
    201

    Deploying MFC app using 2013 (v120) toolset on VS2022

    Hey All,

    I have recently ported my VS 2013 solution to VS 2022, the projects in my solution (18 of them) are all using the VS 2013 toolset.
    I have created an installer in VS 2022 (Microsoft Visual C Installer Projects 2022 extension) so I can deploy my project to other systems.

    My issue is with the version of vcredist_x86.exe that is being used.

    When I add the Prerequisite to the installer, the only option I have is to use Visual C++ v14 runtime, but, because these are using the 2013 toolset, I need v12 (I am assuming?).

    I can't find a way of getting the installer to use the vcredist for v12.

    Would anyone be able to help me with this please?

    Thanks heaps,

    Steve Q.

  2. #2
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,868

    Re: Deploying MFC app using 2013 (v120) toolset on VS2022

    With VS2022, you can only use C++14 (default), C++17, C++20 or 'The latest' (C++23) runtimes.
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++23 Compiler: Microsoft VS2022 (17.6.5)

  3. #3
    Join Date
    Mar 2002
    Location
    Australia
    Posts
    201

    Re: Deploying MFC app using 2013 (v120) toolset on VS2022

    Thanks for your reply @2kaud.

    Very frustrating! Look like I'll have to use Inno Setup or similar.

    Thanks again!

  4. #4
    Join Date
    Feb 2024
    Posts
    9

    Re: Deploying MFC app using 2013 (v120) toolset on VS2022

    Unfortunately, VS 2022 seems to default to v14 for newer toolsets. Here's a possible workaround: You can manually download the vcredist_x86 for v12 (from Microsoft's site) and include it in your installer as a custom prerequisite.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured