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

Last post Author Topic: dot Net complaints  (Read 32,379 times)

kamahl

  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 48
    • Participated in NANY Challenge Twice
Re: dot Net complaints
« Reply #25 on: November 03, 2010, 02:27 PM »
#3 - ugh. You're approaching things wrongly :) - exactly how to do things right depend on whole bunch of things, though. But in general, you'll want to bind your controls to objects (as opposed to string/int/whatever representations of individual properties) and use proper sorting: check out IComparable<T> and IComparer<T> interfaces. There's several ways to handle sorting, and there's more to it than just the sorting itself... for instance, it's often better practice to not sort your object data directly, but bind the GUI element to a filter/sort adapter that constructs the binding collection from it's source collection.

Please, offer me a better way to do it.  :D

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: dot Net complaints
« Reply #26 on: November 07, 2010, 11:42 PM »
I have the same frustration with .NET.  I did finally manage to tweak an InnoSetup script enough to get it to detect if .NET 4.0 is present and, if not, download it.  I'm attaching a link to a downloadable zipped archive of my InnoSetupPortable folder.  It contains a directory structure housing "Character Creator.exe" (could be any other executable, just happens to be the one my script references) in the /source/ subdirectory, and a related *.iss script file in the root of the directory.  If anyone can use this as a starting-point, and develop a better script (maybe one that also prompts for installation of a desktop icon, etc.), feel free to build upon this:

http://kyrathaba.dcmembers.com/testbed/InnoSetupPE.zip
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

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

« Last Edit: November 07, 2010, 11:46 PM by kyrathaba »

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: dot Net complaints
« Reply #27 on: November 07, 2010, 11:50 PM »
Thanks for sharing that kyrathaba  :up:

Here's how i prompt for desktop icon with Inno.

First add an ICON line:
[Icons]
Name: {userdesktop}\Name of your application; Filename: {app}\YourApplicationProgramFile.exe; Tasks: desktopicon

Then add a TASKS line:

[Tasks]
Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}


Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: dot Net complaints
« Reply #28 on: November 08, 2010, 02:57 AM »
One of the real pains of distributing a dot net application seems to be worrying about and figuring out ways to deal with the situation where a required edition of the dot net clr isnt installed.

I don't know what you mean exactly. If you start from an installer, the installer will direct you to the proper download page. There's an exception message that tells the user that they need it, then they can opt to install it and are properly directed to the MS .NET install page. This has been around since .NET 2.0. It's much better in later versions though. .NET 1.0 and 1.1 were totally sucky for this though.
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

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: dot Net complaints
« Reply #29 on: November 08, 2010, 03:03 PM »
Thanks for the info, Mouser.

I did find Byte Essence Install Maker, which purports to check the .NET Framework version (and presumably would offer to download a missing Framework).  I haven't tested it yet; but if it does what it claims, it's just what I'm looking for:  a freeware installer, no scripting learning curve, that would work well with my .NET apps.

BIM.png

And here's something that may interest you, Mouser.  An MSI bootstrapper that detects if .NET Framework is needed prior to program installation.  It says it's licensed under the GPL.

Also, the free version of AdvancedInstaller purports to check for and automate the installation of missing .NET Framework:

advancedInstaller.png
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

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

« Last Edit: November 08, 2010, 03:24 PM by kyrathaba »

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: dot Net complaints
« Reply #30 on: November 10, 2010, 12:59 AM »
Came across this DreamShield installer, mouser, which is interesting:

Quote
DreamShield is a publishing tool through which it is possible to create installers to publish Microsoft .NET based applications. You can also choose whether to include the setup of the .NET Framework itself with your package for an easy distribution. It is possible to create setup then put them on a CD or to create a self-extracting archive with only one application in order to allow an easy downloading from a website.

It's free for both personal and commercial use.
Allows an installation to be FTPed to your website for download by end-users

Developers and documentation appear to be French, though (although the documentation can be viewed in English via a Google Translation on their website.
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: dot Net complaints
« Reply #31 on: November 10, 2010, 01:22 AM »
SSE Setup states that it supports .NET Framework download and installation, wherever necessary.  I'm downloading it for later.
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

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

Eóin

  • O'Callaghan
  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,401
Re: dot Net complaints
« Reply #32 on: January 17, 2011, 01:45 PM »
The WiX - Windows Installer Xml Toolkit can also handle installing the .Net frameworks on demand.

Personally I love WiX for installers.
Interviewer: Is there anything you don't like?
Bjarne Stroustrup: Marketing hype as a substitute for technical argument. Thoughtless adherence to dogma. Pride in ignorance.

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: dot Net complaints
« Reply #33 on: January 17, 2011, 06:23 PM »
I helped worstje getting his Inno Setup installer for JottiQ into place, for that I grabbed an existing feature from the internet, and expanded that to support .NET 4.0. It's also posted back on the internet, ofcourse. Everybody was quite happy, including me 8)

/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

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