msi

How do I dynamically set a file source based on a property in WIX?

We have four regions (dev, test, qa, prod) that all require environment specific config files. I am trying to develop a WIX install that will accept a property assignment from the msiexec command line and dynamically set the file source of a config file. I've tried just about everything and read about every page and I can't seem to mak...

Component GUID in Wix

I have a .net dll that is shared by 2 applications of mine, client and the server. I do not know where the files will be installed as user chooses the install and he may only install client or both client and server. I have component on both server and client wix and it contains only the shared assembly. Should I have same GUID for bo...

Wix: Merge Module with multiple wxs files

So, I am trying to create a merge module where I have multiple wxs files. I thought that everything was OK since the build of my project succeeded. Later, I realized that the path used in Source attribute for one of the secondary wxs files was completely wrong but the compiler didn't give the following error: *The system cannot find the...

How do I call a batch file from an MSI

I have an msi installer that needs to call a few batch files to finish the install procedure. The batch file copies extra files from the installer to a few directories and then modifies permissions on several of those directories. We want to continue using the batch files because there is not a lot of time left in our development schedul...

MSI Log Debug Log Sink

I have an InstallShield MSI project. When I pass an MSIHANDLE from an InstallScript custom action to a managed assembly initialized via DotNetCoCreateObject(), the value received within my managed code is -2. Does anyone know if it is possible to access an MSIHANDLE from an InstallScript custom action that calls into managed code via...

How does one stop a Windows service to do an upgrade install?

I have developed a Windows service along with a setup project using Visual Studio 2008. When I do an upgrade install I get the following warning: The following applications are using files which the installer must update. You can either close the applications and click "Try Again", or click "Continue" so that the installer continues the...

Free MSI Authoring tools

Are there any free / open source tools that can be used to create an advanced MSI installer. I've found the following list of MSI authoring tools, however I know very little about MSI technology and its hard to tell from that list which of those tools can actually be used to create new MSI installers from scratch (as opposed to simply v...

How to apply a Msi transform at uninstall?

I'm trying to fix a Windows Installer based setup that is already released. The fix is for an error that occurs when uninstalling the package. For this I'd like to provide a .mst transform file that is applied before uninstalling. Is it possible to use a transform after the product was installed? Or can the transform be applied to an alr...

Installing files to x64 "Program Files" from x86 msi

I'm creating installer using InstallShield 2010 (basic MSI) that is having two features. First feature consists of: main .NET application compiled as x86, some native x86 third party dlls which are used by main application (x64 versions are unavailable). Second feature contains single component which is an extension for MS Reporting...

Visual Studio 2008 , Is there a way to embed a product version into MSI package.

I have a solution (sln file) file that contain several projects. The sln is referring to two projects : I have a csharp project that its output is an executable assembly , along with configuration file , this project has a product version defined which increase from time to time. I have a project that when i Build it , it create an MS...

MsiDatabaseOpenView returning 1615 (ERROR_BAD_QUERY_SYNTAX) with seemingly valid query

I'm trying to use MsiDatabaseOpenView to manipulate an .msi installer and I am receiving an error that I cannot diagnose. When invoking MixDatabaseOpenView, the method is returning the error code 1615. The method documentation indicates ERROR_BAD_QUERY_SYNTAX as a possible error result, and 1615 maps to ERROR_BAD_QUERY_SYNTAX according...

Launch x86 or x64 MSI from MSBuild bootstrapper

So I have a WiX based MSI that installs a handful of device drivers and therefore I have an x64 and an x86 version. The package also has a .NET 3.5 dependency so I'm generating a bootstrapper to do this and then launch the MSI. My question is if anyone is aware of a way to create a bootstrapper that will detect the platform it is running...

Chain Uninstallation of MSIs

I've got an MSI installer that includes another MSI for an SDK that it installs during it's own installation. Both MSI's have been created with the Visual Studio deployment tools. The installation works fine, but when I uninstall the main component it does not automatically uninstall the SDK. I tried to create a custom uninstall actio...

Cannot install .msi package silently

Hi I have an Office 2007 add-in (developed using Visual Studio 2005 Tools for Office Second Edition) which has been packaged into an .msi file, using the Setup project in Visual Studio 2005 The problem is that when the users install the package themselves by using Next->Next->Finish then everything works normally, but when I try to ins...

Can a Web Deployment Project support quiet installation

I need to install a web deployment fromn a quiet installation and pass in the web directory, installation directory etc. I know that the values of the MSI are available to a custom action, but my experience is that in quiet mode these get overwritten by the default value on the GUI even when in quiet mode. Am I wrong on this assumption...

Start exe after msi install but using current user privileges

I am using Visual Studio 2008 to build an MSI install package. Within the install I have numerous custom actions. Within the OnAfterInstall custom action I attempt to start an exe which is deployed by the install. The exe starts ok, but runs within a security context of NT AUTHORITY\SYSTEM (i.e. under the elevated privileges granted t...

Extract MSI from EXE

Dear all I want to extract MSI of an EXE setup to publish over network!!!! There is some ways. for example using universal extractor...... but doesn't work for JAVA Run-time environment.... Is there any idea? Thanks ...

TrustedInstaller is preventing registry writes to HKCR\DirectShow\MediaObjects\Categories

Hi, I'm trying to install a DMO which requires me to write to HKCR\DirectShow\MediaObjects\Categories\57f2db8b-e6bb-4513-9d43-dcd2a6593125, this registry path is protected by TrustedInstaller and it seems that this protection is new in Windows 7 (it work on previous platforms). How am I suppose to install DMOs? There are plenty of p...

msi table information

At http://support.microsoft.com/kb/255905 usoft says there is a file msi.chm distributed as part of the sdk. I have sdk v7 and can't find hide nor hair of this file. What I'm really after are the table names and row names for all the item that can appear under Support Information in the Add/Remove Programs under the control panel. Thi...

Remove a GUID="" component installed with WiX

I've messed up my WiX-based installer on multiple servers so that it no longer removes files or components (or even other features) during an uninstall. The MSI log shows that PreviouslyPinned=1 on all the components that won't uninstall. I don't have anything fancy going on like using SharedDll count or even shared components among dif...