BetaONE will rise again!


Reply
  #1  
Old 12th Oct 05, 09:24 AM
*MO*'s Avatar
*MO* *MO* is offline
Senior Member
 
Join Date: Aug 2002
Location: Cape Town
Posts: 311
*MO* is an unknown quantity at this point
Send a message via MSN to *MO*
Awesome. thanx very much. now how do i use it? he he he he.

Oh by the way. I only started using C# last week. i've been a java developer all along.

I'm using Visual Studio 2003.

So any help would be great

thanx
Reply With Quote
  #2  
Old 12th Oct 05, 12:21 PM
~*McoreD*~'s Avatar
~*McoreD*~ ~*McoreD*~ is offline
Super Moderator
 
Join Date: Jul 2002
Location: Australia
Posts: 2,902
~*McoreD*~ is an unknown quantity at this point
Embedding Microsoft .NET Framework to the Application Setup won't be a good idea unless you are distributing it via a CD.

I'd suggest you to try a simple Installer like Inno. In Inno setup script you can have the following code:

[code]
Code:
function InitializeSetup(): Boolean; var ErrorCode: Integer; NetFrameWorkInstalled : Boolean; Result1 : Boolean; begin NetFrameWorkInstalled := RegKeyExists(HKLM,'SOFTWARE\Microsoft\.NETFramework\policy\v2.0'); if NetFrameWorkInstalled =true then begin Result := true; end; if NetFrameWorkInstalled = false then begin NetFrameWorkInstalled := RegKeyExists(HKLM,'SOFTWARE\Microsoft\.NETFramework\policy\v1.1'); if NetFrameWorkInstalled =true then begin Result := true; end; if NetFrameWorkInstalled =false then begin Result1 := MsgBox('This setup requires the Microsoft .NET Framework 1.1. Please download and install the .NET Framework and run this setup again.', mbConfirmation, MB_OK) = idYes; if Result1 =false then begin Result:=false; end else begin Result:=false; end; end; end; end;
The installer will detect if there is .NET Framework is installed and the user will be taken to the page where she can download the latest .NET Framework version.

Congratulations on your move to C# from Java.

Cheers,
McoreD
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Speed up system. greasemonkey Hardware Support 6 6th Nov 01 07:32 PM


All times are GMT +1. The time now is 04:33 PM.


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.