windows-installer

How to add an entry to registry Run key via VS2008 setup and deployment

I'm creating a VS2008 installer script for my project. I want to add a value to HKCU\Software\Microsoft\Windows\CurrentVersion\Run to run my EXE at start up. Is there a way I can specify a reference to my executable ("Primary output from Project"), so that the installer script inserts the correct value into the registry when it runs? ...

how can I change registry values at installation time with windows installer?

Hi, I have created a deployment project using VS 2005. By default, files are installed in AppDataFolder. There are also 2 string values added to the registry during the installation. These registry values represent the path to some dll files found in the install dir. When the user chooses the default installation directory everything wor...

Finding out windows installer information

How can i using c# find out information on the windows installer(msi) program was installed on ? to try to explain this better, i want to be able to look at a program say WINWORD.EXE and find information on the windows installer it was installed with. i know windows keep a log of this in the registery Thank you ...

Which are the best sources for learning the Windows Installer technology?

Hi, I would like to know if you could share some (trusted) sources of information (books, URLs) that you consider the most relevant for learning Windows Installer. They could be for starting on this technology or for an advanced or professional level of knowledge. I'll be really grateful. UPDATE: I would like to know where a future dep...

Weired behavior of MSI installation

I have created a msi installer using Wise Installation Express 7.0 Recently one client has reported and issue after our new update on Win 7 32 bit: He launch our update msi, which in turn ask him to remove the previous installation and it removes successfully. This should not happen as I have changed the product code of MSI and its a n...

Have Installation Detect a Drive for Installation

We have a requirement for a C drive or D drive installation for one of our programs. What I need the installation to do is if the installation detect a D drive that has a certain folder structure like so: D:\AppData If it finds it, it will install it there. If it doesn't find it, it will install it here: C:\AppData I am using VS 2008...

Office 2007 PIA registry entry installed indication

I must install Office 2007 PIA as a prerequisite along with my Office 2007 add-in. The bootstrapper I am using requires me to specify a registry entry to be checked if prerequisite is installed or not. Normally, various packages set Installed DWORD value to 1 in some registry path to indicate that a package is installed. Which registry...

How do you create a shortcut to a folder in Windows Installer?

I need to install a shortcut that opens one of the folders that I'm creating. What mist I do to create a shortcut whose target is a folder instead of a file? I tried making the folder the shortcut's target, but when I try to install the application, Windows Installer tells me that the shortcut can't be created even though both the destin...

Writing to AppData from a Setup & Deployment Project

I am updating an existing application that is installed via a Setup and Deployment Project. The old application copied a config and a database file into the application's folder in Program Files during installation. This worked fine on Win 2000 and Win Xp (under a local admin account). In Windows 7, however, not only is this frowned u...

windows installer for COM component

I have a C++ activex control that I need to make an installer for. It needs to drop the dll and make some registry keys. I have about 6 .RGS files which I made for self-registration via regsvr32, which work. To do an installer I am manually porting the RGS scripts into the visual studio 2008 windows installer registry GUI. I feel like ...

Install file conditionally through msi (Internal Error 2732)

I want to install a plugins dll to a pre-installed application. Pre-installed application has its installed location in registry from where I can get its location. If I cannot found the registry. I simply don't want to install the plugin file. I am using Wise Installation express 7.4.0.214. What I have done is put a System search on the...

Notify icon not always appearing in the system tray after a setup, but still functional

First of all, when I start the application normally (double-clicking on the exe), it works perfectly: the notify icon is always appearing in the system tray. It also works well when the application is launched at the end of an msi Setup (http://stackoverflow.com/questions/1668274/run-exe-after-msi-installation). However, when the applic...

Upgrade install only leaves files new to the new version, deleting files common to both old and new

I have a Web Application and Deployment Project that was originally built in VS 2008 that installed version 1.51 of my application. I am now using VS 2010 (and my app requires .Net 4 and Installer 4.5) and updated my application and the deployment project to 1.52. If I run the setup on a virgin system, everything works as expected. If ...

XP/2003 Windows Installer 4.5 differential patching problem

Hello, I've encountered a problem regarding the Windows Installer program. I am using one of the popular install wizard programs, which use the MSI installation engine. It provides the differential patching capabilities, which is of course supported by the Windows Installer. However, I've encountered a problem while trying to apply pat...

Custom DefaultLocation for Application Folder Fails Install For Non-existent Drive

I'm developing a Setup and Deployment project for a .NET application in VS 2008. I've been asked to set the DefaultLocation property of the Application Folder to: e:\SomeFolderName\bin Our production systems have an e: drive. However, when I run the installer on a test system that does not have an e: drive, the installer fails with ...

vs2005 windows installer project add browse button to dialog

I'm creating an installer for a windows application that I've built. I added a dialog to prompt the user for a folder location needed in my app. Is there a simply way to add a browse button to the dialog for the user to select the folder on his hard drive? ...

make my activex control removable from manage addons

I have an activex control. I want my users to be able to remove it. This MS article implies that you can remove controls if you installed them yourself: You can only delete ActiveX controls that you have downloaded and installed. You can't delete ActiveX controls that were preinstalled or add-ons of any kind, but you can ...

Dynamically update app.config file using WiX

I have an msi built using WiX. Part of the installer collects some settings that will be entered into the app.config file of the installed app. Now it works fine if I define Now my question is this: is there a way I can dynamically create this util:XmlFile tag (e.g. from a custom action) so that I don't have to hard code it in to the ...

How can I replace a merge module with a <file>?

Hi all, I had a problem installing my project on vista and 7 which I mentioned before here. http://stackoverflow.com/questions/3617689/how-to-cope-with-install-error-1920-about-winsxs-merge-modules-in-vista-and-7 I see that post for a problem may be similar of mine, and there is a solutuion author tried. http://stackoverflow.com/quest...

Why is registry value not installing?

I am using the Visual Studio 2008 Installer. I am trying to set a registry value and it is included in the Setup project. After I install the application using the setup that I created, the registry value doesn't show. I have followed all the steps listed here. Why could this be happening? ...