msi

How to change the contents of a file included in an *.msi with VBScript

Given an installer generated with a VS2010 Setup Project, I would like to swap out a .NET DLL with another one without changing the name. I am already altering the msi file according to this question, swapping out the contents of an entry in the "Binary" table. I have located the file in question using Orca. It resides in the only cabi...

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

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

MSI: How to speed up ExecuteAction

In my current MSI ExecuteAction takes at least 1m 30s. I created a simple msi (from WiX examples) and it takes about 4 seconds for ExecuteAction. How can I optimize my MSI package, so ExecuteAction will run faster? ...

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

Merge modules and the component GUID

I've read the http://robmensching.com/blog/posts/2003/10/18/Component-Rules-101 blogpost which is very enlightning. However, I still have some questions: What is the scope of a component GUID? How does all this relate when using mergemodules in different installers? Lets say I have two different installers, installing to different fol...

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

MsiGetSummaryInformation always returns invalid parameter error

Hello All, I am trying to set the Template property in the Summary Information Stram but whatever I do, it fails. I can read the property from the handle but can't write it back. I want to generate multilingual copies of the MSI which is built (candled and light) in English. I am able to replace all the respective translated data in all...

Class table generated InprocServer32 value problem.

I'm installing an Active X control that contains some COM servers. I'm using InstallShield's COM Extract at Build option to generate the registry information. This results in a lot of entries in the Registry and Class tables. (The extracted information is pretty much the same using Wix). It appears that my COM Sever is correctly bein...

Setup for .net 4.0 application

My desktop application requires .net 4.0 full package. Why full package? I am using next api that belongs to full package. System.ComponentModel.Design.CollectionEditor HttpUtility.HtmlEncode HttpUtility.UrlEncode HttpUtility.UrlDecode Then even I have set in setup project requirements only for .net 4.0 full package, during install t...

Wix & T4 : no "Custom Tool" option

I want to generate a fragment using T4 but after adding a .tt file to the Wix project there is no "Custom Tool" option for this file. And there is no menu item "Run custom tool" when right clicking on the .tt file. Is there a hack for this ? I'm using VS 2010 and latest Wix 3.5 ...

Run MSIs during install

I am looking to make an installer for a .net application which requires a few other MSI be run. Because of the restriction that you can only run one MSI at a time(honestly, is it 1995?) and my desire to provide configurability of which MSIs to run I can't just shove the MSIs in a bootstrapper as seems to be the recommend practice. I fo...

Manually increment or decrement file reference counter (refcount) used by MSI installers?

My understanding is that MSI installers use a file reference count to keep track of how many 'installers' installed a shared file (say a dll). [HKEY_LOCAL_MACHINE]\SOFTWARE\Microsoft\Windows\Current Version\SharedDLLs This way, say 3 products all install the same DLL, the refcount is at 3. When you run the uninstaller for one of the pro...

How to tell MSI to upgrade locked dll's and avoid reboots

I have MSI installer which installs product and this product has several widely used API dll's. These dll's may be loaded into processes that I cannot control during upgrade (for instance, I cannot ask user to close explorer.exe or svchost). So, during MSI upgrade these dll's are locked and cannot be upgraded without reboot. I need to ma...

Sign Assemblies in an MSI

I have a customer that I have developed Office AddIns for along with an MSI setup package. They need to sign not only the MSI package but also the vsto AddIns inside of that MSI. Is there any way that I can deliver the MSI to the customer and enable them to sign the assemblies within the MSI? Worst case my current thinking is that I spl...

How do I change the language of a Wix 3.5 MSI?

I have created an installer with Windows Installer XML 3.5 from within the Visual Studio 2010. The installer itself works pretty well but now I would like to change it's default language from english (1033) to german (1031). Therefore I changed the language attribute within the product tag to "1031" which should do the magic as far as I ...

How can I remove an XML modification in Change-mode (WiX 3.5)

I have created an WiX 3.5 installer with multiple features. One feature performs some XML changes which works fine. I have read that these changes can be undone while uninstalling the application by using the permanent attribute. Now imagine the following case: The user installs the whole application. Feature 1 does some XML changes. N...

VS Setup Project Does Not Make Uninstallable App?

Using VS 2008 SP1 with the GDR update and all updates. I created several Setup projects and each one makes a nice MSI. I can run all 6 and get my software installed (all different parts of a very large system). I made a C# app to look for everything in the Registry at SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall So I could ho...

Need advice on installing an application silently with patches

What I want to do is install program X with patches silently. Program X has an installer that is an MSI package. Program X has quite a few MSP file patches (8+)that have been released that I also want to install silently. There are two ways that I've seen to approach this: Method 1: Slip Streaming into "Network" installation msiexec.ex...

using wix to register .Net assembly marked for COM interop

I've got a vanilla .net class library which contains some types which are [ComVisible] and the assembly itself is marked "Register for COM Interop". I'm trying to build a WIX installer for the app which will need to not only copy the .net assembly to the INSTALLATIONDIR on the target machine, but also do the work of registering that the ...