Comments (7)
A workaround that might work is to define your MsiProperty
with an undefined variable reference. Like MsiProperty Value='[THISISNOTAVARIABLE]'
. At compile time, the value will not be empty, and at install time, the value will resolve to an empty string as you desire.
I have not tested this, so it is possible Burn v4 was changed to ignore properties that resolve to blank. But it's worth a shot. Let us know if that works.
from issues.
I'm trying to understand the gap your trying to solve. You mention silent install so presumably these are public properties (All CAPS) and more specifically Secure Custom Public Properties listed in the SecureCustomPublicProperties property. Just add the Secure attribute and the error should go away.
If this is not a property passed at the command line (private property) then just remove the property. If something is setting the property during the install it can do so dynamically. The property doesn't need to exist in the property table.
Is there some other scenario I'm not thinking of?
from issues.
I am trying to install the MariaDB MSI by chaining it into the WiX Bundle as follows:
`
<!-- Install MariaDB. -->
<MsiPackage SourceFile="$(var.ProjectDir)\Redistributables\mariadb-10.11.5-winx64.msi" Permanent="yes" Visible="no" Vital="yes">
<MsiProperty Name="CLEANUPDATA" Value="" />
. . .
`
The MsiProperty with an empty Value produces a WiX compiler error.
I interpret the MariaDB Silent Install documentation as needing CLEANUPDATA to be defined as a public property with an empty value to have the boolean value false. (See https://mariadb.com/kb/en/installing-mariadb-msi-packages-on-windows/#silent-installation)
from issues.
If your never going to pass a value then don't pass the property at all. If your going to have some kind of UI in the bootstrapper to let the user selelct the value or let them pass it from the command line to the bootstrapper then define a WiXVariable and assign that to the MsiProperty.
from issues.
Needs to allow overriding a default (e.g., =1
) with a value that indicates false (typically 0
but MSI uses a lot of empty strings to indicate false).
from issues.
It appears not to work. While it compiles without error, I see the following in the MariaDB .log file (CLEANUPDATA is the MsiProperty I am trying to set to an empty string):
`MSI (s) (40:F8) [12:23:01:118]: Command Line: CLEANUPDATA= DATADIR=C:\ProgramData. . .
. . .
MSI (s) (40:F8) [12:23:01:124]: Product installation will be elevated because user is admin and product is being installed per-machine.
MSI (s) (40:F8) [12:23:01:124]: Running product '{A5340DA7-FAD1-4775-86A7-3E165A5A5449}' with elevated privileges: Product is assigned.
MSI (s) (40:F8) [12:23:01:124]: PROPERTY CHANGE: Deleting CLEANUPDATA property. Its current value is '1'.
`
So even though I set it is still indicating a value of '1', which means it is true. I am not sure why it indicates it is "Deleting" it.
from issues.
I get the same log messages but it works in my case. The Data folder is still there after mariadb uninstall.
<Property Id="CLEANUPDATAPROPERTY" Secure="yes" />`
...
<MsiProperty Name="CLEANUPDATA" Value="[CLEANUPDATAPROPERTY]" />
from issues.
Related Issues (20)
- Allow Merge Module inclusion with default feature
- WiX 5 auto-harvest (Files) creates two equal directories in the msi file
- Schema doc omits `attributeGroup` documentation
- ExePackagePayload Version attribute nullable object must have a value HOT 4
- Files-In-Use checking does not work with dynamic names HOT 3
- Files element requires the "Keep empty directories" attribute.
- Produce a wix-cli.msi HOT 6
- WixToolset.Firewall.wixext missing version information
- `wix extension list` does not display machine-wide extensions
- Build Error [NuGet security analysis]: Package 'System.Text.Json' 4.6.0 has a known high severity vulnerability error when attempting to build from fresh git clone HOT 5
- .NET 4.8 Redist signatures have changed -- causing install failures HOT 5
- Package with MSMQ custom action fails to install HOT 4
- Util User: Not able to create Domain user in standard usage HOT 2
- Managed CustomActions leave behind `SFXCA` folders
- Schedule actions based on symbols and tables
- Files element require registry key under HKCU and listed in the RemoveFile table HOT 5
- TouchFile fails due to 64-bit initialization HOT 2
- Error 2318: File does not exist HOT 1
- Page Not Found: /documentation/
- Upgrade from 3.14.1 to 5 causes incorrect `DesktopFolder` HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from issues.