wix

WIX:default directory in WixUI_InstallDir

The default directory in WixUI_InstallDir is always D:. How do i change it to directory C:? It is also not showing my directory structure defined in .wxs file.It is only showing D:.It should actually show 'D:\folder1\folder2'. why is that ? what will i have to do to show the directory structure? <Property Id="ROOTDRIVE"><![CDATA[C:\...

WIX Custom Actions built for .Net Framework 4.0 does not work? Ways to resolve?

We were using WIX 3.5 (Build Number 1811) and built a custom action built using Visual Studio 2008 and with target framework as .Net 3.5. This used to work great, until we built the custom action using Visual Studio 2010 and with target framework as .Net 4.0. WIX is unable to invoke the custom action, the error that we get is this: S...

wix:assembly attribute of file element

Is it necessary to have assembly = .net in file element? ...

Wix Force Overwrite of files for One Folder

I have several directories and files as part of my installation. One of the folders I want to replace the contents always and the remaining follow the default Wix behavior. I noticed I can setup REINSTALLMODE to "amus", but does this apply to the entire package? http://msdn.microsoft.com/en-us/library/aa371182(v=VS.85).aspx http://wix....

Cancel an MSI without showing the "installation interrupted" dialog.

I am wondering if it is possible to have the "Cancel" button on my welcome screen completely quit the installer without showing the final "Installation interrupted" dialog. I consider this redundant when the user hasn't even begun the installation yet. I still want the dialog to be shown if the user cancels an installation that has alre...

MsiSetProperty from C# custom action

action1How do I set a MSI property from within a C# custom action, so far I have this but how do I get the handle? [DllImport("msi.dll", CharSet = CharSet.Unicode)] static extern int MsiSetProperty(IntPtr hInstall, string szName, string szValue); public void SetProperty(string propertyName, string propertyValue) { MsiSetProperty(ha...

WiX doesn't remove registrykey on uninstall

I've created an Component with an Condition DISABLEMSIUPGRADE, which get's set when I install the MSI using our ExternalUI. However, MSI doesn't remove the entry on UnInstall. I think the problem is caused by the Condition, but I can't fix it. <Component Id="compMSI" Guid="5f18af6a-b839-4b4d-9d4f-79cf7826f749"> <Condition>DISABLEMSIUP...

Per-Machine install problem with User Profile.

When building my WXS data into an MSI I get the following error: ICE38: Component CreateFolder installs to user profile. It must use a registry key under HKCU as its KeyPath, not a file. This is confusing me cause I have my project set to be a per-machine installation, so from my understanding it should install to the "C:\Users\All Us...

Wix: How to define conditional bootstrapper pre-requisites?

I am using WIX 3.0 Toolset and VS2008. In my ".wixproj" file I have added the following code (which works fine). I want to add a condition so that it will only install PIA if office 2007 is installed. ... <ItemGroup> <BootstrapperFile Include="Microsoft.Net.Framework.3.5"> <ProductName>.NET Framework 3.5</ProductNa...

Wix - Keeping track of installed applications

This seems like a fairly straightforward question but I've been unable to find an answer: Let's say I have two products: A and B created by MyCompany. Both products A and B will have shortcuts in the start menu in this fashion: MyCompanyFolder->Product_A_Folder->A.exe and MyCompanyFolder->Product_B_Folder->B.exe If I uninstall "Produc...

How can I avoid "DLL Hell" with WiX?

I have an application that apparently needs some obscure DLLs. I reference a 3rd party COM object within it, which is what I believe is causing the issue. I downloaded a program called Depends.exe, and when I point it at my application, it says I need things like IESHIMS.DLL, IEFRAME.DLL, and SHLWAPI.DLL. I'm told these are things that ...

WiX Installer: How to switch to repair-mode if already installed?

I am new to WiX 3.0 and writing my first installer based on WiX (coming from Wise). If the product is already installed (in the current version), I want the installer to switch to "repair"-mode automatically. It should behave exactly like as if I would have clicked "repair" in the Windows software dialog. It must behave like this to f...

Getting an install to upgrade using WiX - old installer created not using WiX

Hi all, I'm building my first WiX installer after becoming sick of the sight of Wise For Windows Installer! I've built the installer and that works fine, but now I need to get it to perform an upgrade from the previous version of my app. While I can find plenty of post about setting up WiX do perform upgrades, I can't find anything tel...

How do I disable Votive (Wix) from copying all the source files to the project directory?

Why does the Wix Visual Studio plugin, Votive, think it's necessary to copy ALL my source files to the current Wix project's directory? How can I disable this? I've had no luck searching the docs, web, or project settings. I would like to keep things uniform and keep the "wxs" files in a "src" directory and my Wix project in the "build"...

How to access session custom action data (properties) during install and uninstall in Wix?

Can you please tell me what is wrong with the following code? I am able to access the custom action data during install and I add their values to session custom action collection. However, during uninstall I the value pairs are not in the collection. public class CustomActions { //This action is only called during application instal...

generating patches with WIX - base version 3 off version 1 or version 2?

I'm making 'minor upgrade' packages using WIX. I'm confused when it comes to basing the upgrade packages. When I generate a patch do I always base off version 1, or do I base version 3 off of version 2? in short, I'm having trouble understanding the <UpgradeImage SourceFile="$(var.ProjNew)" Id="Upgrade1_$(var.NewID)"> <TargetIm...

Installer Running When Application Launched As Different User

I have an installer built using WIX 3.0 and have a problem when trying to run the installed application as a different user than the user that ran the installer. When I try to run the installed application as a different user than the user that ran the installer, the installer tries to run again (it's already installed at this point) an...

CustomAction succeeds on development computer, fails on deployment computer

I'm creating a WiX installer to install a program which connects to a database. To help with this, I've created a C dll which checks to see if a certain instance of SQL exists on a server: extern "C" UINT __stdcall DBConTest(MSIHANDLE hInstaller) { FILE *fp; fp = fopen("dbcontestdll.txt", "w"); _ConnectionPtr pCon; int iErrCode; HRE...

MyDocuments from current User, buildin variable in Wix?

Hi, i need to install some file to C:\Documents and Settings\currentUser\SomeFolder. I can't find some buildin function/variable for it. Can someone help/tell me the <DirectoryRef Id="TARGETDIR"> structure or the solution for my problem? Thanks. ...

How to register VSTO add-in from a Wix# MSI installer

I have built several Office add-ins (Excel, Word, PowerPoint and Outlook). I have also written a single Wix#-based MSI installer to install these add-ins. I have managed to do everything correctly but now I am puzzled how to register the add-ins. One can do this interactively by double-clicking an accompanying VSTO file in Windows Explo...