Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 665833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:45:07+00:00 2026-05-13T23:45:07+00:00

Disclaimer: this is not a question about how to install asp.net or an application

  • 0

Disclaimer: this is not a question about how to install asp.net or an application using it!

Hi!

I am pretty sure many of you have once installed some kind of forum, blog or CMS (mostly PHP powered applications). All of these contain a folder mostly named “install” where (after you copied the files to the webserver) point your browser to to complete the installation by entering for example database information (servername, username, password, …). After that, most applications suggest that you delete this folder or at least change the permissions so nobody from the outside can access it anymore.

Now to my question: how would you go about that in the asp.net world? I don’t really like the “install folder”-approach and I thought there might be a different mechanism for .net/IIS. The person installing my application should be able to enter his database information as painless as possible, which should ultimatively be stored in the web.config file.

If it makes a difference, I am using asp.net MVC.

Thanks for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T23:45:07+00:00Added an answer on May 13, 2026 at 11:45 pm

    We use an installer program (NSIS) to collect custom values. After the files have been copied to the deployment folder, we run some IIS scripts to create the directories, setup host headers, ports etc, and then we write the web.config using variable substituion with the details the customer supplied in the installer.

    Is also creates the databsae and setups up the initial user details based on customer input to the installer.

    EDIT:

    Check out

    http://bloggingabout.net/blogs/dennis/archive/2008/05/16/programmatically-creating-an-iis7-site.aspx

    For an exmaple on how to create an IIS site with C#.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

( Disclaimer: This question is not specific to ASP.NET) I have a control which
Disclaimer: This question is not about fixing visual studio So, I've used VSS for
Disclaimer This is not a question about whether we should be escaping for database
( DISCLAIMER : This is NOT a question about understanding the difference between abstract
Disclaimer: this question may not have practical value, it's more of a puzzle/curiosity question.
Disclaimer: not sure this is WordPress related or not. I'm following a simple tutorial
Disclaimer: This question is strictly academic. The example I'm about to give is probably
DISCLAIMER: This question was not meant to be argumentative! What is fastest and less
Disclaimer: this question is purely informational and does not represent an actual problem I'm
Disclaimer When I wrote this question I was wrong about the behavior of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.