-
November 21st, 2024, 02:37 AM
#1
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.
-
November 21st, 2024, 04:48 AM
#2
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)
-
November 22nd, 2024, 01:44 AM
#3
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!
-
November 22nd, 2024, 03:43 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|