Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

Page History: Installer Projects - Visual Studio

Compare Page Revisions



« Older Revision - Back to Page History - Newer Revision »


Page Revision: Wed, Jun 06, 2012, 11:05 AM


Overview

This article gives an overview of working with Installer projects within Visual Studio. Refer also to Web.Config Transformations with Web Setup Project - Visual Studio.

Installer projects are primarily declarative in nature, with the exception of Installer Classes, which are included in your application code.

ItemHow to Configure
Files to installView menu > Editor > File System
Files NOT to installSolution Explorer > Installer project > "Content Files" or "Primary output" > right-click > Exclude filter
Registry entriesView menu > Editor > Registry
File Types to createView menu > Editor > File Types
Installer dialogsView menu > Editor > User Interface
Custom actionsView menu > Editor > Custom Actions
Launch conditionsView menu > Editor > Launch Conditions
PrerequisitesSolution Explorer > Installer Project > right-click > Properties > Prerequisites button

Walk-Throughs

Changing a Connection String Based on User Input

1. Include a "Textboxes" dialog in your User Interface.

2. For one of the textboxes, specify the following. (This will set the TARGETVDIR property to the name of the virtual directory for your website.)

EditNPropertyTARGETVDIR
EditNValue(default value)
EditNVisibleFalse

3. For a second textbox, specify the following (where N = 1-4).

EditNLabelSQL Server Instance
EditNPropertySQLSERVERINSTANCE
EditNValue(default value)
EditNVisibleTrue

4. Add a Custom Action on "Primary Output...", and in its CustomActionData property, specify "/SqlSvr=SQLSERVERINSTANCE". (This will refer to the value in the textbox from the previous step.

5. To your application code, add an installer class. Within its override of the the Install method,

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2023, Patrick Jasinski.