Oops! Looks like this may have been posted in the wrong forum. I thought that I had selected VS forum.
My apologies, I will try and repost.
Supreme Galactic Commander
Producing stand-alone app under VS2017
I am using my PC to produce a stand-alone C++ application to run on my Laptop.
I am using VS2017(32bit) on my PC because I am writing in C++ with SFML2.5.1 under Win10.
According to https://www.sfml-dev.org/download/sfml/2.5.1/ this is the VS version I should use. (The same webpage suggests that VS2017 includes C++15.)
My application runs happily on the PC (uninstalled).
In the SetupProject settings in VS I have put Primary Output from <program>(Active) and Resource Satellite DLL’s from <program> (Active) into File System on Target Machine\Application Folder.
I have done Build Solution and then Build <Setup program> which produces the files setup.exe and setup <program>.msi in *WINDOWS(C)\Users\<name>\source\repos\<program>\<setup program>\Release*.
I put both of these onto a USB stick together with vc_redist.x86.exe and vcredist_x86.exe which I found in *WINDOWS(C)\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Redist\MSVC\14.1627012*.
(Both because I don’t know which is what; and note too that it is 14 not 15.)
When I run setup.exe from the USB on my Laptop (also Win10) I get:
The following components will be installed on your machine. Visual C++ “14” Runtime Libraries (x86)
and then I get the error:
Setup has detected that the file ‘C:\Users\<name>AppData\Local\Temp\VSD8BC0.tmp\vcredist_x86\vc_redist.x86.exe’ has changed since it was initially published….
After cancelling the installation and clicking the Details button I get an error box with the same error message plus:
See the setup log file located at ‘C\Users\<name>AppData\Local\VSD8BC0.tmp\install.log’ for more information.
I cannot find any folder C\Users\<name>\AppData, or anything approaching it, on either machine so I cannot follow up this advice.
Hopefully someone has succeeded in producing a working stand-alone application using VS2017. Can anyone please help me as to how I should proceed.
TIA
Supreme Galactic Commander
PS: I couldn't find any Tags for VS2017, stand-alone, or redist.
Community Center | Not monitored
1 answer
Sort by: Most helpful
-
Supreme Galactic Commander 1 Reputation point
2022-01-08T12:22:04.6+00:00