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. General Programming
  3. C#
  4. Need help in making setup file in runtime

Need help in making setup file in runtime

Scheduled Pinned Locked Moved C#
questionhelpworkspace
5 Posts 2 Posters 0 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.
  • S Offline
    S Offline
    sPaudel
    wrote on last edited by
    #1

    I have a .exe file in which there are certain options to choose. According to choose of these options I have to make a installer. How can I achieve this. Any Idea?????? Thanks in advance.

    R 1 Reply Last reply
    0
    • S sPaudel

      I have a .exe file in which there are certain options to choose. According to choose of these options I have to make a installer. How can I achieve this. Any Idea?????? Thanks in advance.

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      How are you creating the installation package if the options were known? Are you using any installation SDK in specific?

      It is a crappy thing, but it's life -^ Carlo Pallini

      S 1 Reply Last reply
      0
      • R Rajesh R Subramanian

        How are you creating the installation package if the options were known? Are you using any installation SDK in specific?

        It is a crappy thing, but it's life -^ Carlo Pallini

        S Offline
        S Offline
        sPaudel
        wrote on last edited by
        #3

        Thanks for quick reply... Let me clear my question... I have a exe file of the project. In this the option choosing page along with all the forms which are needed for the particular option. Lets say if I tick 2 option among 5 option then I should have to make setup file taking only the forms related to the options I choose. Its like a making setup file in runtime.

        R 2 Replies Last reply
        0
        • S sPaudel

          Thanks for quick reply... Let me clear my question... I have a exe file of the project. In this the option choosing page along with all the forms which are needed for the particular option. Lets say if I tick 2 option among 5 option then I should have to make setup file taking only the forms related to the options I choose. Its like a making setup file in runtime.

          R Offline
          R Offline
          Rajesh R Subramanian
          wrote on last edited by
          #4

          I understood your query, but I was asking you if you are using any setup SDK in particular. Not all installers offer you an API that you can use from your code (they only have a GUI). You might want to use the Windows installer SDK[^]. The API reference for the same is here[^]. CodeProject has a wrapper class around the said API - Wrapping the Windows Installer 2.0 API[^]

          It is a crappy thing, but it's life -^ Carlo Pallini

          1 Reply Last reply
          0
          • S sPaudel

            Thanks for quick reply... Let me clear my question... I have a exe file of the project. In this the option choosing page along with all the forms which are needed for the particular option. Lets say if I tick 2 option among 5 option then I should have to make setup file taking only the forms related to the options I choose. Its like a making setup file in runtime.

            R Offline
            R Offline
            Rajesh R Subramanian
            wrote on last edited by
            #5

            If the setup is relatively simple, you might as well consider doing the packaging yourself with the cab SDK[^] or you could create a self-extracting archive. If you choose to do it with a self-extracting archive, there are several ways (z-lib, lzma sdk, etc.,). I remember there was a C# wrapper around the lzma sdk (and that supported creation of self-extracting archives from your code) . A search must bring up plenty of options.

            It is a crappy thing, but it's life -^ Carlo Pallini

            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