setup-project

Visual Studio Setup Project failing to add keys to registry

Hello, I'm creating a setup pacakage in Visual Studio 2008 to register a COM component and one of the actions is to add a few keys to the registry. The odd thing about it is when I run the installer it creates the key hierarchy correctly but the last key in the hierarchy it creates has the wrong GUID... whereas its right in the installe...

setup project with windows service installing more then one to different directories

I am writing a service that will run on a machine to push and pull files from one location to another. I want to create an installer that will allow the user to name the service during setup (and description later.) I found this post (http://stackoverflow.com/questions/1070885/specify-windows-service-name-on-install-with-setup-project)...

How to tell MSI not to ovewrite existing file in Setup & Deployment Project in VS2005?

Hi, I've got a Setup & Deployment Project in VS2005. One of the files that i'm installing is a SQLite data file. I'm about to release a new version for the software, but i found that if i run the update on existing installation it overwrites the data file. I've got an updated data file in the setup project so it's newer than already i...

Deployment of SQL compact Edition (SDF files) using Setup project

Hi, I have a C#.NET desktop application using SQL Compact edition as data store. The application should be used by any user on the machine and all should be seeing the same data ( data should not different per user). I am wondering where should I deploy the SDF file? User's Personal data folder (My Documents) means each user will have...

What is the difference between the "Checkboxes (A)" and "Checkboxes (B)" dialogs in a Visual Studio setup project?

In a Visual Studio Setup & Deployment Project, I can design the user interface for the installer. I have a welcome screen, a license acceptance dialog, and then an installation location dialog. All good. I want to include one more dialog, to confirm changing of file associations. I think the way to do this is with a dialog that has a...

In a Visual Studio Setup Project, How do I make update of the Registry conditional on a Checkbox dialog?

Currently I use Registry Settings within the Setup Project to set the file associations and the icon for the associated files for my application. In the generic VS Setup project, the update to the registry is done always. How can I make the update to the registry conditional on the state of a checkbox dialog? ...

In a Visual Studio setup project, How do I generate an uninstall script?

I have a Visual Studio setup project. Upon installation, it creates an uninstall batch file in the application folder. IF the user wants to uninstall the product, he can go to "Add/Remove Programs", or he can just double-click the uninstall.cmd. The contents are: %windir%\system32\msiexec /x {CC3EB7BF-DD82-48B9-8EC5-1B0B62B6D285} ...

VS Setup Project; How to restore a registry value on uninstall?

I have a setup project in Visual Studio. As part of the regular installation, it creates/updates some keys and values in the Windows Registry. How can I make the updates reversible? you may say "they are reversible", but I don't think so. Here's how I think it works: USe the VS designer to specify which Registry Keys and Values you...

Custom Action defined as script - can I make this a "Binary Table Stream"?

I have sevevral custom actions as part of an MSI project, defined in vS2008. The actions are defined as short Javascripts. There are two that run on install, and one that runs on uninstall. Everything works fine. These scripts gets installed as regular files in the Application Folder. The scripts that run during installation, dele...

How to get big Vista icons for a shortcut created with a VS2008 Setup and Deployment project?

First I made an app and I set its application icon to a icon I made. That icon has 256x256px in it, and it works good in windows vista (256 size gets used when really large icon). I've made a setup project, that installs the app I made, and I added a shortcut to the desktop. The icon of the shortcut won't get big, it stays +- 48x48 maxi...

SQL Server as Prerequisite in VS Setup Project error in Windows Vista

Hello. I'm having problems installing SQL Server as prerequisite on my Visual Studio Setup application on Windows Vista. I' able to install it if I install Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) and then run the setup, but that's not what I need because I need that the Microsoft Visual C++ 2008 SP1 Redistributable P...

Visual Studio 2008 PUBLISH installer installs older version

Hi, I decided to use the Publish feature in Visual Studio. I'm also using the update feature. It worked up till version 1.0.0.6 and now it's just stuck there. I can uninstall the App but it always re-installs it to that version. I've actually had a similar problem with the normal Application Setup. Any help would be appreciated. Than...

How to add a shortcut to the exe file in the setup project?

How to add a shortcut to an exe file in the setup? I've created an app and a setup project for it. I've followed the steps here but it doesn't work - it creates shortcut to the original file (C:....\Visual Studio 2008\Projects...") so it works only on my computer. It doesn't point to the real output file. ...

Find web.config location

Given virtual directory and port can you find the actual path of a web application? I can get the virtual directory and port via a visual studio setup project, and I'd like to make some modification to the web.config file after install (using a custom action). ...

Is there a need to update a custom action's binary after each build?

I have created a c++ custom action for a setup-project application in VS Team System 2008. Using ORCA I implemented it and inserted the binary image of the custom action. This works okay. Does the binary object remain intact after each subsequent build? i.e. I assume I do not need to update the binary data unless I make a change to t...

How can I get an msi (VS Setup Project) to install a Windows component?

I have a Visual Studio Setup project that creates a Message Queue (MSMQ). It fails on computers where the Message Queue component is not installed. Is it possible to get the installer to enable/add this Windows Component? ...

Lost in the Visual Studio maze?

Where can I find the ARPCOMMENTS through the Visual Studio GUI in a .NET solution with a setup project? The value of ARPCOMMENTS shows up when "Click here for support information." is clicked in Control Panel "Add or Remove Programs". I have changed it once, but I forgot where it is. ...

How to add an application to startup using installer?

Hi, I am making an installer using "setup" project in VS2005. I want the project output - application.exe to be added to startup by modifying this registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run. How can I do in the setup project.Thanks ...

COM registration error in Visual Studio 2008 setup project

I'd like to register Outlook Redemption as an isolated COM component using a Visual Studio 2008 setup project. After adding Redemption.dll to my setup project, if I choose either vsdrfCOMRelativePath or vsdrfCOM options in Properties > Register, I get the following error. Exception EAccessViolation in module msvbver.dll at 0000A15F. ...

Visual Studio: Conditionally Create Shortcuts in Setup Project?

I am working on a Setup Project in Visual Studio, and I would like the user to be able to specify whether to create a Desktop Shortcut and/or a Start Menu shortcut to the program by using checkboxes. I am able to have the installer to create working shortcuts in the appropriate locations, and I added a dialog containing checkboxes to th...