windows-installer

Increment version number in advanced installer

I read a little of the help for my advanced installer 6.5.1 and couldn't find a way to change the version string except by hand. ...

What is the maximum number of characters that can be stored in a Windows Installer property.

I have googled quite a bit and I cannot find the answer. So how many characters can be stored in a Windows Installer property value. If you give an answer can you provide the source of the answer? ...

Recommended resources for learning about Windows Installer

Can you recommend any resources for learning about Windows Installer? The best book I've found is "The Definitive Guide to Windows Installer" by Phil Wilson, but it's not very beginner friendly. I've been asked to make recommendations for those wishing to 'get up to speed' quickly and don't know what to recommend beyond that book and a...

How to deploy multiple projects in a single MSI?

I have 3 projects in my solution that I want to deploy. Is there a nice and quick way of using Visual Studio's setup projects to deploy all three apps using one MSI and letting the user decide which apps he wants to install during the install process? I have setup projects for the 3 individual apps, I also have an overarching setup pro...

Including all dependencies

I'm just starting out with WiX as I need to be able to automate building an MSI on our CI server. Is there anyway to automatically include all the dependencies of a project? ...

Installing Capicom without SelfReg: Wix Custom Actions Not Found (Err 2721)

After following the advice in this question successfully, I added a couple additional lines of code for another custom action. This one is intended to call regsvr32 on the copy of capicom which I've tried to put in the user's system folder. However, I'm getting error 2721, which seems to be a custom action not found error, from what I'...

VDPROJ auto upgrading vs. uninstall/reinstall

I've seen a confusing behavior regarding the MSI files generated by a VDPROJ file. If I build my MSI in Visual Studio and then right-click and pick "Install" from within Visual Studio, it will automagically uninstall any version that is already installed and then install the new MSI. However, if take the generated MSI and run it direct...

Adding License information to NSIS installer

We distribute the software created by my group via Windows installers generated via NSIS. We generate our NSIS configuration files from a python script written by a developer who no longer works with us, so we currently do not have anyone on staff who knows how to write NSIS config files. I have been tasked with modifying this script t...

How do I check if Windows Installer 3.1 or higher is installed?

I need to know this since this is a pre-req for .NET 3.5 and if I'm including the .NET bootstrapper, I should also see if Windows Installer 3.1 is needed. Right now I'm checking for the registry key: HKEY_ LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB893803v2 (Space added because for some reason it made "LOCAL" italicized ...

Simplest solution to replace a tiny file inside an MSI?

Many of our customers have access to InstallShield, WISE or AdminStudio. These aren't a problem. I'm hoping there is some way I can provide our smaller customers without access to commercial repackaging tools a freely available set of tools and steps to do the file replacement themselves. Only need to replace a single configuration file...

How to add a WIX custom action that happens only on uninstall (via MSI)?

Hello, I would like to modify an MSI installer (created through WIX) to delete an entire directory on uninstall. I understand the there RemoveFile and RemoveFolder options in WIX, but these are not robust enough to recursively delete an entire folder that has content created after the installation. I noticed the similar entry here (h...

Visual Studio 2008 Installer Project - Custom Actions not firing

I can't seem to get a custom action working. I might be doing this wrong. Here's what I'm trying to do: I'd like to run a custom action in my application install (Visual Studio Installer project) that runs an executable. The executable simply does some system.io filecopy tasks, and I've confirmed that the executable when ran by itsel...

Installer::OpenDatabase() produces a type error with msiOpenDatabaseModeTransact.

The following code produces an error hr=0x80020005 (wrong type). #import <msi.dll> using namespace WindowsInstaller; main() { ::CoInitialize(NULL); InstallerPtr pInstaller("WindowsInstaller.Installer"); DatabasePtr pDB = pInstaller->OpenDatabase( "c:\\foo\\bar.msi", msiOpenDatabaseModeTransact); } I think...

C# Generic Setup Wizard

I have been tasked with creating a program what will create take files in specified folders and create an installer based on those files. For example, having a folder for "All User's Desktop", "Start menu", "Application Data", and "Program Files" My boss wants to put the files into each folder, then click a button and it automatically ...

How do I show Error Message using Managed Custom Actions with Windows Installer

I am writing a managed custom action. I am using the DTF Framework from Windows Installer Xml to wrap the managed dll into a usable CA dll. The CA does what it is supposed to, but I am still having trouble with error handling: Dim record As New Record(1) ' Field 0 intentionally left blank ' Field 1 contains error number record(1) = 275...

Debug Installshield pendingfilerenameoperations that cause a reboot

Hi, Starting with a already existing installscript 11.5 installer, we created a update installer (differential installer). Given: V1 (first version of the software) V2 (second version of the software) V2P (differential installer between V1 and V2 If I install V1 and deinstall it, no reboot is required If I install V2 and deinstal...

How-To: Copy dependent assembly in case it is not in GAC?

I am building a Setup Package using VS2008. This is a regular setup package installing a COM Add-In app for Outlook. It works Ok, so far. However I need to improve it a little... The story is that installation package copies all dependent assemblies into the installation folder of the add-in. For example, the COM Add-In depends on Mic...

How to schedule a deferred custom action from an immediate custom action in Wix/DTF?

I've seen statements to the effect that it is possible, even commonplace, to reference an immediate custom action from a .wxs file, and to have that custom action schedule subsequent (deferred) custom actions. What I don't know is what the code looks like that does this. Anyone? ...

Windows installer 4.5 and Sql Server 2005?

I de-installed sql server 2005 express some time ago when I installed sql server 2008 express. Doing that install required windows installer 4.5. Now I discover a reason to have sql server 2005 express again. (to reconnect to the outlook Business Contact Manager which requres it to connect to the default MSSQL\MSSMLBIZ database) How...

Automatic Program installer

hi is anyone know any program that make all installation in one button ? i want to press one button and to install FrameWork...CristallReport...MDAC... and so on.. thank's for any help ...