setup-project

Need better information on how to use VS2008 Setup Project to deploy a .NET Win App

MSDN is a nice place to get vague, general information on this, with just a enough detail to make you wish you had more. The best info on MSDN I found was in the section on Windows Home Server (oddly enough), but it wasn't complete enough to be totally useful. Is there another source with some DETAIL on how to create an MSI using a VS2...

Custom web.config in Visual Studio Setup Project

Hi, In the Setup Project I have 2 web.config files: web.config - used during the development and web_dist.config - the one that should be included into Setup Project. I must be sure the the Setup project will NOT include the web.config and will always include web_dist.config. In the File System -> Web Application Folder I have added t...

VS2008 Setup Project for C# Project

I've built app using wmp.dll which is Windows System File in my XP machine. If I tried add outputs of above project to my Setup Project, VS warned that 'wmp.dll' should be excluded because its source file 'C:\WINDOWS\system32\wmp.dll' is under Windows System File Protection. There're three things under 'Detected Dependencies' folder. Mi...

Conditionally include file based on project configuration

Hi, I have a number of editions of the project for which I am making a Visual Studio setup project (installer). For each edition there is a separate license agreement that should be shown in the default License Agreement window. What I want to do is to point the LicenseFile of the License Agreement window to a file somewhere on the cl...

Close Office applications (Word, Excel, Outlook) before install an Office 2007 Add-in

Hello All, How can I close any Office 2007 running application like Word,Excel,Outlook before installing an Office 2007 Add-in in a Visual Studio 2008 Setup Project? Thanks! Martin ...

EntityException: Access to the database file is not allowed

I am working on a Visual Sudio 2010 Setup Project to install an Entity Framework / SQL Compact app. The app needs to install an SDF file on the user's machine. As I understand the Microsoft guidance, I should install the SDF file to a company\application subfolder under C:\ProgramsData on the user's machine, which I have done in the setu...

How to give language option at installation time of my .NET project?

I created one desktop project in C#. I want to know about how it could be used for different languages. I created an resx file for all the forms like that: select particular form goes to the property window set localiztion true select language in which I want to show in particular language. Convert all labels text and other functionalit...

How do I specify the User's LocalAppDataFolder in a VS 2008 setup project?

Basically I am looking for a way to create application data files during setup inside the folder corresponding to: Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) or put another way (for WindowsXP): C:\Documents and Settings\%username%\Local Settings\Application Data I tried the solution suggested here, but ...

How to install other setups before installing the main application using .NET's Setup Project?

Hi, I have created an application for which I want to create an installer using .NET's Setup and Deployment project. The problem is that my application requires certain setups (Drivers, SDKs etc.) to be installed before it. I want these to be installed first and then the main application. How do I do it? ...

Visual studio Setup Project Shortcuts

Hello, I have to projects added to my Setup project in Visual Studio. I have added a shortcut for 1 of my 2 projects, which are included in this Setup project. The shortcut works fine, but i have 2 programs which i want to add Shortcuts for. Is it possible to add 2 Shortcuts, 1 for each of my 2 projects? I added the shortcut through ...

DragDrop registration did not succeed in Setup Project

Hello, we have some installation project in Visual Studio solution (Other project types -> Setup and deployment -> Setup project). This project have other library type project with Installation class named InstallationCore like project output. In user action I call to Install and Uninstall functions of installer of InstallationCore. Inst...

Visual Studio 2008 setup project, fixing the location of installed kit

I've created a setup project in Visual Studio 2008. I would like the installed location DefaultLocation never to be modified by the user during installation, probably by skipping the 'Select Installation Folder' dialog during setup. Is there a way to do this, either in VS2008 (or VS2010) or using an MSI editor such as Orca. Please advise...

Create MSI for slipstream SQL Server 2008 install

I am looking at creating an MSI that will check/install the prerequisites of SQL Server 2008 and after the prerequisites are installed I will start my slipstream 2008 install. I am currently trying to do this through VS 2008 Deployment Projects, but I cannot just simple add the folders of the SQL slipstream into the setup project withou...

How to remove Settings when uninstalling

My program is installed with a Visual Studio Setup project. The program, when run, creates a user.config file in its default location since I'm using Settings. When uninsalling, how do I get the uninstaller to remove that user.config file? Also, how do I cause the uninstaller to remove a folder in %AppData%? ...

How to package .Net framework in Visual Studio project?

I have created a C#/.Net application using visual studio. I have also created an installer project that puts out two files: An MSI file Setup.exe file In my installer project properties I have setup .Net 3.5 as a prerequisite. What I would like my installer to do as as follows: Put out a single file (MSI/exe/whatever) that also i...

Setup Project in Visual Studio 2010 Requires .NET 4.0

When setting up a Setup Project in Visual Studio 2010 and even to I removing all the prerequistes .NET 4.0 is still required on the computer that runs the Installation. Deploying with ClickOnce works but is not an option, but at least it doesn't ask for .NET 4.0. Is there a way to create a Setup Project in Visual Studio 2010 that doesn'...

How to add application folder to %PATH% after installation (VS Setup Project)

I'm looking for a easy way to include application installation folder to a %PATH% environment variable after installation is complete. Visual Studio 2005/2008/2010, Setup Project. Thank you ...

Run exe after msi installation in vista or win7

I am using the script given here http://stackoverflow.com/questions/1668274/run-exe-after-msi-installation It is working fine in xp but it is not launching exe in win7 or vista. Where should I make changes? ...

Visual Studio 2008 setup project, how to block the folders from deleting during Uninstall?

Hi, I have the following problem. After I uninstall the project - all folder is removing. But it contains the files which shouldn't be deleted. What could you advice me? Ideally I would haeve the option which will be proposed to the user while uninstall with checkbox if it is necessary to delete this folder or not. Thank you in advanc...

Setup and Deployment project with custom action doesn't install service

I've created a windows service and a setup and deployment project that I want to use to install the service. I have followed the walkthrough on the MSDN as closely as possible. I've created a custom action for install/commit/rollback/uninstall of type "primary output from ProjectName (Release Any CPU)". When I install the app, it runs ...