wix3

How to find and delete registry entries in Wix

I am trying to write a Wix3 install for a visual studio add-in. I have it just about there, but I need reset the plugin by deleting a registry entry. Specifically any value starting with HKCU\Software\Microsoft\VisualStudio\8.0\PreloadAddinStateManaged\MyAddinName.Connect; How to a convince Wix to delete any such entries? ...

What is the best way to detect if Excel 2003 is installed?

I'm using Wix v3.0 (which boils down to an MSI installer) and I'm trying to author a condition to ensure that Excel 2003 is installed. What is the best (most robust) way to detect the presence of Excel 2003 on a machine? I've seen lots of different suggestions, but no definitive or authoritative answer. ...

Wix installer and disabled features

I'm using Wix3 beta with Feature Tree UI. I'm installing several assemblies as separate components into a custom subdirectory inside ProgramFiles, as well as into GAC. Additionally I would like to package DEBUG versions of the same assemblies as one component and let the user decide whether to install them or not. Now this feature with d...

MSI does not install all files when RemovePreviousVersion is run

I have a MSI build using WiX version 3. All previous installers for the product we are deploying worked fine with the configuration specified (that is: if previous version exists, remove, then install the new version) - however, the new MSIs we build don't install all files when it runs through the 'remove first' path. If we manually r...

How to extract data (file count) from MSI "File" Table

In our build process there is currently the potential for non-code based files (such as image files) to be added to our web project, but not included in the MSI installer built by WiX. To help prevent this, I want to perform the following in the AfterBuild target for our WiX project: Get a count of all files built (output from web de...

Best way to create a wix fragment file based on User-defined directories to be used in MSBUILD

In the spirit of this question by Si here: http://stackoverflow.com/questions/471424/wix-tricks-and-best-practices. I am trying to determine the best way to get create wix fragments based on a directories. File harvesting, so to speak. For example under the bin\release folder I could have many different folders plus files that I want ...

Validate user must install at least one of sub features

Here is the structure of my Application's Installer in FeatureTree/SelectionTree Application Core     |_ _ Feature 1     |_ _ Feature 2     |_ _ Feature 3 I want make sure that when user selects Application Core, he must select atleast one of Feature 1, Feature 2 or Feature 3. I know Condition element under feature can be helpful, ...

"Bad Image" problem with Heat in Wix 3.0 with typelibs

When using heat (from Wix 3.0.4805.0) to generate Wix documents off of a typelib that's generated by Visual Studio, I have been getting an error. A window pops up that says: 'heat.exe - Bad Image' The application or DLL c:\path\to\file.tlb is not a valid Windows image. Please check this against your installation diskette. Bu...

WiX(v3): Harvesting a .csproj with heat.exe in vs2008?

The Question Newly initiated into WiX, I researched and found that v3 uses a tool (heat.exe) to "harvest" information into WiX fragments. I have managed to stumble about and find information on this tool, but none of it seems up to date for the latest heat.exe. Either i am looking in the wrong location, or this is thinly documented. So...

MSI Install-on-demand best practices?

I'm working on a new feature for our product, a component of which has some fairly major security implications: it runs as a WCF service, and performs some highly-privileged actions. As such, I'd like that component to only be installed when the user requires it (and removed when it's no longer required), and for the installation to be ...

Detect if an assembly is in the GAC via WiX 3?

I'd like to detect in WiX 3 (preferably via a Condition) whether a particular assembly is in the GAC. I know the name, version, and public key token of said assembly. Is there any built in way to do this, or will I have to write a CustomAction to do it? And how would I go about setting up that CustomAction? (This would be before the inst...

How do I create an MSI in VS 2008 to install a certificate into Trusted Publisher store on client machine?

What are the steps needed to create a VS 2008 MSI setup and deployment file to install a custom created certificate/key onto a client's machine? ...

Issue when creating an installer using wix to install in a specific website(NOT in Default Web Site)

Hi, I am creating an .msi using wix to install in "Test Web Site". But it always installs in "Default web site". The .wxs looks like: <iis:WebVirtualDir Id="VirtualDir" Alias="TestService" Directory="Test_dir" WebSite="WebSiteId" > <iis:WebApplication Id="TestWebApp" Name="TestService" /> </iis:WebVirtu...

WIX Installed property

Hi I'm doing an installer, using wix v3. I have two installers. I installed my app with the first one and then I want to update it with the second installer. I think that I'm missing something since I cannot install the product and then run an update (with other installer), If I execute the same version, I could see the maintenance windo...

How to check for installed package in WiX 3.0 ?

I'd like to check that Crystal Reports Basic for Visual Studio 2008 is installed as a condition for my own installation package. I found this in the bootstrapper description for this product (C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\CrystalReports10_5\product.xml) : <InstallChecks> <MsiProductCheck Property...

WiX condition properties passed from command line don't work?

I have a property for whether to install shortcuts that need to be passed via command line arguments. The conditions seem to work when I set the properties within the wxs file, but they seem to be ignored when setting them through the command line. From the log I see that they are being set: MSI (s) (24:C8) [11:01:32:234]: PROPERTY CH...

WIX and Certificates in IIS

I am trying to setup my install to have my site configured with its certificate using WIX. I can view the certificate in IIS and have access to the .cer file. That is about all I know about certificates, so please dumb down any answers. (ie I have no idea what my "BinaryKey" is). The certificate is already installed on the machine. ...

Building Wix 3.0 upgrade and patch.

1)What are the best practices of building, patches? 2)Is it possible to build patch between major upgrade(Product code is changed) build? 3)How to ship content(static files) update for a product We tried to do this through patch but is was taking lot of time to update just 200 files, basically our requirement is that we want to ship p...

Question regarding PermissionEx (WIX)

Hi, I am new to WIX. I am using util:PermissionEx for creating ACLs. I can successfully set rights like read, write, read & execute but I am unable to find any information about setting Modify Permission. I have tried using "Append" attribute to achieve this functionality (this seems to be the only attribute that may do the desired) ...

Add user group to another user group with wix v3

I need to add group within a group e.g. COMPUTER\Users group to the "Backup Operators" group. Wix provides a way to add a user to a group using the GroupRef Element but does not seem to provide an obvious way to add a group Can this be done? If so how? ...