wix3.5

How to reference SystemFolder in WiX Icon.SourceFile property?

心已入冬 提交于 2019-12-25 06:16:41
问题 To make the long story short, this doesn't work: <Icon Id="msiexec.ico" SourceFile="[SystemFolder]msiexec.exe"/> (Error 4 The system cannot find the file '[SystemFolder]msiexec.exe') And this doesn't work too: <Icon Id="msiexec.ico" SourceFile="$(var.SystemFolder)msiexec.exe"/> Error 3 Undefined preprocessor variable '$(var.SystemFolder)'. 回答1: The second sample in your question will work if you pass var.SystemFolder as a parameter to candle.exe . The <Icon> element is mapped to the Icon MSI

How to reference SystemFolder in WiX Icon.SourceFile property?

血红的双手。 提交于 2019-12-25 06:15:11
问题 To make the long story short, this doesn't work: <Icon Id="msiexec.ico" SourceFile="[SystemFolder]msiexec.exe"/> (Error 4 The system cannot find the file '[SystemFolder]msiexec.exe') And this doesn't work too: <Icon Id="msiexec.ico" SourceFile="$(var.SystemFolder)msiexec.exe"/> Error 3 Undefined preprocessor variable '$(var.SystemFolder)'. 回答1: The second sample in your question will work if you pass var.SystemFolder as a parameter to candle.exe . The <Icon> element is mapped to the Icon MSI

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

WIX reinstalling a feature increases the size of installer

淺唱寂寞╮ 提交于 2019-12-24 17:52:57
问题 I have a couple of features in my setup. I have also enabled the Change option. i.e. A user can change what s/he want's to install or uninstall after the initial install. When a feature is removed using this Change option it gets uninstalled. I would have expected the size of installer to be reduced but it stays the same. Now when the feature is later added using Change option the overall size of ths installer is increased. Is there a way to control this or does it always work like this? Note

Use wix to perform function of REGSVR32

好久不见. 提交于 2019-12-24 14:50:29
问题 I'm new to wix and trying make an installer for a few dlls. One of the tasks that has been done manually in the past is to use REGSVR32 to register the com objects. I assume that RegisterClassInfo in wix will perform this function, but I've been uanable to find example code that shows the correct syntax. I'd appreciate it if someone would point me to a good example or post it here as an answer. 回答1: I assume you are using wix v3.5 from the question's tag. Basically, use the harvest tool (heat

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

error CNDL0027 : The File/@Name attribute's value, 'apcsystray.exe', is not a valid 8.3-compliant name.

被刻印的时光 ゝ 提交于 2019-12-24 09:17:03
问题 When I am running the windows installer build using WIX 2.0 tool set i am getting the below error. error CNDL0027 : The File/@Name attribute's value, 'apcsystray.exe', is not a valid 8.3-compliant name. Legal names contain no more than 8 characters followed by an optional extension of no more than 3 characters. Any character except for the follow may be used: \ ? | > < : / * " + , ; = [ ] (space). I am suspecting that it is due to the old version because i am using windows 10 32 bit

Wix Installer - Resize fatal error dialog or use custom dialog in place of fatal error dialog

妖精的绣舞 提交于 2019-12-23 17:02:36
问题 In WiX installer - How can I customize or override Fatal Error Dialog ()? I would like to show a detailed error message instead of default setup failure message. Options: Is it possible to resize fatal error dialog in WiX? If not, how can I use my own dialog in place of fatal error dialog? 回答1: To resize or otherwise modify any existing dialog in essence you need to replace it. Luckily you can download original sources from git repository and modify them as you like. Firstly to be able to

wix - Copy an entire directory and all of its contents

坚强是说给别人听的谎言 提交于 2019-12-23 12:34:27
问题 My wix installer needs the contents of a directory to be copied to a destination folder. I understand that the Directory element has a FileSource attrib. I tried something like this: <DirectoryRef Id="DIRECTORY" FileSource="{var.Dir}"> <Component Id="Dir" Guid="*" > <CreateFolder/> </Component> </DirectoryRef> This is not picking up the files or sub-directories from the preprocessor variable. Are there any alternate ways to achieve this? 回答1: No, not unless you use a custom action. WiX likes

Unresolved reference to symbol “ ” in section 'Fragment'

孤人 提交于 2019-12-23 11:58:03
问题 I have added InstallDemo.wxs file and copied the code from WixUI_InstallDir src/ext/wixlib/, Then i have added UIRef into product.wxs file after that when i built the solution i got this 50 error "Unresolved reference to symbol 'Dialog:BrowseDlg' in section 'Fragment' so, Help me to resolve this issue.. please tell me how to create a simple dialog screen in 'WIX' please help, Thank you.! 回答1: Have you referenced the WixUIExtension in your WIX Installation project? You need this to give you