windows-installer

MSI not running the current version of the code in .NET Setup project.

I'm not sure what happened, but my installer is in a weird state--when I install my MSI, it doesn't seem to be running the current version of the code (I'm using Custom Actions). I verified it by placing some MessageBox.Shows and sure enough, they are not popping up. It's possible I may have had a few unsuccessful installs previously...

How to set a check box to "unchecked" from the msiexec command line?

I have an msi (authored with WIX) that has a check box bound to a custom property (call it MY_PROPERTY). I would like to run this msi from the command line, specifying 0 (unchecked) or 1 (checked) for this property. My script will determine the appropriate value (based on the environment) and inject that value into the msiexec command ...

[WiX] Is there a way to create a patch that is identical to doing a full install of the newer version?

I'm trying to create patches using the method from this tutorial. An issue I'm running into is that I can't install a new patch on top of a previous patch. I can full install Version A,then patch to Version B. After that I can't patch to Version C. I can full install Version B, then patch to Version C. Currently we just do full insta...

MSI package without UAC administrative privileges

I want to install an outlook add-in for a user who does not have administrative privileges. I used MsiInfo.exe myAddIn.msi -W 8 to author package without the UAC dialog box. It does not ask for the admin privileges but during the installation it gives error stating that one of my mycustomxyz.dll not found. When i change the word count ...

Windows Installer Rollback install directory files cleanup problem

Hello All, I am facing problem in Windows Installer Rollback functionality. I have created an installer class and it launches custom action [installer type] to create database, If user wants to rollback I used InstallerException with custom message, but if i do so than in the install directory some temp files and CreateDatabase.InstallS...

Conditional installation with Wix

Is it possible to have a conditional installation configuration, slaved wth the Visual Studio configuration environment? For example, selecting DEBUG or RELEASE configuration, Wix selects different executables in the built installation. Basically I shall build different installations from the same projects, but they differs by the comp...

How to create a runnable setup out of bootstrapper packages?

I would like to install a .NET 4.0 application on the user's machine that does not meet certain prerequisites. I need to be able to define the installation order of these prerequisites in my installer, because they depend on each other (.NET 4.0, Windows Installer 4.5, SQL Server 2008 R2 and others). AFAIK this is doable via the follow...

Installing a new version of a deployment project over old version

I have a deployment project which will not let me install over an older version. The msi file says to uninstall the program first from Add/Remove programs. This is not a good user experience. How can I do it so that the installer will simply remove the software first and then install the new version? ...

What size should the background image in an MSI be?

I am trying to create a Windows Installer package using Wix. I'm getting a lot of conflicting information about what size my custom background should be--the Wix documentation suggests a size of 500 x 314 pixels, but this leads to slight image distortion in the installer. I believe that I may be indirectly using the SplashBitmap propert...

Msiexec REINSTALL=ALL REINSTALLMODE=vamus is not working

In my installer (created using WiX) I forcefully re install everything using msiexec REINSTALL=ALL REINSTALLMODE=vamus /qr /i setup.msi command. This was working fine but after adding a new component (an exe file) it stopped working. nw if I try this command it doesn't replaces the file in installation directory. To solve this I tried a...

Must visual studio setup projects satisfy project output dependencies from obj directory?

My Visual Studio 2005 setup project (vdproj) is satisfying it's Project Output dependency using files in the obj directory. I expected it to pull from the bin directory. This is a problem because I have a post build step that modifies the project output (it ILMerges all dlls into a single exe, if it matters) and updates the bin copy on...

Handling Uninstall for Current User Installation

I have an addin for outlook which is installer per user.The installer copies the dlls and user specific registry entries.I using VS2008 vdproj for generating msi installer. When two user on a machine install this addin and if one of the user uninstall it, all the dlls will be removed from the ProgramFiles/App directory. Is there a wor...

Should an installer run automatically with a setup project

I have a windows app (app.exe) build with visual studio 2008, for which I have created a custom installer class. When I run installutil.exe on app.exe, the custom installer is executed OK. I then added a setup & deployment project to create the windows installer file app.msi - this works fine but it does not run the custom installer. ...

GAC an assembly without embedding it within the MSI

I want to GAC an assembly already present on target machines, I know where this assembly is on every machine (you can assume, that path is static for all target machines and wont change and that I am the owner of this assembly) I do not want to include the assembly to be GAC'd in the MSI since it can change with each solution deployment ...

Is MsiOpenProduct the correct way to read properties from an installed product?

Given an MSI product code I want to get the upgrade code (among other properties) from an already installed product. I have tried this by calling the MsiOpenProduct method, followed by MsiGetProductProperty(). An (abbreviated) example looks like this: MSIHANDLE handle = NULL; MsiOpenProduct(strProductCode,&handle); CString strUpgradeCod...

Pasting in MSI Installer TextBoxs

We are upgrading our installers to MSI, and have noticed that you can not "right click and paste" into the text boxes. You can however ctrl+v. Is there a setting that you can switch on to enable context menus within the installer? ...

How to copy a file that's in the same directory as the installer

I want to copy a file that's in the same directory as the installer file to the application directory. I can't include the file in the installer. the scenario: I create an installer for my client. the client will distribute the installer to an unknown number of third parties, these third parties will need to change an aspect of the c...

How do I specify Visual Studion Installer Conditions?

I have a Visual Studio Installation Project and I want the Installer to create a specific folder only if a check box on a 'Checkboxes (A)' form that I've added to the project UI is checked. The name of the property for the checkbox is CHECKBOXA1 but I have no idea what to put in the Condition property of the folder so that it only gets c...

VS2008: no symbols when remotely debugging a C# installer class

Following on from Debugging C# Custom Installer Classes, I am attempting to remotely debug a setup process running on another PC. After connecting to the remote msiexec process, the debugger reports that the PDB does not match image. I have verified that remote debugging works by successfully connecting to and debugging a "normal" proce...

MSI merge module from a full MSI package.

Can I reliably create a merge module from a regular MSI package like MySQL to merge it with my own installation? WiX has appropriate tools for that, but what pitfalls should I expect from such translation? What are alternatives for installing other MSI packages from my own package? ...