View Full Version : Dependency Module: Microsoft .NET Framework 2.0
Dependency Module: Microsoft .NET Framework 2.0
Last Revision: February 8, 2005 (001)
Overview
Use the Microsoft .NET Framework 2.0 dependency module with Setup Factory 7.0 to detect and install Microsoft .NET Framework version 2.0.
Background Information
Applications and controls written for the .NET Framework version 2.0 require the .NET Framework Redistributable Package version 2.0 to be installed on the computer where the application or control runs. The .NET Framework redistributable package is available as a stand-alone executable file, Dotnetfx.exe. When this dependency module is included in your setup, it installs the .NET Framework redistributable if needed.
Note: Please note that if your application requires database support then MDAC 2.6 or greater is also required. If you require this you can download our dependency module from the Setup Factory 7.0 Addons, Modules & More forum.
Installation Instructions
To make the Microsoft .NET Framework 2.0 dependency module available in your Setup Factory 7.0 projects, follow the steps below:
Close Setup Factory 7.0, if it is running.
Browse to the folder where Setup Factory 7.0 is installed on your system. By default it is C:\Program Files\Setup Factory 7.0.
Open the folder called Dependencies.
Unzip the contents of dotnet2_0.zip (see bottom of article) into the dependencies folder.
Create a subfolder of Dependencies and name it dotnet2_0.
Download the Microsoft .NET Framework redistributable file (dotnetfx.exe) (http://www.microsoft.com/downloads/details.aspx?FamilyID=0856eacb-4362-4b0d-8edd-aab15c5e04f5&DisplayLang=en) into the dotnet2_0 subfolder.
Restart Setup Factory 7.0.
To use your new dependency module, select Resources > Dependencies from the main menu and click the Add button. Microsoft .NET Framework 2.0 should now be visible in the list of available modules.
Information Links
SDK (http://www.microsoft.com/downloads/details.aspx?FamilyID=fe6f2099-b7b4-4f47-a244-c96d69c35dec&DisplayLang=en)
Module Name: Microsoft .NET Framework 2.0
Type: Setup Factory 7.0 Dependency Module
Created By: Indigo Rose Software (2/8/2006)
Last Revision: February 8, 2006 (001)
Eagle
02-08-2006, 03:09 PM
Nice One Adam :yes
Thanks. It was a pretty strait foreword port from the 1.1 module. One thing to keep in mind is that the dotnetfx.exe requires version 3.0 of the Windows installers for NT based systems and 2.1 for 9x based machines. It looks like Microsoft does not encourage distributing MSI 3.0 so I've left the dotnet 2.0 installer handle this.
Adam.
Eagle
02-08-2006, 03:20 PM
Yes , spot on there, I was thinking 'bout posting something to that effect,
but you got it covered... V3.1 v2 is what would be downloaded, I believe.
Pretty sure that is the v3.x on MS servers these days... :yes
(less overhead for a module, not to distribute Winstaller 3.x)
The 3.1v2 redist is readliy downloadable though...don't know what MS's beef would be..
mrbaby
07-23-2006, 12:15 AM
Which portion of the code do I change or remove to disable the nResult dialog?
ipodsync
01-16-2007, 10:05 AM
Is there a way to have Setup Factory download and install dotnetfx.exe only if the framework is not detected on the machine, rather than having to bundle it in the installer?
DanCooperstock
03-05-2007, 09:32 AM
I would also like a variant of this that does the download, rather than having to bundle it in the installer.
PropellerHeads
03-09-2007, 04:10 PM
Has anybody tested this dependency on Vista? We're using 'ultimate' and followed the steps but it doesn't show up in the list of "available modules" when we try to add the dependency to the project.
I did notice when starting up SUF that a small dialogue box appears very quickly. I'm assuming it's an error but it flashes up so quickly (and dissappears) that we can't read or screen capture it. We looked in the event log for entries and there are none. Is there a log or somewhere we can look to see what's happening. I'm sure this is related to the Dependency module (which is why I didn't start a different thread).
Thanks in advance.
Joe
PropellerHeads
03-09-2007, 04:38 PM
Sorry, let me clarify my last post...
We're running SUF on a Vista Machine...
Also, we finally caught the dialogue in a screen capture (the second part of the email) and it's "refreshing archive" - so NOT an error!
The initial question still remains... has anybody used this successfully when running SUF (to build an installer) on a Vista machine?
Thanks
Joe
Eagle
03-12-2007, 10:35 AM
just a heads up...I have nearly finished a mod to this Module that:
1) Detects for and if required downloads and installs Windows installer 2
for 98\Me or Windows installer 3.1v2 for required Os type conditions.
(if detection fails- defaults to the .Net2.0 runtime handling of this pre-req)
2) Downloads and installs the appropriate .Net2.0 runtime if all pre-reqs OK.
functionality is included to detect if Os is 64 bit and if so, if x64 or IA64
and based on a configurable boolean downloads and installs the correct
64bit redist IF you want true 64bit Dotnet2.0 runtime files.
otherwise defaults to the dload-install of the standard 32 bit (x86) redist.
that should get you out of jam or based on my code get you into one :)
just give me another 24 hrs ...as a trade I want some folks to fully test
the module when posted on all Os types and enter into a collaboration :yes
btw: DotNet v 3.0 redist. has gone final and is backward compatible with V2.0
(ships with Vista 32 and 64bit OS(s)
fwiw
Eagle
03-13-2007, 09:56 AM
If you wish to use this Modification to the Original Created by IR
as outlined in the previous post, then please test thoroughly and
report any bugs or changes needed here. :yes
download and extract the DnLoad_Mod_dotnet2_0.xml from the zip file
into the Root of the Dependancies folder of your SUF70 installation.
You may need to restart SUF70 to make the module available for selection.
augustwind
04-20-2007, 11:25 PM
download and extract the DnLoad_Mod_dotnet2_0.xml from the zip file
One thing I'd recommend, especially if you have the original file in your dependencies folder, is to rename the file (inside the XML file - first section), to something different - like adding " - Separate Downloads" or something like that.
Otherwise, both files look exactly the same, when you click the 'Add' button, and you can't tell exactly which one is which.
Eagle
04-24-2007, 07:00 AM
Yes, good catch augustwind, :yes
I slipped up there, I did not change the 'name' field while in
'edit mode' before the save and export, I picked this up in
the DirectX module update(s) before I posted.
They have a 'unique' but related 'name' , so should be ok.
DanCooperstock
04-27-2007, 02:10 PM
I have found twice now, when my installer using this dependency module was run on Windows XP systems, that it did not pick up the fact that the .NET Framework 2.0 was not installed, and just went ahead fine with my normal installation. But then when I run the application, I get a message about needing the proper .NET framework.
Any ideas what this might be? I've been staring at the detection script, but it's rather complex, and at the moment I don't have access to the systems that it failed on.
Thank you.
Eagle
04-30-2007, 03:49 PM
I have modified the 'detection' portion of the Download and Install Mod:
1. Now first detects for 'Windows Vista and beyond' OS(s)
-if detected is treated as .Net2.0 is already installed on the system
(be warned: this Vista detection supports RTM or later releases only)
2. now only detects for V2.0 and the 'common id files' have been changed
the Module's 'internal name' is now:
'Microsoft .NET Framework 2.0 - Download and Install'
download and extract the DnLoad_Mod_dotnet2_0_v1.1.xml file itself
into the Root of the SUF70 installation\Dependancies folder:
Rahvyn
05-07-2007, 01:59 PM
Nice work Eagle. Glad to see the detection portion up and running, I was running into issues also with it not installing when an older version was installed. This took care of it.
Thanks
Eagle
05-08-2007, 03:33 AM
glad its behaving now...:o
any issues please post :yes
TheUserMan
08-08-2007, 12:42 PM
Which portion of the code do I change or remove to disable the nResult dialog?
Need help with this problem. The empty dialog that comes up is confusing to my users. Does someone know what I can do to fix it? Thanx
yaser95
08-26-2007, 03:20 AM
What bout Dependency Module: Crystal Reports ?
sclarke
09-12-2007, 10:47 AM
Thanks Eagle! :yes
WillBellJr
10-31-2007, 09:13 AM
So what should I expect to do when developing for .NET 3.0 and .NET 3.5??
I want to begin developing WPF programs using VisualStudio 2008 Beta and I'd like to know how I can move forward using SetupFactory 7 to create my installers?
Any information or suggestions appreciated.
-Will
Brett
10-31-2007, 10:00 AM
We will be developing similar modules for the new .NET runtimes soon. Setup Factory 7.0 development will continue and should handle WPF installation as well as it handles any version of .NET installation.
WillBellJr
11-02-2007, 03:45 PM
Thanks Brett, glad to hear that!
We bought into SUF7 about a year or so ago and I was a bit worried that development would wane since you've introduced a new product.
I'm glad to see at least I can make it though .NET3x for the near future.
-Will
PS - I wish you guys had some kind of trial lock software; I'd like to protect my wares in the near future but from what I've seen so far, either it's hella expensive OR cheap and doesn't support .NET :o
a4andy
01-20-2008, 04:59 AM
Hi,
I get a couple of errors running the modified version on an acer notepad running
XP when it detects that the dotnet framework is required.
The first one occured on line 122 of the installation script;
'Dependency Installation: Microsoft .Net Framework 2.0 - download and Install, Line 122: attempt to call field `Is64BitOS' (a nil value) '
I changed line 122 from;
If System.Is64BitOS() then
to;
If bOSBT64 then
(local variable created and filled at beginning of script)
which fixed the 1st problem. Now I get to line 207 where it falls over with;
'Dependency Installation: Microsoft .Net Framework 2.0 - download and Install, Line 122: attempt to call 'GetFileSize' (a nil value)'
Not sure what to do about this one but would sure appreciate some help...
Thanks
Andy
Paul Bachner
03-06-2008, 03:55 PM
Is the Dependency Module ready for .net 3.5?
Abdulraqeb
03-20-2008, 05:53 AM
thank you Eagle , Nice working ,but also I want to dep. the crystal Reports Backage for vb2005 ,How Can I do it????:huh
mamun
05-09-2008, 04:42 AM
Dear Adam,
Thank you very much, It really helped me
have you it for Framework 3.5
by the by,
can you help me regarding crystal report marge module incorporate.
Best Regards,
Abdullah Al Mamun
AppleBag
07-29-2008, 02:14 AM
Anyone able to adapt this to a VC++ 2005 and 2008 Redistributables?
(2 separate ones)
Check if they're installed, and if not, download and install?
silverf0x
09-19-2008, 09:31 AM
Hi,
I get a couple of errors running the modified version on an acer notepad running
XP when it detects that the dotnet framework is required.
The first one occured on line 122 of the installation script;
I changed line 122 from;
If System.Is64BitOS() then
to;
If bOSBT64 then
(local variable created and filled at beginning of script)
which fixed the 1st problem. Now I get to line 207 where it falls over with;
Not sure what to do about this one but would sure appreciate some help...
Thanks
Andy
I know its a lte reply, but better late than anything. I guess it could help other people.
You're having this error because you are using this dependency module in SetupFactory 7. Upgrade to 8.x and it will work as-is, without having to change anything.
Big big props to Eagle for this wonderful work.
pezhman32
09-24-2009, 07:39 PM
hi all
no dependency for .net 3.5 ?
we will be so happy if someone could write one!;)
thx
ipcheat
11-20-2009, 09:27 PM
thanks:yes
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.