How to check for .NET 4 from InstallShield 2012? - installshield-2012

I'm usually in WIX-land instead of InstallShield.
What's the equivalent of NETFRAMEWORK40FULL in InstallShield? Is there a better way to check for .NET 4.0 from InstallShield 2012?
Please note: I am not interested in installing it from the installer. Just a simple test to inform the user they need to install .NET 4.0 before continuing.
EDIT:
I could use a bootstrapper, but would rather not if there's a native InstallShield way of doing this.

I haven't done much on InstallShield. I hope this may address you query.

Related

Wix learner: Confused between NETFRAMEWORK40FULL and DIRCA_CheckFX

Both, I believe, check for .Net Framework installation. While writing wix xml do we need to have both, if yes why
You do not need both, NETFRAMEWORK40FULL will suffice.
DIRCA_CheckFX is the custom action used in Visual Studio setup projects to detect the NET Framework. If you have in fact migrated from VS to WiX you no longer need it.

VS2012 and Wix 3.6 - Installing .Net 4.5 with my application

I am very new to the installer world.
I have successfully made an .msi for my application and it is building with short-cuts and also uninstalls correctly.
My next goal is to package .Net 4.5 with the installer and have it be installed prior to the installation of my application.
I also have a third party application that needs to be installed. It is packaged as an msi.
From what I can gather I need to develop a Bootstraper solution to have these applications install in sequence.
Can anyone provide a guide as to how to implement an installer in such a way? My searches have come up with a bunch of partial implementations with an assumption of the design of a Wix Bootstrapper Project in Visual Studio.
I hope this helps someone. It took me 5 hours to figure it out. Maybe, my bad, but did not find anything about it in the docs or blogs.
So my scenario is: VS 2012, WIX 3.6 with Burn bootsrapper, create a Setup executable in order to check .NET Framework 4.5 and install it by downloading if not installed already. Sounds simple. And it is. Actually very.
Create your MSI installer project (WIX Setup Project), to produce an installer for your application.
Create a WIX Bootstrapper Project for your Setup executable.
Follow the instructions here, to create your Boundle.wxs
Add a reference to the WixNetFxExtension.dll which can be found in the WIX program directory.
Include the following line in your Chain:
<PackageGroupRef Id="NetFx45Redist"/>
Actually the WixNetFx extension contains a working install package definition for the .NET Framework 4.5.
As caveman_dick mentioned, Burn in WiX 3.6 supports this but you may also want to take a look at dotNetInstaller (http://dblock.github.com/dotnetinstaller/). We use it to install .NET 4.0 but I'm sure it works for installing 4.5 as well. It can also install other MSI dependencies very easily.

Install GitExtensions on a machine with .NET 4.0 only

.NET 4.0 / Visual Studio 2010 is installed on my machine.
When I execute the current installer (GitExtensions224SetupComplete.msi) it tells me that I need to install .NET 3.5.
Can one use GitExtensions with .NET 4.0 or do you have to install .NET 3.5?
If yes, how do I force the installer to use .NET 4.0?
Is there a general approach to this, which also works with other programs and installers?
Thanks
As far as I can see from GitExtensions224SetupComplete.msi, it has an explicit launch condition Installed OR NETFRAMEWORK35. That's why it doesn't let you proceed without .NET 3.5 installed.
This can mean 3 things:
.NET 3.5 is required for the application and/or the installation to run. In this case you have no choice apart from installing .NET 3.5
.NET 3.5 prerequisite is a left over. In this case you can try to cheat :)
DON'T DO THIS ON CRITICAL ENV - IT'S JUST FOR FUN
The property NETFRAMEWORK35 is set in case the registry value Install equals 1 under registry key SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5. Add this fake registry key with the only value Install and set it to 1. Then run the installer. In case it succeeds - then it's a left over. Otherwise, there's a real dependency to .NET 3.5 and you have to live with this.
Eventually, the easiest and safest way to go is to install .NET 3.5, that's for sure.
This seems to be a general problem for installers based on WiX (like a lot of Open Source programs are) In reality you could probably use it with .Net 4 but you can't force the installer to recognize it. In other words you can (probably) either compile from source and remove the .Net 3.5 version check or just give up and install .Net 3.5 (The easy way out). 3.5 works fine in parallel with .Net 4 and can be installed after .Net 4.
This is from experience, I've had the exact same problem.

Check if J# framework installed

I have a VB.NET 2008 (FW 3.5) app with J# 2.0 as a prerequisite.
For some problems I have to check during runtime if this framework is installed.
How can I do?
Thanks
Alessio
You may find the post "What registry keys indicate that J# is installed" helpful.

creating installer with multiple applications with vb project

i have published my project and exe file has been created....
now i want to make a installer with some other applications...i have
myproject.exe
.netframework 3.5
adobeflashplayer.exe
now i want to make a single installer that should install these application at once...how should i do that
Regarding packaging the .NET Framework 3.5 into your setup project, read Microsoft KB Article 324733. In short, you can't do what you asked for. You can specify .NET as a pre-requisite, and you can detect that the pre-req is missing, but the user must elect to install .NET separately, and must run a separate MSI to install .NET.
About Adobe Flash, I don't know.
"You can't do what you asked for." --
Well, at least not with the deployment model offered by Microsoft inside Visual Studio.
Pay $$$ and get InstallShield (or some such) and, oh, spend A LONG TIME learning it, then its cake !