wix3.7

Replicate Behavior of a Batch File in a Custom Action

旧时模样 提交于 2020-01-07 03:40:55
问题 I'm creating a wix installer at work, and I need to be able to replicate the behavior of this batch file in a custom action: start /d "C:\Program Files (x86)\Remindex" INSTSRV.EXE RemindexNP "C:\Program Files (x86)\Remindex\SRVANY.EXE" I am trying to create a service using a normal windows application, which SRVANY.EXE can do. This batch file runs fine normally, but I can't seem to get a custom action to do the same thing. I have tried this: <CustomAction Id="RunNP" FileKey="FILE

Wix Toolset - Setting a Property to User Profile Folder path and Program Files

房东的猫 提交于 2020-01-06 07:29:11
问题 I am using Properties to set the values of Registry entries. This is so that on install the first time I have a default value and then on upgrade the current registry value is used. I need to have a property that sets the path to the user's local folder and to the programs folder. I know the below code is wrong but how do I do it. I think at least I want to do a Type 51 custom action but don't understand the documentation. I believe there are three relevant parts <InstallExecuteSequence>

Wix Installer app won't install when run twice and uninstalls the app

梦想的初衷 提交于 2020-01-05 04:33:27
问题 I wrote a simple wix installer with gui, which installs well. But when I run the same .msi file a second time, it takes me through the normal installation process in the gui, but uninstalls my app at the end. Then if I run this same .msi file a third time, the installer still does through the installation gui normally, but ends up doing "uninstallation". I don't understand why it doesn't behave like every other installer and handle installation and uninstallation gracefully. here is part of

How to avoid uninstalling previously installed ExePackage (redistributables) while installing a WiX Bundle?

ぃ、小莉子 提交于 2020-01-05 04:16:09
问题 I have a Bundle that installs and uninstalls VC 2012 redist. Its working fine if there was no VC 2012 redist installed previously. if there is a VC 2012 redist already installed, then while uninstalling my bundle, it uninstalls the VC 2012 redist as well. All I want is that it must not uninstall the VC 2012 redist if it was previously installed. I was trying to use the variable element with persisted attribute set to "yes". But I am not sure how it works. any pointers to this is greatly

Determine if SqlLocalDB is installed

守給你的承諾、 提交于 2020-01-04 04:11:22
问题 I am searching for a way to determine in WiX if SQLLocalDB is installed or not. How can I do this? - Can I check a registry-key? - When yes, which key? 回答1: A RegistrySearch should do it: <Property Id="LOCALDB"> <RegistrySearch Id="SearchForLocalDB" Root="HKLM" Key="SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL11E.LOCALDB\MSSQLServer\CurrentVersion" Name="CurrentVersion" Type="raw" /> </Property> That would get you the version. 回答2: Checking from the registry may not work all the time becasue

Generating beans for wix.xsd with jaxb fails since schema seems to be invalid

房东的猫 提交于 2020-01-03 03:05:37
问题 I'm using JAXB (from Java 7) to generate beans for the schema definitions of WiX. But this generation fails since the wix.xsd (from the source tree of WiX 3.7) contains some regex with word boundary and other delimiters which are not allowed in a regex inside an xml schema definition. Is there any way to proceed besides changing the schema definitions? 来源: https://stackoverflow.com/questions/17680481/generating-beans-for-wix-xsd-with-jaxb-fails-since-schema-seems-to-be-invalid

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%

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

Deploy multiple WCF Webservices with WiX Toolset - Wrong svc files

泄露秘密 提交于 2019-12-24 19:29:16
问题 I'm trying to use the WIX Toolset 3.7 in VS2012 to create an installer for my WFC services. All services got the same structure: The service.svc is simply linking to the specific class <%@ ServiceHost Language="C#" Debug="true" Service="LandwehrServices.Service.Vorlage.ServiceOption" Factory="ServiceCreator.DigestAuthenticationHostFactory" %> The dlls are getting installed right, but all folders contain the same service.svc (of the first installed service) file... This is my Product.wxs <Wix

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