[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 310
  • Last Modified:

Setup Project, Getting data from user


I am trying to make a  setup project in c# (visual studio 2008).

During setup, I want the user to choose a specific folder. After that, setup should write that folder name  value to my app.config file.

That being said; I don't know how to make an interactive setup project.

2 Solutions
käµfm³d 👽Commented:
Folder selection should be automatically an option when you create a setup project. As far as writing to your app.config, you will need to add a custom action to your setup project.

Select the setup project from within Solution Explorer and right-click it. Then go to the View menu, then Custom Actions. Since you want to write after the program has been successfully installed, right click on the Commit folder and choose Add Custom Action. There will be a dialog box allowing you to select a file or script to be run. You could write a script or executable to locate your app.config and write the value which you can package into the setup project to be run after install.
Anurag ThakurCommented:
parabellumAuthor Commented:
Thanks both answers helped me

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now