DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Setup program for apps created with Visual C# Express  (Read 20,395 times)

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Setup program for apps created with Visual C# Express
« on: April 16, 2007, 05:51 PM »
Does anyone know of a setup utility that can create deployment packages for applications created using Visual C# 2005 Express Edition?  The express editions of Microsoft's programming IDEs are nice, and feature-packed (especially considering the cost), but they don't (at least, VC# doesn't) contain a Setup and Deployment project type.  I'm looking for a freeware tool that can detect whether a target computer has .NET 2.0 installed and can, with permission, install it if it is found to be absent.  I have used Inno Setup Builder successfully in the past for simple projects, but as far as I know, it doesn't include this functionality to detect whether or not .NET 2.0 is already installed. 
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Setup program for apps created with Visual C# Express
« Reply #1 on: April 16, 2007, 06:00 PM »
Quote
it doesn't include this functionality to detect whether or not .NET 2.0 is already installed

i use inno myself and i would love to know a good answer for this as well, to detect presence of net2 and help user download and install it if not.

hamradio

  • Amateur Radio Guy
  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 893
    • Plugin Coding Medal
    • Participated in NANY Challenge Fifteen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
    • Hardware Hacker
Re: Setup program for apps created with Visual C# Express
« Reply #2 on: April 16, 2007, 07:47 PM »
Inno Setup can include this functionality *if* you know how to do it.  There is a .NET 1.1 example of how a person did one for what he needed at http://www.codeproject.com/dotnet/dotnetinstallerforinno.asp. 

My 2 cents is that I know you want to make it easy and all that, but my opinion is you could tell the perspective users they may need to install .net 2.0 before they are able to run your app and tell them where to find out if they have .net 2.0 and if they dont have it point them to microsofts web site where the download is.
As if you bundled it with it, then it would take more bandwidth than needed as not everyone might need 2.0. You could also offer two versions one with it bundled with it for users who doesnt after going thru the checks you state and another that is just the program.  Thats just my 2 cents on it. :)

tinjaw

  • I'm so glad breakbeat techno isn't an illegal drug
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • Participated in NANY Challenge Twice
    • Coding Snacks
    • Military Service Badge - US Army
    • Linux User
Re: Setup program for apps created with Visual C# Express
« Reply #3 on: April 17, 2007, 01:01 AM »
What doesn MSDN say about this?

Ruffnekk

  • Uhm yeah...
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 332
    • Programming School - Stage 1 Medal
    • Programming School - Deluxe Bonus Medal
    • Participated in NANY Challenge Once
    • Linux User
Re: Setup program for apps created with Visual C# Express
« Reply #4 on: April 17, 2007, 06:28 AM »
I use SharpDevelop for it. I don't really fancy the IDE itself, but it does offer a Setup Project type. You can open your C# solution created with C# Express and add the Setup Project in SharpDevelop!

Website: http://www.icsharpcode.net/OpenSource/SD/Default.aspx

P.S.: You cannot completely edit the setup project from the C# IDE. SharpDevelop uses a different format, but it is very flexible and it does create an .MSI Windows Installer file.
Regards,
RuffNekk

Programming is an art form that fights back.
« Last Edit: April 17, 2007, 06:32 AM by Ruffnekk »

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Re: Setup program for apps created with Visual C# Express
« Reply #5 on: April 17, 2007, 04:37 PM »
Interesting.  I'll have to do some testing with SharpDevelop.  And, hamradio, I agree with you about offering two versions for download, one for user who already have .NET 2.0 installed, one for if they don't.  I'll also check out the www.codeproject.com link.  Thanks for the links, hamradio and Ruffnekk.
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Re: Setup program for apps created with Visual C# Express
« Reply #6 on: April 17, 2007, 04:48 PM »
Mouser, the Framework also includes the following namespace, which might be worth investigating:

System.Configuration.Install
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Re: Setup program for apps created with Visual C# Express
« Reply #7 on: April 23, 2007, 03:28 PM »
I found this article which relates directly to the discussion on this thread:

http://www.installshield.com/news/newsletter/0403-articles/installer.asp
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

hollowlife1987

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 92
    • Participated in NANY Challenge Three Times
Re: Setup program for apps created with Visual C# Express
« Reply #8 on: April 23, 2007, 03:31 PM »
I have a NSIS function to detect if .net 2.0 is installed or not.
I'll post the code tomorrow when I find it.

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Re: Setup program for apps created with Visual C# Express
« Reply #9 on: April 23, 2007, 03:48 PM »
I would very much appreciate that, hollowlife1987.

I've read that ClickOnce application deployment automatically checks if the client machine needs the Framework.  Anyone familiar with ClickOnce?  I think the Express edition IDEs offer it, but I'm not at home so I can't check at the moment.  But doesn't that sort of deployment have to be hosted on a server?

While reading about this topic, I continue to get the impression that as time progresses, it will become less and less likely that a setup will need to install the Framework on a target machine.  Vista ships with the framework installed, and I imagine future versions of Windows will as well.
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

« Last Edit: April 23, 2007, 04:02 PM by kyrathaba »

app103

  • That scary taskbar girl
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 5,888
    • Participated in NANY Challenge Six Times
    • Coding Snacks
    • Gathering Badge
    • Cody Award
    • Volunteers/Staff
Re: Setup program for apps created with Visual C# Express
« Reply #10 on: April 23, 2007, 04:45 PM »
While reading about this topic, I continue to get the impression that as time progresses, it will become less and less likely that a setup will need to install the Framework on a target machine.  Vista ships with the framework installed, and I imagine future versions of Windows will as well.

Not true. Doesn't Vista ship with 2.0 framework? What about when you start developing things that need 3.0 framework?

This may continue to be a need otherwise you will end up with the same horrors many VB developers had with missing runtime files.

hollowlife1987

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 92
    • Participated in NANY Challenge Three Times
Re: Setup program for apps created with Visual C# Express
« Reply #11 on: April 23, 2007, 06:11 PM »
Ok, this script is taken from SDL dot net runtime installer it has the code to detect if .net 2.0 is installed or not.

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Re: Setup program for apps created with Visual C# Express
« Reply #12 on: April 23, 2007, 07:15 PM »
Thanks, hollowlife.

Setup projects in Visual Studio .NET 2003 can be used to install the .NET Framework with your application, but only if you have installed the optional Visual Studio .NET Framework Bootstrapper Plug-in on your development computer.  This plug-in apparently does not work with the Express edition IDEs, however, so again one would need to investigate the ability to script such detection/installation of .NET Framework, using a tool like Inno or NSIS.
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

Original address: https://www.donationcoder.com/forum/index.php?topic=8134.0