InstallShield does not install VC++ redistributable on install - c++

Using VS2012 to build the setup file and have VC++ redis 2012 as a requirement and when I go to run the installer, it does not prompt the user to install the package. I double checked that I have it selected in the redistributables section. I also made sure it wasn't already installed on the machine attempting to install it.
Not sure why Installshield isn't prompting for the install.

Open the InstallShield IDE. Under 'Application Data' click on 'Redistributables'. Find the desired redistributable in the window on the right and right-click on it. If that one allows you to do so, select 'Edit Prerequisite' and look through the tabs. Verify that 'Conditions' and 'Behavior' are correct.

For checked what is the problem that no let you install you prerequisite, try this:
When you generate you installer be sure that in the installer folder there is a folder with the installer of the prerequisite.
Execute individually the prerequisite installer (generated by installshield) in the target machine.
In my case I tried to install .Net Framework 4.5 in windows XP, when I executed this installer in the target machine this showed me an error "this frameowrk is not compatible with this system"

Related

Visual Studio 2022 intellisense cannot find Openssl (ARM64 - Makefile project - SSH - Ubuntu)

(Only to be clear, this question is regarding Intellisense only)
Here is my developing scenario:
Visual Studio 2022 (Enterprise edition, 64 bits)
C++ project (Run by SSH to a Raspberry Pi 4 - ARM64 using Ubuntu 20.04 server)
Project is a Makefile project (not CMake).
The code compiles and runs in the Raspberry Pi (via SSH), but the problem is with Visual Studio Intellisense that cannot find the OpenSSL files.
I ran the tutorial here (https://kontext.tech/article/594/microsoft-vcpkg-c-library-manager) and installed vcpkg
vcpkg install openssl:arm64-windows
and ran the instruction to integrate to Visual Studio
vcpkg integrate install
and everything seems to be installed correctly,
PS C:\vcpkg> .\vcpkg.exe integrate install
Applied user-wide integration for this vcpkg root.
CMake projects should use: "-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake"All MSBuild C++ projects can now #include any installed libraries. Linking will be handled automatically. Installing new libraries will make them instantly available.
but as this is a Makefile project (and not CMake), it still seems to have the problem with Intellisense.
Could you please help me to determine how to make Visual Studio to finally find the OpenSSL files?
Thank you.
I made progress in solving the problem in an unexpected way. As the project built successfully in the remote machine, I ignored the Intellisense problems for a while. But one day I connected to another machine and there were no problems! Intellisense found all the files.
The machine with problems had Ubuntu 20.04 and the other one Raspbian OS. The difference was that I installed OpenSSL using apt in Ubuntu,
sudo apt -y install libssl-dev
but I compiled the OpenSSL source code in the Raspbian OS. (https://www.linuxtuto.net/blog/how-to-install-OpenSSL-3-on-Ubuntu-20-04) and (https://nextgentips.com/2022/03/23/how-to-install-openssl-3-on-ubuntu-20-04/)
So I knew the problem was due to the headers.
I compiled OpenSSL from source in Ubuntu, and it didn't work. But I had a third machine with Ubuntu 22.04 and did the same, and it worked. So I knew the exact problem: Visual Studio didn't bring the headers after an initial SSH connection was made.
Solution:
[IMPORTANT] Download OpenSSL source code using the tutorials I linked above, and compile it in your Linux machine (mine was an upgrade from 1.1.1f to 3.0.5).
Go to C:\Users[Your user]\AppData\Local\Microsoft\Linux
Depending on your Visual Studio version (mine is 2022), you will have a folder structure. Search around and you will find an XML file with your connection information (in my case, it was in User Data\3.0\store.xml)
Open the XML. You will have a list of all the SSH connections that version of Visual Studio has made to remote machines.
Check in the HeaderCache\1.0 folder. You will find folders with random numbers, and they match the connections from the XML. Identify the problematic connection.
Inside Visual Studio, delete that SSH connection. (It should also disappear from the XML, but it DOES NOT automatically delete the folder, so this is why the problem happened in the first place).
Delete the associated folder inside the HeaderCache\1.0 you found in step 4.
Recreate the SSH connection inside Visual Studio. It should appear in the XML and a new folder must be created inside HeaderCache\1.0.
Check inside the new folder. Go to the subfolder usr\include. There should be an OpenSSL folder.
Change the configuration of your solution in Visual Studio to use the new SSH connection.
Problem solved!
Edit: Sometimes you must delete your Visual Studio Configuration (inside the Configuration manager). After you delete the problematic configuration, in some cases Visual Studio still shows it inside the project properties. If that is your case, you must:
Open the Package Manager Console (Tools -> Nuget Package Manager -> Package Manager Console)
Run the command:
Get-Project -All | Foreach { $_.ConfigurationMAnager.DeleteConfigurationRow("Name of your configuration with quotes") }
And that's it!

Using visual c++ tools for windows desktop with installer

I used these tools to allow me to build a C++ project that was part of an expert system tutorial (CLIPSCLRWrapper), and that worked fine. My question is how do I include the dependencies in an installation of my final executable so that it can be installed on a clean system, without Visual Studio?
I'm using the above wrapper DLL in a C# Windows forms application, then making an installer for the resulting executable, but it seems to be missing some dependencies when I install on another PC without Visual Studio. How can I discover which dependencies are missing that are provided by the tools for windows desktop, and how do I add them to my installer?
Dependencies can be added to the installer, by adding them to "Application Folder". First, open "File System" of the installer, then you will find sub folders one of them called "Application Folder". Inside the "Application Folder", you could put all the application dependencies.
Good luck

Add Visual C++ Redistributable for Visual Studio 2015 to InstallShield

Issue
I have just set up my InstallSheild which works fine and i am just wondering how i can add the (x86) + (x64) version of this download : https://www.microsoft.com/en-gb/download/details.aspx?id=48145 to my InstallShield so the user has to install it.
I have tried to get this working on One-Click but this also does not work.
Has anyone tried adding this package to there InstallShield?
If its simple MSI project then you go into Application data/Redistributables search for desired package to add, probably needs to be downloaded first. When you check it it should be included and installed before feature selection, you can change this option in this view. (i dont have personal experience with this)
But i have suite project which includes c++ redist 2015. You can add it in Packages view, right click it and add new executable. You can map it from the installshield folder (where it was downloaded from the step i wrote above) or from the place you have downloaded it before.
You just need to add a prerequisite for Visual C++ Redistributable. In that prerequisite, you just need to mention a path of exe (files to include). You can set this path to the download location where you have already downloaded that exe.
So it will get added to your installer. And then while installation it'll get installed on target system on one click.

Universal Windows App Template Not installed

First of all let me make you clear you that, I am using Visual Studio Community 2015 update 1 and I am running on Windows 10 Pro.
As with update version of Visual studio I find inside Visual c#\Windows\Universal Tab that to install Universal Windows Tools.Also,I let you know that all other templates inside Visual C# Tab are installed and I can use them.
I have tried lot's of solutions to install them,still find the same.I have tried to modify VS from the installer package found under Program and Features in Control Panel.And also I have put for direct installation from that template Tab and selected all the necessary Tools from the Installation window.
What can I do next??
Open control panel->programs & features->installed Programs, select Visual Studio 2015 and click on modify. Now select the Universal Windows App Development Tools and click ok to install them. Now you should see the entries in Visual Studio.
A fresh install is required. So, if you are planning to Modify the setup, this will not work as it will not show the check box for Windows 10 SDK.
There are two ways:
1. Uninstall and reinstall the latest build -> Visual Studio Community 2015 - Update 3 as of now.
Install the preview edition, this requires 28GB, but you can customize your installation.
Install the Windows 10 sdk separately. Just go on http://dev.windows.com
I got the solution guys!!!
If you had upgraded your VS to VS update 1 or to any newer versions and i you get this error,then you need to try to uninstall VS completely and reinstall it and put tick on checkbox for 'Tools for Windows App and Windows 10 SDK' from the installation window.
Then your Project window gets the Universal Windows template installed...

Visual Studio 2013 Ultimate - Missing C++ Projects Templates

I installed fresh install of my Microsoft Visual Studio Ultimate 2013 and launched it. I then went to FILE -> New -> Project and wanted to create new C++ project. However, there is no option for creating such project now (I know it was there before, on my second laptop). I restarted installer and pressed repair, but nothing changed. I also tried to uninstall it and then install it back again. I also have MSVC2015 RC and I can create C++ Projects there. During an installation I was asked if I want to install certain features as well and I did install everything that was offered.
This is how my New Project looks like.
What is going on in there? Did I forget to install something?
I had the same issue with VS2012, some time ago. I've solved installing again. Not sure if VS2013 makes you configure if you want to install "C++ stuff" during the installation process.