Click here to Skip to main content
11,575,925 members (57,649 online)
Click here to Skip to main content

Tagged as

Visual Studio Deployment Setup: Disable Installation Folder Selection Dialog

, 8 Aug 2012 CPOL 16K 7
Rate this:
Please Sign up or sign in to vote.
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:

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.

License

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

Share

About the Author

MAU787
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 Pin
MAU7871-Jan-13 23:42
memberMAU7871-Jan-13 23:42 
GeneralRe: My vote of 5 Pin
supernorb6-Apr-13 11:22
membersupernorb6-Apr-13 11:22 
GeneralRe: My vote of 5 Pin
MAU78712-Apr-13 1:10
memberMAU78712-Apr-13 1:10 
GeneralRe: My vote of 5 Pin
supernorb18-Apr-13 2:33
membersupernorb18-Apr-13 2:33 
GeneralRe: My vote of 5 Pin
MAU7872-May-13 19:14
memberMAU7872-May-13 19:14 
GeneralRe: My vote of 5 Pin
supernorb2-May-13 19:31
membersupernorb2-May-13 19:31 
GeneralMy vote of 5 Pin
Volynsky Alex9-Aug-12 4:59
memberVolynsky Alex9-Aug-12 4:59 
GeneralRe: My vote of 5 Pin
MAU7879-Aug-12 22:46
memberMAU7879-Aug-12 22:46 
GeneralRe: My vote of 5 Pin
Volynsky Alex9-Aug-12 23:12
memberVolynsky 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 | Terms of Use | Mobile
Web03 | 2.8.150603.1 | Last Updated 9 Aug 2012
Article Copyright 2012 by MAU787
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid