Replies: 1 comment 1 reply
-
I am not sure that the syntax you use is a valid WiX syntax. It seems to me that it has to be a simple boolean expression based on bundle variables. https://support.firegiant.com/hc/en-us/articles/230912167-How-the-DetectCondition-attribute-on-ExePackage-element-is-used Unfortunately, you cannot use any custom behaviour to evaluate the DetectCondition like in MSI. WiX teams did not offer any Bundle hook (API) for that. So you have to rely on their own tools - extensions. Thus you can use ProductSearch extension. You can see how to use it in this sample: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all,
I'm using ExePackage in my Bundle to install an application, and I want to check whether the driver already has been installed using the DetectCondition parameter:
new ExePackage(@"SomeDriver.exe")
{
Name = "SomeDriver 1.4",
Vital = true,
UninstallArguments = "/uninstall /quiet /norestart",
DetectCondition = "FileExists(C:\Program Files (x86)\SomeDriver\SomeDriver.exe)"
}
However, I receive the parse condition error:
[1994:195C][2025-01-06T21:09:20]e000: Error 0x8007000d: Failed to parse condition 'FileExists(C:\Program Files (x86)\SomeDriver\SomeDriver.exe)' at position: 10
[1994:195C][2025-01-06T21:09:20]e000: Error 0x8007000d: Failed to expect end symbol.
[1994:195C][2025-01-06T21:09:20]e051: Error 0x8007000d. Failed to parse condition FileExists(C:\Program Files (x86)\SomeDriver\SomeDriver.exe).
[1994:195C][2025-01-06T21:09:20]e000: Error 0x8007000d: Failed to evaluate EXE package detect condition.
It looks like FileExists is not supported (yet)? If not, is there another way?
Beta Was this translation helpful? Give feedback.
All reactions