I have an application setup made using NSIS. The application needs DotNet 2.0 and VC++Redist 2008 to run. Currently i am installing these dependencies separately.I need a way to install DotNet Framework and Vc++Redist 2008 from within my NSIS Scirpt if not present on the system(if present installer should skip the dependencies). Need some piece of script and a step by step procedure to do this. Kindly help.
Thanks,
You should try the search engine before asking a question that was already asked, here and on the NSIS wiki:
how to detect if CV redist is installed (for VC2005)
how to detect VC2008 redist (to get the specific vc2008 class id)
Also:
How to perform a silent install of the Visual C++ 2008 redistributable packages.
Basically you need something like
ExecWait '$TEMP\vcredist_x86_SP1.exe /Q' $0
DetailPrint "-- vcredist_x86_SP1.exe runtime exit code = '$0'"
How to check for an installed version of dotnet
Embedding other installers with exemples for dotnet, and other third party components
Related
I'm getting this error when trying to install my node modules for my node server.
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe".
To fix this, 1) install the .NET Framework 2.0 SDK,
2) install Microsoft Visual Studio 2005 or
3) add the location of the component to the system path if it is installed elsewhere.
[C:\inetpub\wwwroot\PearsonRealty- API\node_modules\bcrypt\build\binding.sln]
I've tried to install the .NET Framework 2.0 SDK, but it just exits out and never runs. I can't install Microsoft Visual Studio since I'm on an AWS EC2 instance and I wouldn't have enough space for it. Any help would be awesome, thanks.
You do need to install either VCExpress (preferrably at least 2015) or you can try the experimental VC Build Tools solution which is a smaller install than full-blown VCExpress. Otherwise, if you have one, you can try building on a local Windows machine first and then uploading the compiled addon directory to AWS.
I am trying to install RXX(VSIX Isntaller) in windows 10 & VS 2012. But it gives error as below
The extension 'Razor(cshtml) pre-processor requires a version of the .NET framework that is not installed.
It is working properly in Win 7 ( .NET Framework 4.5 ). When I tried to install .NET framework 4.5 in Win 10, its no allowing to do the same.
Can anyone suggest anything for this?
Thanks
I expect the VSIX manifest to reference a specific .NET framework version and doesn't specify a range. Since .NET 4.6 replaces 4.5 it may cause these type of issues.
Extract the VSIX using your favorite extraction tool (it's a zip file), edit the manifest file by removing or updating the dependencies specified and zip it back up.
The only way to install the extension was executing the VSIXInstaller.exe as administrator and passing the VSIX file as parameters. To do that, follow this procedure:
Open a CMD window as Administrator
Go to Common, IDE folder of the VS 2015 installation. In my case:
CD C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE
Execute the installer passing the VSIX file as parameter. In my case:
VSIXInstaller.exe c:\AppBuilder.vsix
Finally, the installer will start the installation!
I hope it helps you
Source
In our product we had to disable the "windows installer" service (security-wise).
In Windows 2012 it is not possible to do so with sc.exe, so we had to change the value of the service in the registry
(HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\msiserver ---> start = 4)
Now, as an upgrade process of our product, we need to install
"VC++ 2013 redist"
Is it possible to install this package without using windows installer?
Or, is it possible to start a "disabled" windows installer service without restarting the machine?
Instead of installing the VC++2013 runtime using Windows Installer you can put the needed files in the directory of your executable:
you can directly install redistributable Visual C++ DLLs in the application local folder, which is the folder that contains the executable application file.
(from Redistributing Visual C++ Files)
I have developed a software with visual studio 2012 using the c++ language. I use Installshield 2010 Premier to build my setup project. I am trying to package the visual studio 2012 redistributable into the setup package so that it installs automatically. Is there a way to do this? I cannot find the redistributable in question on the redistributable page while configuring the installer.
Can I add it manually?
Any help would be appreciated.
P.S. Currently, I'm just manually running the redistributable I downloaded from Microsoft page before I run the setup.
Update to read first:
You need to install IS2012 SP1 to get these prereqs. See:
InstallShield 2012 Spring Service Pack 1 is Now Available!
Otherwise the PRQ XML can be found at:
x86 PRQ XML On Saturn
x64 PRQ XML On Saturn
Additional background information:
InstallShield comes with a prerequisite editor that you can use to define your own PRQ files. For a tutorial see:
Using InstallShield 12 to Install .NET Framework 3.0
Note: The PRQ schema hasn't changed in a long time. You can frequently install a trial version of InstallShield on a VM, find a new/updated PRQ and then back port it to your 2010 environment. Add it, build and test and it usually works fine. Also sometimes InstallShield will have expansion packs and addon installers to add these without rereleasing the product.
Use the redistributable merge modules (*.msm files) to integrate them into your setup. If you have Visual Studio installed you can find them at Program Files (x86)\Common Files\Merge Modules .
I created a setup file using InstallShield application and it has some per-requisite conditions for installing the application like .NET framework 4.0.
Now whenever user install this application at that time first we check that Framework is installed on that machine or not. If it is not installed then i installed it silently which is already packaged with MSI. For silent installation i use '/q /s /norestart' parameters.
But the problem is suppose user quite the installation of my application then after installation of the .NET framework is not getting cancel.
What should I do..? Is there any need to change installation parameters..? Or may i need to add parameters for .NET framework application while it is installed in silent mode..?
Please Help me.
Thanks.
Try using these command line parameters:
/passive /norestart
This way the .NET Framework installer will show a progress bar and the user can cancel its install. There is no way for the EXE bootstrapper to automatically cancel a third-party installation.
As a prerequisite, only MSI installations can be cancelled, and then only if the prerequisite is set to capture the MSI's progress. In all other cases, there is no way for InstallShield to know how to cancel a prerequisite's setup, silent or otherwise.