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. Setting value in installer and reading at runtime

Setting value in installer and reading at runtime

Scheduled Pinned Locked Moved C#
helpquestion
3 Posts 3 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.
  • A Offline
    A Offline
    atuldeore
    wrote on last edited by
    #1

    Hi, I am not very familiar with Installers hence need help. I would like to allow user to choose from various options while installing the windows application. When he runs the application, it should read what user had selected at the time of installation and show/hide items accordingly. Is there any way to do this? Or do I need to write this in some file? .config file may be. But I would like to avoid writing to a file. Thanks a lot. -AD

    Every bit counts

    J I 2 Replies Last reply
    0
    • A atuldeore

      Hi, I am not very familiar with Installers hence need help. I would like to allow user to choose from various options while installing the windows application. When he runs the application, it should read what user had selected at the time of installation and show/hide items accordingly. Is there any way to do this? Or do I need to write this in some file? .config file may be. But I would like to avoid writing to a file. Thanks a lot. -AD

      Every bit counts

      J Offline
      J Offline
      Jacky Yiu
      wrote on last edited by
      #2

      you can store the user option in registry or in a config file, if you were not planning to write file, registry may be a choice.

      1 Reply Last reply
      0
      • A atuldeore

        Hi, I am not very familiar with Installers hence need help. I would like to allow user to choose from various options while installing the windows application. When he runs the application, it should read what user had selected at the time of installation and show/hide items accordingly. Is there any way to do this? Or do I need to write this in some file? .config file may be. But I would like to avoid writing to a file. Thanks a lot. -AD

        Every bit counts

        I Offline
        I Offline
        I explore code
        wrote on last edited by
        #3

        I believe, a strong solution is indeed what you are trying to avoid....u get it.."FILES".... You can write the installation settings onto a text file and keep it hidden somewhere on the user machine, thts one of the best ways, really. Alternatively, you can use windows registry to store the installation settings which is suppposedly the best way and the usual way other applications store settings during installation. I havent tried the latter approach though and you may have to refer MSDN for this, u can get the complete code for your kinda requirements on MSDN. Files have been my favorite way out for quite some time now. :)

        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