Click here to Skip to main content
Click here to Skip to main content

Tagged as

Go to top

Visual Studio Deployment Setup: Disable Installation Folder Selection Dialog

, 8 Aug 2012
Rate this:
Please Sign up or sign in to vote.
Visual Studio deployment setup: disable installation folder selection dialog


This tip will explain how to restrict a user from changing installation folder selection while deployment of Visual Studio .NET application setup.


Your Web site is using some files which you want to get installed on clients computer and want to access it. Maybe you want to put your installation folder at some specific location because maybe any other application(website) is going to use files and folder from your installed setup.

You have another option to search for a specific folder but this is the easier one if you force to install it on a given static directory or drive.

Using the Code

Make a setup of your project first.

Then go to the Application Folder and set your static path:

Then go to Setup and right click it.

Go to view->User Interface-> click on it.

It will display this:

Then delete the installation folder from install and administrative install both.

Then build it and install it. It will not ask user for installation path.

If you want to display a default path to user for his information, then you can add the path in welcome text like this:

Points of Interest

Now you don't have to change path from your other application (website) for accessing folders which are installed.

You can also go through this article for more details on deployment.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer
India India
Experience in dot net specifically worked on bio metric devices.

You may also be interested in...

Comments and Discussions

GeneralMy vote of 5 PinmemberMAU7871-Jan-13 23:42 
GeneralRe: My vote of 5 Pinmembersupernorb6-Apr-13 11:22 
GeneralRe: My vote of 5 PinmemberMAU78712-Apr-13 1:10 
GeneralRe: My vote of 5 [modified] Pinmembersupernorb18-Apr-13 2:33 
GeneralRe: My vote of 5 PinmemberMAU7872-May-13 19:14 
GeneralRe: My vote of 5 Pinmembersupernorb2-May-13 19:31 
GeneralMy vote of 5 PinmemberVolynsky Alex9-Aug-12 4:59 
GeneralRe: My vote of 5 PinmemberMAU7879-Aug-12 22:46 
GeneralRe: My vote of 5 PinmemberVolynsky Alex9-Aug-12 23:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web04 | 2.8.140926.1 | Last Updated 9 Aug 2012
Article Copyright 2012 by MAU787
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid