windows-installer

Why won't Windows Installer use the UI in the .msi file during removal?

Has anyone been able to get Windows Installer to use the InstallUISequence table during removal? I started with an MSI file produced by the Visual Studio msi builder, decompiled it into WiX source code and handcrafted it, but I cannot get the installer to use my UI during removal. It insists on using a default UI provided by Windo...

.NET 2.0 Process Elevation for App Installation

We have an application written in both C++ and .NET that installs for all users in the Program Files folder. This application downloads new versions of itself (as MSI installers) and spawns the new installer process to replace itself. The install process as it exists today: Copy an install manager app (C#, .NET 2.0) to the temp direct...

Visual Studio Setup Project Installer Prerequisite for SQL Server CE

I have a Setup Project in my solution in Visual Studio 2008 SP1. The application installs fine but it is not loading my prerequisite of SQL Server CE. I have the following configurations set: Do I need to do anything else, like with a Custom Action or anything like that? Thanks. ...

Chained MSI Installers Tool

I'm looking for a tool (preferably not InstallShield, and also preferably cheap/Free) that supports Chained MSI Installations. I've got several small installations that need to be able to be deployed separately, but also as one group, and I'd like to not have to maintain multiple installers. It looks like I need Windows Installer 4.5 t...

Managing Dependency Hell with WiX and C#

We are on the eve of product launch, and at the last minute I am being bombarded with crash reports that appear to be related to our installer, which is a WiX3 project with separate outputs for x86 and x64 builds. These have been an ongoing problem that I always thought were fixed, only to find out that they were still lurking. The prod...

How do I pass custom action data from a Visual Studio Setup MSI to an output project via a Merge module

I have a fully working Setup project within Visual Studio 2008 that takes inputs from a UI and passes them via a Custom Action to the output - this works perfectly. Now I have to change this so that the UI is still in a setup project but that the output is within a merge module. The current Custom Action Data looks much like the follow...

MSI Installer start auto-repair when service starts

I have a WiX based MSI that installs a service and some shortcuts (and lots of other files that don't). The shortcut is created as described in the WiX docs with a registry key under HKCU as the key file. This is an all users install, but to get past ICE38, this registry key has to be under the current user. When the service starts...

How to create share for a whole drive under WiX?

I would like to create a share for a whole drive in my WiX installer project. The default approach for share creation works just fine for folders, but not for drives! The following code snippet illustrates the problem: <!-- Works! --> <Property Id="MySharePath"><![CDATA[X:\ROOT]]></Property> <!-- Works NOT! <Property Id="MySharePath"><!...

Releasing WinForm Program Updates

Hello, Another quick question. I'd like to release some updates for a WinForm program, but to date I have simply released an all-new compile. People have to un-install the old version and install the new version. EDIT: I'm using an auto-generated InstalWizard. It preserves my file strucutre and places the [PrimaryProgramOutput] in ...

Does Windows Installer provide a method to update applications?

Does Windows installer provide a built-in method for updating applications, or do I have to write this myself in my application code? For example, ClickOnce can automatically update my application for me; I do not have to write code specifically for this in my application. Is similar functionality available in Windows Installer or is it...

Visual Studio: How to protect file from removal on uninstall

Folks, I am creating an installer project in Visual Studio. This is done using a project of type "Setup and Deployment". I lay out the file structure of my final install in the "File System" View of the project. Now, some of the files I create as part of my install are updated while my application is used. I would like these files to ...

Uninstall of VS2010 RC gets stuck on uninstall of Crystal Reports templates for VS2010

The progress bar is stuck at 100%. Any suggestions for the best/cleanest way torwards a healthy install of VS2010 Final Release? I have this problem all the time with the MS Installer (MSIEXEC.exe/setup.exe). Previously, reinstalling the MS Installer didn't help. ...

How do you override ProgramFilesFolder in an msi?

I have an msi file that I am trying to install in a place other than C:\Program Files. The directory table shows that ProgramFilesFolder is used as the default install directory. From reading this blog post I understand that ProgramFilesFolder is a standard directory so passing TARGETDIR as a property to the installer will not change th...

Can I generate a value in an installer and write it to the app.config ?

I'm working on an installer project, during the install process I'd like the user to create a "root" account. I'd like to have the root password become a part of the app.config's file, preferably the encrypted section. Is such a thing possible? Are there any known solutions to this problem? Best regards ...

Creating Windows Desktop Icon in CMake + CPack + NSIS

I'm using NSIS package generator in CMake 2.8.1 to distribute a Qt application. Everything is working fine... except the use of CPACK_CREATE_DESKTOP_LINKS to create a desktop link to the application. I've looked through the CMake source (including it's own "bootstrap" installation definition for windows), and as far as I can tell I'm do...

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...

Why is the Windows Installer RemoveFiles action failing when User Account Control is enabled?

I have noticed some strange behaviour with our application's installer which I am struggling to understand. I have managed to reproduce the behaviour with a simple test installer so I will use this to explain what is going on. The installer is per-machine and installs a single file into a directory underneath "Program Files". The direct...

Setup filename convention? setup.exe vs install.exe vs others

Hi, I'm going to build an installer to deploy my application which is a Windows executable file(not a MSI file). I'm using NSIS. This application targets French people and "install" word is close to "installation" in French. Is there a filename convention? What is the best choice for you? It seems that "setup.exe" is the most popular n...

I'm referencing an WiX extension in a WiX library project -- how do I avoid having to reference this extension in other projects that use this wixlib?

I'm referencing a WiX extension in a WiX library project. This WiX library project is itself referenced by my main WiX MSI project. Why does the main project have to also reference the WiX extension, even though it doesn't directly need it? I'd like to keep my wixlib's as self-contained as possible, so that other projects that use them ...

showing error message of missing VB dll

On Windows 7 (32 bits), i have downloaded and installed the windows desktop java application using windows installer of that application. When i re-open application it complains about a missing VB dll. What may be reason complains for missing VB dll and how can i resolved? Any help will be appreciated. FYI: The installer is build us...