Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Oh, yeah, that was why...

Oh, yeah, that was why...

Scheduled Pinned Locked Moved The Lounge
csharpvisual-studioannouncementlearning
11 Posts 6 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    PIEBALDconsult
    wrote on last edited by
    #1

    For the past few years, I didn't have a version of Visual Studio on my main PC (desktop). When I have had a bit of personal C# to write -- as for a challenge or similar here -- I used an old Win 8 thingy. Which has Visual Studio 2010 Express installed. And it was good. Now I have a proper laptop (Win 11) and I installed Visual Studio 2022 Pro. Today I was copying projects over to the new system and I tested a few to determine whether or not they still compile. They do, but they had to be upgraded from .net 4 to 4.8 -- which is OK. BUT I had forgotten that some of these have an old Installer project which is no longer supported. :sigh: Installers just aren't important enough to me to get me all excited about learning a new tool for creating them. I guess I just won't provide installers anymore. Or maybe -- just because I probably can -- compile with one version and create installers with the other... I suppose I can put Visual Studio 2010 Express on here for that.

    M H K 3 Replies Last reply
    0
    • P PIEBALDconsult

      For the past few years, I didn't have a version of Visual Studio on my main PC (desktop). When I have had a bit of personal C# to write -- as for a challenge or similar here -- I used an old Win 8 thingy. Which has Visual Studio 2010 Express installed. And it was good. Now I have a proper laptop (Win 11) and I installed Visual Studio 2022 Pro. Today I was copying projects over to the new system and I tested a few to determine whether or not they still compile. They do, but they had to be upgraded from .net 4 to 4.8 -- which is OK. BUT I had forgotten that some of these have an old Installer project which is no longer supported. :sigh: Installers just aren't important enough to me to get me all excited about learning a new tool for creating them. I guess I just won't provide installers anymore. Or maybe -- just because I probably can -- compile with one version and create installers with the other... I suppose I can put Visual Studio 2010 Express on here for that.

      M Offline
      M Offline
      Mircea Neacsu
      wrote on last edited by
      #2

      I've used NSIS for installers for years now. I don't particularly like it but it does its job and I've used the same template script for so long that I don't feel like changing it. In the end is just like you said:

      PIEBALDconsult wrote:

      Installers just aren't important enough to me to get me all excited about learning a new tool for creating them.

      Oh BTW: lately I've got into shipping one EXE applications just like in the days of good old DOS. They are fancy C++ thingies with an embedded HTTP server and all the UI done through a browser. All nicely packed in a single EXE that contains HTML, CSS, SQL, etc. It would probably make for a nice (and long) article but I don't see many people following on this path, so why bother!

      Mircea

      P J 2 Replies Last reply
      0
      • M Mircea Neacsu

        I've used NSIS for installers for years now. I don't particularly like it but it does its job and I've used the same template script for so long that I don't feel like changing it. In the end is just like you said:

        PIEBALDconsult wrote:

        Installers just aren't important enough to me to get me all excited about learning a new tool for creating them.

        Oh BTW: lately I've got into shipping one EXE applications just like in the days of good old DOS. They are fancy C++ thingies with an embedded HTTP server and all the UI done through a browser. All nicely packed in a single EXE that contains HTML, CSS, SQL, etc. It would probably make for a nice (and long) article but I don't see many people following on this path, so why bother!

        Mircea

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #3

        Mircea Neacsu wrote:

        shipping one EXE applications

        Yeah, that was supposed to be one of the major selling points of .net -- "install by copy" or whatever.

        M 1 Reply Last reply
        0
        • P PIEBALDconsult

          Mircea Neacsu wrote:

          shipping one EXE applications

          Yeah, that was supposed to be one of the major selling points of .net -- "install by copy" or whatever.

          M Offline
          M Offline
          Mircea Neacsu
          wrote on last edited by
          #4

          DOS, .NET, whatever... plus ça change[^] :D PS Believe it or not, I've survived 20+ years without touching .NET and I don't plan to start now :)

          Mircea (see my latest musings at neacsu.net)

          1 Reply Last reply
          0
          • P PIEBALDconsult

            For the past few years, I didn't have a version of Visual Studio on my main PC (desktop). When I have had a bit of personal C# to write -- as for a challenge or similar here -- I used an old Win 8 thingy. Which has Visual Studio 2010 Express installed. And it was good. Now I have a proper laptop (Win 11) and I installed Visual Studio 2022 Pro. Today I was copying projects over to the new system and I tested a few to determine whether or not they still compile. They do, but they had to be upgraded from .net 4 to 4.8 -- which is OK. BUT I had forgotten that some of these have an old Installer project which is no longer supported. :sigh: Installers just aren't important enough to me to get me all excited about learning a new tool for creating them. I guess I just won't provide installers anymore. Or maybe -- just because I probably can -- compile with one version and create installers with the other... I suppose I can put Visual Studio 2010 Express on here for that.

            H Offline
            H Offline
            honey the codewitch
            wrote on last edited by
            #5

            Most of the time I make my apps self-installing - even my services.

            Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

            P 1 Reply Last reply
            0
            • H honey the codewitch

              Most of the time I make my apps self-installing - even my services.

              Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

              P Offline
              P Offline
              PIEBALDconsult
              wrote on last edited by
              #6

              They have to get onto the system somehow.

              H 1 Reply Last reply
              0
              • P PIEBALDconsult

                They have to get onto the system somehow.

                H Offline
                H Offline
                honey the codewitch
                wrote on last edited by
                #7

                Generally what I do (whenever possible) is a I ship a single executable. It contains the install code in it that runs on first launch. Obviously that doesn't work if you need to ship a bunch of dependencies with it. I made a thing called CSBrick that will take C# projects and turn them into a single large C# file so you can effectively wedge it into a project statically instead of linking to it as a DLL. It's here on codeproject if you want to use that to cut down on external dependencies.

                Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

                R 1 Reply Last reply
                0
                • M Mircea Neacsu

                  I've used NSIS for installers for years now. I don't particularly like it but it does its job and I've used the same template script for so long that I don't feel like changing it. In the end is just like you said:

                  PIEBALDconsult wrote:

                  Installers just aren't important enough to me to get me all excited about learning a new tool for creating them.

                  Oh BTW: lately I've got into shipping one EXE applications just like in the days of good old DOS. They are fancy C++ thingies with an embedded HTTP server and all the UI done through a browser. All nicely packed in a single EXE that contains HTML, CSS, SQL, etc. It would probably make for a nice (and long) article but I don't see many people following on this path, so why bother!

                  Mircea

                  J Offline
                  J Offline
                  Jeremy Falcon
                  wrote on last edited by
                  #8

                  Mircea Neacsu wrote:

                  Oh BTW: lately I've got into shipping one EXE applications just like in the days of good old DOS.

                  That's one thing that Apple does right. When you "install" an app on a Mac, you're litteally just copying a single file over that's really an archive of executables, libraries, and settings. No registry edits. No worrying about what goes where. You just copy a single file over to your app folder... done. Now, some Mac apps will have an "installer" but you don't need it since that's all it's doing... just copying over a single file.

                  Jeremy Falcon

                  1 Reply Last reply
                  0
                  • P PIEBALDconsult

                    For the past few years, I didn't have a version of Visual Studio on my main PC (desktop). When I have had a bit of personal C# to write -- as for a challenge or similar here -- I used an old Win 8 thingy. Which has Visual Studio 2010 Express installed. And it was good. Now I have a proper laptop (Win 11) and I installed Visual Studio 2022 Pro. Today I was copying projects over to the new system and I tested a few to determine whether or not they still compile. They do, but they had to be upgraded from .net 4 to 4.8 -- which is OK. BUT I had forgotten that some of these have an old Installer project which is no longer supported. :sigh: Installers just aren't important enough to me to get me all excited about learning a new tool for creating them. I guess I just won't provide installers anymore. Or maybe -- just because I probably can -- compile with one version and create installers with the other... I suppose I can put Visual Studio 2010 Express on here for that.

                    K Offline
                    K Offline
                    kmoorevs
                    wrote on last edited by
                    #9

                    FWIW, here's a link How to make a self extracting archive that runs your setup.exe with 7zip -sfx switch – Notes to self[^] I've used this method for over 12 years now. It's chained into my release tool and works well for me.

                    "Go forth into the source" - Neal Morse "Hope is contagious"

                    1 Reply Last reply
                    0
                    • H honey the codewitch

                      Generally what I do (whenever possible) is a I ship a single executable. It contains the install code in it that runs on first launch. Obviously that doesn't work if you need to ship a bunch of dependencies with it. I made a thing called CSBrick that will take C# projects and turn them into a single large C# file so you can effectively wedge it into a project statically instead of linking to it as a DLL. It's here on codeproject if you want to use that to cut down on external dependencies.

                      Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

                      R Offline
                      R Offline
                      realJSOP
                      wrote on last edited by
                      #10

                      i toyed with ILMerge a few times. It puts all of the project assemblies into a single exe. I stopped using it when I started writing WPF apps because it doesn't work with those.

                      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                      -----
                      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                      -----
                      When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                      H 1 Reply Last reply
                      0
                      • R realJSOP

                        i toyed with ILMerge a few times. It puts all of the project assemblies into a single exe. I stopped using it when I started writing WPF apps because it doesn't work with those.

                        ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                        -----
                        You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                        -----
                        When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                        H Offline
                        H Offline
                        honey the codewitch
                        wrote on last edited by
                        #11

                        I initially was going that route, but I ran into issues with ILMerge with certain projects. It's been so long now I couldn't tell you what the issue was, but CSBrick was built because ILMerge didn't work in all cases.

                        Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups