wix-extension

WIX enable Windows feature

巧了我就是萌 提交于 2019-12-01 07:54:18
I have to check if some windows features are enabled beore installing my software. I can check it or install it using dism command line tool. I create a custom action to do this, but is there a way to do it in a "WIX native way" ? <Property Id="dism" Value="dism.exe" /> <CustomAction Id="InstallMSMQContainer" Property="dism" ExeCommand=" /online /enable-feature /featurename:MSMQ-Container /featurename:MSMQ-Server /featurename:MSMQ-ADIntegration" Return="check" Impersonate="yes" Execute="oncePerProcess"/> <InstallUISequence> <Custom Action="InstallMSMQContainer" After="CostFinalize" Overridable

WIX enable Windows feature

时光总嘲笑我的痴心妄想 提交于 2019-12-01 05:16:55
问题 I have to check if some windows features are enabled beore installing my software. I can check it or install it using dism command line tool. I create a custom action to do this, but is there a way to do it in a "WIX native way" ? <Property Id="dism" Value="dism.exe" /> <CustomAction Id="InstallMSMQContainer" Property="dism" ExeCommand=" /online /enable-feature /featurename:MSMQ-Container /featurename:MSMQ-Server /featurename:MSMQ-ADIntegration" Return="check" Impersonate="yes" Execute=

WiX XmlConfig: Purpose for nesting XmlConfig in XmlConfig

青春壹個敷衍的年華 提交于 2019-12-01 04:43:40
What is the purpose and/or gain (other than increased readability for creating/deleting attributes) to nesting an XmlConfig element in another XmlConfig element? Example of what I'm referring to (I'm using WiX 3.6 ): <util:XmlConfig ...> <util:XmlConfig ... /> </util:XmlConfig> The short answer: the only purpose of the option to have nested <util:XmlConfig> elements is to be able to add/remove attributes to/from the newly created elements in a more readable way. So, this is basically what you assumed. Consider the following initial XML file: <?xml version="1.0" encoding="utf-8"?> <cars> <car

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: Giving Permissions to a folder

牧云@^-^@ 提交于 2019-11-28 06:26:51
I've read all related topics and haven't found a full answer to my problem. I would like to give full permissions to SYSTEM and Read & Execute permissions to Users group to a folder under Program Files. Nothing more, nothing less. I know there are 3 ways to give permissions to a folder using WIX, none of them are really good for me and I'll explain why: 1) Regular Permission element: <CreateFolder Directory="Test"> <Permission User="SYSTEM" GenericAll="yes"/> <Permission User="Users" Domain="[LOCAL_MACHINE_NAME]" GenericRead="yes" Read="yes" GenericExecute="yes" ChangePermission="yes"/> <

WIX database deployment, installation

我是研究僧i 提交于 2019-11-28 03:21:24
During my setup I give an option to use "windows authentication" OR "server authetication". Everything works fine and db gets installed as long as I do "server authentication" and provide db userId and password. What do I need to do in order install db using "windows authentication" (in wix)? thanks My product.wxs file: <Product Id="*" Name="MySetup2" Language="1033" Version="1.0.0.0" Manufacturer="Hewlett-Packard Company" UpgradeCode="bf1da750-c2fe-4026-9d2b-9d291a61a8b5"> <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /> <Binary Id="success_bmp" SourceFile="$(sys

Wix: How to set permissions for folder and all sub folders

偶尔善良 提交于 2019-11-27 04:28:20
I know how to set the permissions for a folder: <DirectoryRef Id="ProgramFilesFolder"> <Directory Id="PHPFolder" Name="PHP"> <Component Id="PHP_comp" DiskId="1" Guid="*"> <CreateFolder> <Permission User="Everyone" GenericAll="yes" /> </CreateFolder> However I need the permissions to be applied to all subfolders as well. Is this possible with out listing all the folders? First of all, I would recommend you using PermissionEx instead. It is a standard WiX extension and it has one really huge advantage over Permission - it doesn't overwrite, but modifies ACLs. And by default, it applies

WIX: Giving Permissions to a folder

牧云@^-^@ 提交于 2019-11-27 01:07:35
问题 I've read all related topics and haven't found a full answer to my problem. I would like to give full permissions to SYSTEM and Read & Execute permissions to Users group to a folder under Program Files. Nothing more, nothing less. I know there are 3 ways to give permissions to a folder using WIX, none of them are really good for me and I'll explain why: 1) Regular Permission element: <CreateFolder Directory="Test"> <Permission User="SYSTEM" GenericAll="yes"/> <Permission User="Users" Domain="