wix3.5

Error LGHT0301: Failed to open the database

安稳与你 提交于 2019-11-29 07:33:01
问题 I'm using WiX 3.5. Recently, the following WiX error started occurring frequently on the build server: light.exe (,): error LGHT0301: Failed to open the database. During validation, this most commonly happens when attempting to open a database using an unsupported code page or a file that is not a valid Windows Installer database. Please use a different code page in Module/@Codepage, Package/@SummaryCodepage, Product/@Codepage, or WixLocalization/@Codepage; or make sure you provide the path

WiX installer fails with error code 2819

旧街凉风 提交于 2019-11-29 03:02:35
I am trying to create an installer using WiX which doesn't show the license agreement at the start. But I get the error as below. This is the full Product.wxs file I have at the moment. It compiles and builds OK. Why am I getting an error like this? Is my Fragment section in the right place? I have removed the Publish elements pertaining to license and modified the welcome dialog's next button to show the install directory dialog instead of license agreement. This is as mentioned in the help chm file. What am I missing then? <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas

How do I distinguish between a normal install and an upgrade in WIX?

十年热恋 提交于 2019-11-29 03:02:27
问题 I have some custom actions that I only want to execute in an upgrade scenario. I am trying to set some properties, for example "MYPROPERTY"... When I come in via a standard install, I can set them, and an example of that XML is as follows... <Custom Action="SetMyPropertyToOn" After="exampleActionRuuningBeforeThisOne"> (ENABLEMYPROPERTY_CB) AND (NOT ENABLEMYPROPERTY_CB="0") AND (NOT ENABLEMYPROPERTY) AND (NOT Installed)</Custom> It runs in a normal install... I would also like it to run in an

wix specify licence shows nothing

試著忘記壹切 提交于 2019-11-29 01:27:34
问题 I'm trying to specify the licence for my wix setup project. I have created a rtf with a few dummy lines in wordpad/notepad/vs tried a few different ways as I read there was an issue with ones created in word but I dont think that should apply here, in any case I also opened it up in notepad++ and verified there is no funky characters hidden in it. I am specifying the file like so <WixVariable Id="WixUILicenseRtf" Value="$(var.ProjectDir)\Resources\test.rtf" /> And the file exists under the

How to create a directory in wix?

给你一囗甜甜゛ 提交于 2019-11-29 01:02:12
My requirement is to create a directory in programdata/test/example . How can I do that in wix? Define the folder like this: <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="CommonAppDataFolder"> <Directory Id="TestFolder" Name="test"> <Directory Id="ExampleFolder" Name="example" /> </Directory> </Directory> </Directory> The important part here is the CommonAppDataFolder Id, which is known by Windows installer. You can find the full list of known system folders in the Windows Installer Property Reference . If you install any files to that folder, it will be created implicitly. If not

Error 2896 using a WiX C#/.NET 4 custom action

独自空忆成欢 提交于 2019-11-28 20:47:39
I am trying to use my first custom action in WiX and I get: error 2896: Executing action CustomActionTest failed. I am using Visual Studio 2010, WiX 3.5, 64-bit Windows 7 Ultimate, .NET Framework 4. Here are what I think are the relevant sections: <Binary Id="JudgeEditionCA" SourceFile="..\JudgeEditionCA\bin\Debug\JudgeEdition.CA.dll" /> <CustomAction Id="CustomActionTest" BinaryKey="JudgeEditionCA" DllEntry="CustomActionOne" Execute="immediate"/> <Control Id="Next" Type="PushButton" X="248" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" > <Publish Event="DoAction" Value=

WiX: dynamically changing the status text during CustomAction

≡放荡痞女 提交于 2019-11-28 11:17:01
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. Deferred Custom Actions can call the MsiProcessMessage function. You can then use INSTALLMESSAGE_ACTIONSTART, INSTALLMESSAGE_ACTIONDATA and INSTALLMESSAGE_PROGRESS to publish messages up to the UI. Another possibility would be to break your

How to create a .NET event log source using WiX

风格不统一 提交于 2019-11-28 09:54:24
This is an intentional semi-duplicate of How do you create an event log source using WiX and WIX: Create EventSource using .NET message file . My first question is, does it really have to be so complicated? Isn't there some way to simply specify to WiX, "my program is a .Net program, and it needs to write to the event log - please do the necessary setup"? OK, assuming that isn't possible, I'd like to receive any recommendations for the necessary WiX statements to make it work, irrespective of which version of .Net Framework is installed, and irrespective of whether it is a 32 or 64-bit system.

WIX UI for multiple target directories

僤鯓⒐⒋嵵緔 提交于 2019-11-28 09:25:36
问题 I need the User to be able to set multiple different target directories for my installation. I have this directory structure: <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> <Directory Id="DCOMPANY" Name="MyCompany" > <Directory Id="DMAIN" Name="MainDir"> <Directory Id="DPART1" Name="Part1"/> <Directory Id="DPART2" Name="Part2"/> </Directory> </Directory> </Directory> </Directory> I also have these Properties here <Property Id="WIXUI_INSTALLPATH" Hidden="yes" /

Custom Action in C# used via WiX fails with error 1154

风流意气都作罢 提交于 2019-11-28 09:04:51
I am using WiX 3.5.1930 in Visual Studio 2010, targeting the .NET Framework 3.5. (Later weekly builds of WiX seem to be very broken with respect to their custom action template, at least for now. 1930 is the most recent build that seems to make a buildable C# CA with working references.) I have two custom action assemblies written in C#. One of them works fine. The other fails with the following error: CustomActionnNameHere returned actual error code 1154 (note this may not be 100% accurate if translation happened inside sandbox) I have compared the .csproj files and .wixproj files, and as