Setup Project, Getting data from user

Posted on 2009-04-27
Last Modified: 2013-12-17


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.

Question by:parabellum
    LVL 74

    Accepted Solution

    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.
    LVL 26

    Assisted Solution

    by:Anurag Thakur

    Author Comment

    Thanks both answers helped me

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Cobalt Digital Marketing began using the Scrum Framework development process in summer 2009.  We hired a consultant to train the teams, observe meetings, and answer questions. He recommended that we begin using one-week sprints for several reason…
    Transparency shows that a company is the kind of business that it wants people to think it is.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    This video discusses moving either the default database or any database to a new volume.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now