wixlib

How can I maintain file reference integrity from a WIX Setup Library

ぃ、小莉子 提交于 2019-12-25 06:59:10
问题 I am using the Wix Toolset 3.8 Visual Studio add-in. I have created a WIX Setup Library which encapsulates some common components that will be consumed by various service deployment projects. This library includes references to several solution files which need to be packaged into each deployment. These dependencies are used in my wix library fragments in a few different ways. For example: <Binary Id="InstallationScript" SourceFile=".\Dependency1.vbs" /> <CustomAction Id="DependencyAction"

Writing Data to MSI Database

 ̄綄美尐妖づ 提交于 2019-12-25 05:23:11
问题 I need to be able to update a binary table and i do it like so: View v = session.Database.OpenView("SELECT `Data` FROM `Binary` WHERE `Name` = '{0}'", binaryKeyName); v.Execute(); var IsReadOnly = session.Database.IsReadOnly; Record r = v.Fetch(); StreamReader reader = new StreamReader(r.GetStream("Data")); string text = reader.ReadToEnd(); text = text.Replace(@"Test12345", "TTTest"); byte[] byteArray = Encoding.ASCII.GetBytes(text); MemoryStream stream = new MemoryStream(byteArray); Once I

Can WixUiBannerBmp be set in a wixlib?

三世轮回 提交于 2019-12-24 10:29:43
问题 Currently I'm trying to move the WixUIBannerBmp, WixUIDialogBmp and WixUILicenseRtf WixVariables and their corresponding binary files to a wixlib. Unfortunately when building it ignores these and uses the defaults. My Library.wxs: <Fragment> <WixVariable Id="WixUILicenseRtf" Value="licence.rtf" /> <WixVariable Id="WixUIBannerBmp" Value="binaries/bannrbmp.bmp" /> <WixVariable Id="WixUIDialogBmp" Value="binaries/dlgbmp.bmp" /> </Fragment> where the rtf and bmp files are included in the wixlib

Is it possible to include “source” files in a wixlib?

こ雲淡風輕ζ 提交于 2019-12-23 17:08:15
问题 Is it possible to include "source" files in a wixlib? I have a number of c++ solutions, each containing a project or projects, and a wixlib, with a fragment containing entries such as: <File Id="MY_ID" KeyPath="yes" Source="$(var.my_path)\foo.exe" /> I would like to collect "foo.exe" and include it in the wixlib, then create a WiX project that links together several such wixlibs and produces an MSI. The reading I have done seems to suggest WiX3 and later supports this, and the technique is

How do I share a WiX fragment in two WiX projects?

不打扰是莪最后的温柔 提交于 2019-12-21 17:32:25
问题 We have a WiX fragment in a file SomeDialog.wxs that prompts the user for some information. It's referenced in another fragment in InstallerUI.wxs file that controls the dialog order. Of course, Product.wxs is our main file. Works great. Now I have a second Visual Studio 2008 Wix 3.0 Project for the .MSI of another application and it needs to ask the user for the same information. I can't seem to figure out the best way to share the file so that changing the information requested will result

Wix Load items into ComboBox

百般思念 提交于 2019-12-18 13:38:47
问题 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

WiX replace dialog

孤街醉人 提交于 2019-12-14 01:29:06
问题 How may I replace one standard dialog, e.g MaintenanceTypeDlg? I have a reference to UIExtension.dll and when I add MaintenanceTypeDlg.wxs to my project, I get an error about duplication of dialogs. Can I replace a single standard dialog without removing the reference and adding all needed .wxs files? 来源: https://stackoverflow.com/questions/5432526/wix-replace-dialog

How to make Win64 attribute as a variable in wixlib?

三世轮回 提交于 2019-12-11 10:49:45
问题 We have some components in wixlib project and different installer projects reference it. The problem is Win64 attribute and several others as per my investigation can be bound only to preprocessor variable. <Component Id="someid" Guid="someguid" Directory="$(var.FrameworkFolder)" Win64="$(var.Platform64)"> <File Id="somefile" Name="somename" DiskId="1" KeyPath="yes" Source="$(var.OutputFolder)\somefile"/> </Component> Currently, that forces us to have the library dynamically referencing

WIX edit binary file in custom action

牧云@^-^@ 提交于 2019-12-10 21:34:45
问题 I'm trying to do the following: during install open and edit sql file via custom action save edited changes and execute it during install. In my product.wxs I have the following: <Binary Id="SqlScriptSQLAuthentication" SourceFile="$(sys.SOURCEFILEDIR)\MyDb.sql" /> <Component Id='SqlComponent.SQLAuthentication' Guid='665D641C-3570-4b96-9CA5-2B4C12594A35' KeyPath='yes'> <Condition><![CDATA[USEINTEGRATEDSECURITY<>1]]></Condition> <sql:SqlDatabase Id='SqlDatabase.SQLAuthentication' Database='

How do I share a WiX fragment in two WiX projects?

这一生的挚爱 提交于 2019-12-04 09:37:54
We have a WiX fragment in a file SomeDialog.wxs that prompts the user for some information. It's referenced in another fragment in InstallerUI.wxs file that controls the dialog order. Of course, Product.wxs is our main file. Works great. Now I have a second Visual Studio 2008 Wix 3.0 Project for the .MSI of another application and it needs to ask the user for the same information. I can't seem to figure out the best way to share the file so that changing the information requested will result in both .MSIs getting the new behavior. I honestly can't tell if a merge module, an .wsi (include) or a