wix3.5

How can I get WiX to call a method in a .NET assembly as part of the installation process?

北慕城南 提交于 2020-01-01 15:41:27
问题 I'm migrating some existing products to use WiX 3.5 (I'm using the Votive VS integration). Some of the items I'm installing need to be registered with a third-party framework. The requirement is that I must call a Register() method in a third party .NET assembly to inform it of the presence of the items I'm installing. It expects a COM ProgID. I can't figure out how to get WiX to do this. I thought about creating a binary Custom Action, but I can't find a way of passing a parameter (a string

How can I get WiX to call a method in a .NET assembly as part of the installation process?

左心房为你撑大大i 提交于 2020-01-01 15:41:17
问题 I'm migrating some existing products to use WiX 3.5 (I'm using the Votive VS integration). Some of the items I'm installing need to be registered with a third-party framework. The requirement is that I must call a Register() method in a third party .NET assembly to inform it of the presence of the items I'm installing. It expects a COM ProgID. I can't figure out how to get WiX to do this. I thought about creating a binary Custom Action, but I can't find a way of passing a parameter (a string

WiX CustomAction ExeCommand failing?

早过忘川 提交于 2019-12-30 07:05:13
问题 I have a command line I want to run during the install of a merge module (created by WiX) with the below code. <CustomAction Id='SetWebsiteProtocols' Execute='commit' Return='ignore' Impersonate="yes" FileKey='Web.config' ExeCommand='c:\windows\system32\inetsrv\appcmd.exe set app "Default Web Site/My Website" /enabledProtocols:http,net.tcp,net.pipe' /> <InstallExecuteSequence> <Custom Action="SetWebsiteProtocols" After="InstallFiles"/> </InstallExecuteSequence> When I run the command on the

WIX: Create EventSource using .NET message file

一世执手 提交于 2019-12-30 05:07:06
问题 I'm creating an installer for my application using WIX. Everything works fine so far. However, I'm trying to create a new event source during installation and that doesn't work as expected. I've read and understood this question here on SO, but I have a somewhat different situation in which the given solution does not seem to work properly. The following is done differently: I'm using the WixNetFxExtension to determine whether .NET 3.5 is installed as a startup condition. I'm using the

msiexec /a deploying .msi file[WIX]

眉间皱痕 提交于 2019-12-29 09:47:16
问题 I have been asked to only deploy files that are bundled into MSI package. MSI contains 4 files, For that I'm using this command: `msiexec /a [path to MSI] TARGETDIR =[Application folder path]` Problem with above command is that it also deploys .MSI file to specified TARGETDIR which i don't want. Is there any workaround/way that i can only deploy that 4 files? 回答1: Not to my knowledge, no. This is an administrative installation, and it is essentially just an extraction of the files embedded in

Silently executing a PowerShell script from WiX Hangs PowerShell

馋奶兔 提交于 2019-12-29 06:46:31
问题 Note: This question is also posted on the WiX Users mailing list. I am trying to silently execute a PowerShell script from a WiX produced MSI. However, anytime I run the installer PowerShell hangs. Interestingly enough, according to the installer logs the PowerShell script appears to run successfully. Additionally, if I kill the PowerShell process via Task Manager, the installer cancels the installation and rolls back any changes. PowerShell Script Contents # @param website The website under

WiX: dynamically changing the status text during CustomAction

╄→尐↘猪︶ㄣ 提交于 2019-12-28 18:04:04
问题 I have a pretty lengthy CustomAction in a wix installer, and I want to be able to change the 'Status: ...' text while the operation runs, to see that there is progress and update on its internal status. I know how to set the progresstext of a custom action - but what I want is to dynamically change the progress text during the run of the custom action. 回答1: Deferred Custom Actions can call the MsiProcessMessage function. You can then use INSTALLMESSAGE_ACTIONSTART, INSTALLMESSAGE_ACTIONDATA

How to execute VSTO post-install by WiX

别来无恙 提交于 2019-12-25 13:14:12
问题 I need to run some VSTOs after they been installed. Everything I tried came out negative. One example: <Property Id="runcmd">start</Property> <CustomAction Id="RunOutlookVSTO" Property="runcmd" Execute="deferred" Return="asyncNoWait" ExeCommand="[SourceDir]Outlook2010AddIn.vsto"> </CustomAction> <InstallExecuteSequence> <Custom Action="RunOutlookVSTO" After="PublishProduct">NOT INSTALLED</Custom> </InstallExecuteSequence> Error: No reaction. Second example: replace start with cmd Error: No

How to restart IIS from WIX?

霸气de小男生 提交于 2019-12-25 08:36:09
问题 I need to restart IIS during my WIX installation, how can I do that? I know I need a custom action but I can't find any WIX predefined path for the iisreset.exe executable 回答1: You actually don't need a custom action for this. You can use the ServiceControl table and link it to the component that needs the IIS restart. 来源: https://stackoverflow.com/questions/44677549/how-to-restart-iis-from-wix

WiX: how to pack exe or dll to use only during installation

妖精的绣舞 提交于 2019-12-25 07:19:43
问题 I need to include a dll/exe in the resulting MSI (created through a WiX project), but I do not want to deploy them during installation: I only want to use them in some CustomAction my purpose is to include an existing exe/dll and call it during installation from wxs code (not from a CustomAction dll). Is it possible to include files which are not deployed during installation? I mean, only pack them inside the resulting MSI, and call them for some task while they are unpacked inside %temp%