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. .NET (Core and Framework)
  4. .config files and Setup projects

.config files and Setup projects

Scheduled Pinned Locked Moved .NET (Core and Framework)
workspacehelp
2 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.
  • C Offline
    C Offline
    Callixte
    wrote on last edited by
    #1

    Hello everybody, Perhaps someone has experienced the same problem as I had: I have developped an application and this application is a bit complexe to configure: several DBs, some parameters that depends on the system (such as log files path) and so on. These configuration item are stored in the .config file. Now, I want to distribute my application. So I built a setup project for it. My problem is that the msi file contains my .config parameters which will not work on an other system. The simple solution is to edit manually the config file after install, which is not very convenient. I was wondering if there is a way to automaticaly add screens in the setup wizard to configure the application and write the config file while installing. tahnks in advance.

    J 1 Reply Last reply
    0
    • C Callixte

      Hello everybody, Perhaps someone has experienced the same problem as I had: I have developped an application and this application is a bit complexe to configure: several DBs, some parameters that depends on the system (such as log files path) and so on. These configuration item are stored in the .config file. Now, I want to distribute my application. So I built a setup project for it. My problem is that the msi file contains my .config parameters which will not work on an other system. The simple solution is to edit manually the config file after install, which is not very convenient. I was wondering if there is a way to automaticaly add screens in the setup wizard to configure the application and write the config file while installing. tahnks in advance.

      J Offline
      J Offline
      James T Johnson
      wrote on last edited by
      #2

      I don't think the setup stuff that comes with VS.NET can do this directly. You would have to create some custom actions which would then do the work of editing the .config file. Some time last year I tried to create a custom action, but eventually gave up on it. I can't remember what I was trying to do though. James "I despise the city and much prefer being where a traffic jam means a line-up at McDonald's" Me when telling a friend why I wouldn't want to live with him

      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