VB.NET Tips / Tricks / Examples and Help

INNO Setup - Install .NET Framework Example


Wed, Jun 25 2008

Downloads: 5,680
File size: 9.4kB
Views: 33,096
INNO Setup - Install .NET Framework Example

This is an example script file for installing the .NET 2.0 Framework on Windows using INNO Setup. It includes checking for the existance of the framework, and installing it when needed. It also offers several additional checks before installing, like Windows version, SP level, MSI Installer Version, IE Version, If user is running with admin rights, etc..

This file is accompanied by an article explaining it, which can be found here.

Comments

Tamir Gefen wrote re: INNO Setup - Install .NET Framework Example
on Thu, Aug 21 2008 7:55 AM
Hello, I find your example very useful! I'm just starting to migrate an application that I wrote, from VB6 to VB.NET . May you know how to include 3rd party DLL with the INNO setup script? This is my line: [Files] Source: "bin\Nini.dll"; DestDir: "{sys}";OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile The compilation is passed successfully, but while the installation, I get the following erro boxr: Microsoft .NET Framework: Unhandled exception has occurred in your application. Could not load file or assembly 'Nini....." . This 'Nini' is the 3rd part DLL. Thanks in advance!
Matthew Kleinwaks wrote re: INNO Setup - Install .NET Framework Example
on Tue, Oct 21 2008 5:20 PM
Is the 3rd party component COM based? Many VB6 components are, so there is a good chance that one is too. You need to add the 'regserver' keyword to the flags for the dll file you want to register for COM. See the INNO help for more on this.
Telefisch wrote re: INNO Setup - Install .NET Framework Example
on Fri, Jan 23 2009 7:27 AM
Hi... many thanks for this Code. One Question: I want to install .Net 3.5 if nessecary. I think the following lines are for this: [Run] #if IncludeFramework Filename: {tmp}\dotnetfx.exe; Parameters: "/q:a /c:""install /l /q"""; WorkingDir: {tmp}; Flags: skipifdoesntexist; StatusMsg: "Installing .NET Framework if needed" #endif Filename: {win}\Microsoft.NET\Framework\v2.0.50727\CasPol.exe; Parameters: "-q -machine -remgroup ""MyApp"""; WorkingDir: {tmp}; Flags: skipifdoesntexist runhidden; StatusMsg: "Setting Program Access Permissions..." Filename: {win}\Microsoft.NET\Framework\v2.0.50727\CasPol.exe; Parameters: "-q -machine -addgroup 1.2 -url ""file://{app}/*"" FullTrust -name ""MyApp"""; WorkingDir: {tmp}; Flags: skipifdoesntexist runhidden; StatusMsg: "Setting Program Access Permissions..." [UninstallRun] Filename: {win}\Microsoft.NET\Framework\v2.0.50727\CasPol.exe; Parameters: "-q -machine -remgroup ""MyApp"""; Flags: skipifdoesntexist runhidden; In my Win Installation CasPol.exe doesn't exist in 3.5 folder. Which exe should I start here? Could you please comment these lines and what they do? Thank Tele
Matthew Kleinwaks wrote re: INNO Setup - Install .NET Framework Example
on Mon, Feb 2 2009 1:44 PM
Since .NET 3.0 and 3.5 are subsets of .NET 2.0, code access security is still a part of the main .NET 2.0 framework. You should have it in the 2.0 directory even if what you are installing is .NET 3.5


© 2014 - ZerosAndTheOne.com - Hosting by Orcsweb (http://www.orcsweb.com/)
Powered by Community Server (Non-Commercial Edition), by Telligent Systems