wix

Set location of binaries in wixproj file

痴心易碎 提交于 2019-12-25 02:56:08
问题 I am using Wix 3.9 and when I run a continuous integration build in TFS I get an error heat.exe: The directory could not be found because TFS is putting binaries in a different location to my local machine, so the project will build locally but not on TFS. In my wixproj file I have a location set for the binaries which works locally Dir=$(SolutionDir)\ProjectName\bin\$(Configuration) . Is there anything I can set this to which will find the binaries both on my local machine and TFS? I am

how to create folder in Wix?

百般思念 提交于 2019-12-25 02:48:05
问题 I use this code: '<'Directory Id="x" Name="ext"> <'Component Id="y" Guid="4480e442-42d9-41a8-a091-9bdbf5aa47df"> <'CreateFolder Directory="ext" /> <'/Component> '<'/Directory> But it failed with the following error: : error LGHT0094 : Unresolved reference to symbol 'Directory:ext' in section 'Product:*'. what could be the problem? BTW: I have difficulties pasting the XML code in this form. 回答1: This should be Directory Id, not the name: <CreateFolder Directory="x" /> Or just <CreateFolder/>

How to find difference between the content of .exe and .msi (installer)

淺唱寂寞╮ 提交于 2019-12-25 02:44:47
问题 I recently took charge of a new system, it is a windows application written in C# , an installer ( .MSI ) file is created for its distribution. When I install the software it installs properly but it crashes on start . Then if I run the .exe file once for the application, the installed software starts working. My observation is that .EXE installs some missing bit which is required by .MSI file. Is there a way I can find what files are missing in .MSI file ? UPDATE on 09-08-2014: I have found

Append ProductName into INSTALLLOCATION

和自甴很熟 提交于 2019-12-25 02:39:30
问题 I want to append ProductName in the end of _BrowseProperty. Like a: <Publish Event="SetTargetPath" Value="[_BrowseProperty][ProductName]">1</Publish> But this is the wrong approach, and so it is impossible. I found this advice, bit it is dirty, really. I want to substitute ProductName as this happened in notepad++ installer (I change "C:\", press "ok" and INSTALLLOCATION:=C:\[ProducName]). Also I wanted to change BrowseDlg and directory tree (cause the default DirectoryList/DirectoryCombo is

What does ActionText Table correspond to in WiX 3.8

て烟熏妆下的殇ゞ 提交于 2019-12-25 02:31:25
问题 I am asking the correspondence in WiX for ActionText table, refered in MSDN page Link. Or rather, how can we provide hint text while system events are happening, like the installer is moving files or writing to registry? 回答1: All of the elements in WiX are documented in the help file with a list of Windows Installer references. This enables you to search the help backwards to find out which element expresses said table. In this case it's the ProgressText element. This link might be useful to

Prevent custom actions from running during patch

前提是你 提交于 2019-12-25 01:56:04
问题 I am authoring a very small patch to a very large package, it's sole purpose is to update a single file and add four smaller ones. Using the WiX help as a guide I am able to generate the MSP file. However, a patch runs apparently it runs the original package in reinstall mode, with all the custom actions and whatnot that go along with it, which is not what I want. Further research turned up the OptimizeCA property of the MsiPatchMetadata table, and its WiX equivalent OptimizeCustomActions

How to Read a string From a File Wix

自古美人都是妖i 提交于 2019-12-25 01:53:56
问题 There is a file test.txt which is having a text "FileName" I want to read this string "FileName" from the file test.txt in wix and somehow I want to assign this string to a directory name. I want the below mentioned to happen, reading from a file. < Directory Id="testing" Name=FileName > Any suggestions would be helpful. Thanks in Advance, Pradeep Kumar. 回答1: You need to have a custom action that reads the text file content and places it into a property. Then you can try to reference that

Why msiexec TARGETDIR doesn't seem to work

我的未来我决定 提交于 2019-12-25 01:49:42
问题 I tried msiexec /i "yarn-1.10.1.msi" TARGETDIR="C:\programs" /qb It installed but not in TARGETDIR, did I miss something ? 回答1: You can try the following command line instead: msiexec.exe /i "yarn-1.10.1.msi" INSTALLDIR="C:\programs" /qb Standards Compliance : Installing underneath %ProgramFiles% is always recommended. Creativity in deployment is generally always overrated and usually causes unnecessary problems. However, you could have an SOE setup that requires custom paths? Path Update : A

Continue the Wix setup after having a service that could not start

白昼怎懂夜的黑 提交于 2019-12-25 00:26:54
问题 We have a setup in which we have a service that we try to install and run. For some reason, the service cannot start(due to a port already in use). This isn't critical for us and should not stop the setup. The service is declared like this: <DirectoryRef Id="BIN"> <Component Id="MyService" Guid="*" SharedDllRefCount="yes"> <File Id="MyService.exe" Name="MyService.exe" KeyPath="yes" Vital="no" Compressed="default" DiskId="1" Source="$(var.DirDotfuscated)\MyService.exe" /> <ServiceControl Id=

WiX - Allowing a *manual* uninstall of one msi to uninstall another msi that shares the same UpgradeCode (and not just during the MajorUpgrade)

回眸只為那壹抹淺笑 提交于 2019-12-24 23:43:45
问题 I have a bootstrapper (C# windows forms applications) that trigger two different msi files consecutively out of its resource. The instance transforms between the msi are 'paired' such that one instance transform from the first msi shares an UpgradeCode with one instance tranform from the second msi; these are the pairs that are installed together via the bootstrapper. The 'core' msi (the first msi that runs) includes the MajorUpgrade element such that when a higher-versioned 'core' msi is run