wix3.6

How to set or get all logs in a custom bootstrapper application

旧街凉风 提交于 2019-11-30 22:49:14
In my custom Burn managed bootstrapper application, I want a way to set the default log directory of the installer so that customers can easily find the installation logs. If this can't be done, I would like a suitable way to copy the log files after installation. I tried unsuccessfully at setting the WixBundleLog variable in my setup project (i.e. Bundle.wxs) and in my managed bootstrapper application. Also, my bootstrapper applicaton is generic enough so that it my be used with a variety of products / install packages, so I need a solution that is flexible enough to set / get the

How to use CustomAction in WIX Bundle?

霸气de小男生 提交于 2019-11-30 18:42:48
To give you a background - I have a 4 MSI's which comes from our vendor and this has to go to our company servers (we are looking at around 3500 servers). As of now, my counterparts are managing this using vbs, ps1 scripts. But the problem with the script is that everytime an update comes we have to worry about uninstalling the existing package before running the new one and a ton of hardcoding. I want to automate the whole process (with very less hardcoding) by setting up a WIX script to package all the 4 MSI's together. I read about the WIX bundle and used that to create a single MSI. But

How to do major upgrades when using burn / WiX 3.6

送分小仙女□ 提交于 2019-11-30 17:38:46
I have one MSI setup like this: <Product Id="*" ... UpgradeCode="4207FF3B-5E0D-4311-9DFC-B41AA8DE2965" /> <MajorUpgrade DowngradeErrorMessage="Can't downgrade" /> It works as expected: Install product Recompile (effectively generating a new Id) Starting the new msi file brings up the change view and I can repair or uninstall the product. Good. But then comes burn. I have created the most simplistic Bundle one can thing of. I use the standard bootrapper and just add one single MsiPackage: <MsiPackage SourceFile="$(var.Setup.TargetPath)" /> The problem is that after each recompile I can install

How to install .NET 4.5 with a WiX bundle?

早过忘川 提交于 2019-11-30 11:37:24
问题 I need to include Microsoft .NET 4.5 as a prerequisite with my installation bundle, and I want it as automatic as possible. However, .NET should not be removed when unistalling. I think I have read just about everything on how to use DetectCondition and/or InstallCondition , but I'm still not getting it right; it is either always running the .NET installation, or never running it. Here's my latest setup: <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas

How to debug custom bootstrap application?

喜你入骨 提交于 2019-11-30 10:35:15
问题 I am using Burn for MSIs package. I am using Votive (Visual Studio) & my own custom BA instead of WiXBA. I tried to debug custom BA using Debugger.Launch() . But when I start debugging, error messages occur. No symbols are loaded for any call stack frame. The source code cannot be displayed I realized that package.exe links CustomBA dll which located at C:\Documents and Settings\user\Local Settings\Temp\{GUID}\ . {GUID} is always changed. So, whenever I run package.exe, always directory is

Wix Load items into ComboBox

可紊 提交于 2019-11-30 10:23:46
I need to use custom action to load items into combobox. UI.wxs: <Control Id="Server" Type="ComboBox" X="30" Y="65" Width="200" Height="18" Property="DATABASE_SERVER"> <ComboBox Property="DATABASE_SERVER"> <ListItem Text="[DATABASE_SERVER]" Value="[DATABASE_SERVER]" /> </ComboBox> <Publish Property="LOGON_VALID" Value="0">1</Publish> </Control> Custom Action private static ActionResult EnumSqlServersIntoComboBox(Session session, IEnumerable<DataRow> rows) { try { Debugger.Break(); session.Log("EnumSQLServers: Begin"); // Grab the combo box but make sure I'm getting only the one // from

WiX Bundle bal:condition - util:RegistrySearch variable always false

老子叫甜甜 提交于 2019-11-30 08:12:41
问题 I want my install to fail if a third-party software element is not installed. I added a Fragment with a util:RegistrySearch and a bal:Condition to the Bundle , but I can't get it to work. ThirdPartyCOMLibraryInstalled never evaluates to true. I've confirmed that the key exists, and the value I use for Key is correct - I copy/pasted the name from the selected key in regedit. There aren't any errors in the log. I'm building the installer with WiXTools 3.7 in Visual Studio 2012 on Windows 7 64

A complete WiX 3.6 bundle example bootstrapping a .NET 4 Client Profile

醉酒当歌 提交于 2019-11-30 06:27:34
I tried to construct a working example of a WiX 3.6 installation script. We currently use WiX 3.5 and now we would like to begin installing the .NET 4 Client Profile framework as a pre-requisite for our MSI file that our product.wxs script creates. WiX 3.6 seems like the best way forward. Is there a functional example of how to do this with WiX 3.6? Here is our 3.5 script we use today: <?xml version="1.0" encoding="utf-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"> <!-- Version change handling --> <?define UpgradeCode="##

How to use CustomAction in WIX Bundle?

北城以北 提交于 2019-11-30 03:00:29
问题 To give you a background - I have a 4 MSI's which comes from our vendor and this has to go to our company servers (we are looking at around 3500 servers). As of now, my counterparts are managing this using vbs, ps1 scripts. But the problem with the script is that everytime an update comes we have to worry about uninstalling the existing package before running the new one and a ton of hardcoding. I want to automate the whole process (with very less hardcoding) by setting up a WIX script to

How to intelligently install .NET 4.x using WiX Burn

懵懂的女人 提交于 2019-11-30 01:53:48
When installing an application that can use either .NET 4.0 or 4.5, what is the best practice when installing the prerequisites .NET framework? And how do you implement it using Burn in WiX? These are the options and trade-offs that I am aware of: Option 1: Install .NET 4.0 (just what you need) Advantages: None known (except for Windows XP, where this is the only choice) Option 2: Install .NET 4.5 if .NET 4.5 is not present Advantages: User won't have to install .NET 4.5 later for future apps. App won't experience a .NET version change when user later does upgrade to .NET 4.5. App immediately