Click here to Skip to main content
15,893,594 members
Articles / .NET
Tip/Trick

Visual Studio Deployment Setup: Disable Installation Folder Selection Dialog

Rate me:
Please Sign up or sign in to vote.
4.78/5 (5 votes)
8 Aug 2012CPOL1 min read 45.4K   9   9
Visual Studio deployment setup: disable installation folder selection dialog

Introduction

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

Background

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:

Image 1

Then go to Setup and right click it.

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

Image 2

It will display this:

Image 3

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:

Image 4

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.

License

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


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

Comments and Discussions

 
GeneralMy vote of 5 Pin
MAU7871-Jan-13 23:42
MAU7871-Jan-13 23:42 
GeneralRe: My vote of 5 Pin
supernorb6-Apr-13 11:22
supernorb6-Apr-13 11:22 
GeneralRe: My vote of 5 Pin
MAU78712-Apr-13 1:10
MAU78712-Apr-13 1:10 
GeneralRe: My vote of 5 Pin
supernorb18-Apr-13 2:33
supernorb18-Apr-13 2:33 
GeneralRe: My vote of 5 Pin
MAU7872-May-13 19:14
MAU7872-May-13 19:14 
GeneralRe: My vote of 5 Pin
supernorb2-May-13 19:31
supernorb2-May-13 19:31 
I've also read that article before (I've googled much about this problem) and the result is yes, it can help me a little, such as editing the existing dialogs in my .msi file, which enables me to translate English to Vietnamese (my language) and create a Vietnamese setup version. It works great for that (although it requires me to edit much and consume my time). But it's still limited in what it can do for me. What I want more is the Look and Feel of my dialogs. I want my dialogs to be like DevExpress UI or DotNetBar and Telerik UI, it can't help with that requirement. Anyway, thank you for your link! Smile | :)
GeneralMy vote of 5 Pin
Volynsky Alex9-Aug-12 4:59
professionalVolynsky Alex9-Aug-12 4:59 
GeneralRe: My vote of 5 Pin
MAU7879-Aug-12 22:46
MAU7879-Aug-12 22:46 
GeneralRe: My vote of 5 Pin
Volynsky Alex9-Aug-12 23:12
professionalVolynsky Alex9-Aug-12 23:12 

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

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