[wix-users] Wix Bundle and DetectCondition

Jacqueline MARECHAL j.marechal at arcinfo.com
Wed Apr 21 00:14:10 PDT 2021


Hello Steve,

I need to detect the '.NET Desktop runtime' bundle, not the msi.
The bundle chains 4 msi packages, which all create their own key or value in the registry.
So, you are right, the detect condition is not really the problem, it is easy to detect the bundle. It is sufficient to detect each package.

My real question is how can we check if any more recent '.NET Desktop runtime' bundle is installed.
And I think that it is not feasible without additional code:
- Msi packages of same component for different version do not use common product or upgrade or component codes.
- Values are created in the registry using semantic version, which is not easy to compare
- Keys are also created using version, so that without code able to enumerate sub-keys of a given key, it is not possible to find them, ...
I also thought about work with folders and files, but the target directory can be change at installation :(

But, as you make me realize that it is not a detection problem, I will try to re-evaluate Install Condition in my custom bootstrapper, using specific condition token and variables.

Thank you :)
Jacqueline

-----Message d'origine-----
De : Steven Ogilvie <stogilvie at genetec.com> 
Envoyé : mardi 20 avril 2021 20:41
À : WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc : Jacqueline MARECHAL <j.marechal at arcinfo.com>
Objet : RE: Wix Bundle and DetectCondition

You can create a custom action that reads the registry "
SOFTWARE\\dotnet\\Setup\\InstalledVersions\\{bitness}\\sharedfx\\Microsoft.N
ETCore.App"

Where {bitness} is either x86 or x64 

And you will need to know the version you are looking for.

Steve

> -----Original Message-----
> From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of
> Jacqueline MARECHAL via wix-users
> Sent: April 20, 2021 2:26 PM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Cc: Jacqueline MARECHAL <j.marechal at arcinfo.com>
> Subject: Re: [wix-users] Wix Bundle and DetectCondition
> 
> CAUTION: *** EXTERNAL EMAIL, BE VIGILANT WITH LINKS ***
> 
> Ok, I understand.
> I will expressed it differently : how would you detect a version of .NET
> Desktop runtime.
> All ideas are welcome.
> 
> Thank you
> 
> De : Hoover, Jacob <Jacob.Hoover at greenheck.com> Envoyé : mardi 20 avril
> 2021 18:58 À : WiX Toolset Users Mailing List <wix-
> users at lists.wixtoolset.org> Cc : Jacqueline MARECHAL
> <j.marechal at arcinfo.com> Objet : RE: Wix Bundle and DetectCondition
> 
> Step 1, explain the problem.  Starting off by thinking you need to write
> custom code is a bit strange, as many have traversed the path before you
> using the existing capabilities and were able to accomplish the task at
hand.
> 
> From: wix-users <wix-users-bounces at lists.wixtoolset.org<mailto:wix-users-
> bounces at lists.wixtoolset.org>> On Behalf Of Jacqueline MARECHAL via wix-
> users
> Sent: Tuesday, April 20, 2021 11:16 AM
> To: wix-users at lists.wixtoolset.org<mailto:wix-users at lists.wixtoolset.org>
> Cc: Jacqueline MARECHAL
> <j.marechal at arcinfo.com<mailto:j.marechal at arcinfo.com>>
> Subject: [wix-users] Wix Bundle and DetectCondition
> 
> Hello,
> 
> I would like to build and evaluate complex DetectConditions.
> I thought of several possibilities:
> 
> 
> - Create an extension such util, to create additional functions like
string
> parse, search on regular expressions and so on.
> But I don't understand how to do this. Is there a document or a tutorial
about
> ?
> 
> 
> - Evaluate the condition directly in a custom bootstrapper.
> But it seems that it is not possible to get the DetectCondition attribute
of an
> ExePackage. InstallCondition is available, but not DetectCondition :(
> 
> Do you have any advice ? examples ? information ?
> 
> Thank you.
> 
> 
> __________________________________________________________
> __________
> WiX Toolset Users Mailing List provided by FireGiant
> https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.
> firegiant.com%2F&data=04%7C01%7Cstogilvie%40genetec.com%7C750
> 5f1c19d634cd6b25c08d90429bc63%7C7ba8d2fb46604a19802e4d015a17e167%
> 7C0%7C0%7C637545400041593857%7CUnknown%7CTWFpbGZsb3d8eyJWIjoi
> MC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C300
> 0&sdata=WHJF7f3kObrYIjJ%2FoNZtLk4VRDkA8WPx7oWCJYVzs2Y%3D&
> amp;reserved=0<https://can01.safelinks.protection.outlook.com/?url=http
> %3A%2F%2Fwww.firegiant.com%2F&data=04%7C01%7Cstogilvie%40ge
> netec.com%7C7505f1c19d634cd6b25c08d90429bc63%7C7ba8d2fb46604a1980
> 2e4d015a17e167%7C0%7C0%7C637545400041593857%7CUnknown%7CTWFp
> bGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVC
> I6Mn0%3D%7C3000&sdata=WHJF7f3kObrYIjJ%2FoNZtLk4VRDkA8WPx7
> oWCJYVzs2Y%3D&reserved=0>
> NOTE: This email was received from an external source. Please use caution
> when opening links or attachments in the message.
> 
> __________________________________________________________
> __________
> WiX Toolset Users Mailing List provided by FireGiant
> https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.
> firegiant.com%2F&data=04%7C01%7Cstogilvie%40genetec.com%7C750
> 5f1c19d634cd6b25c08d90429bc63%7C7ba8d2fb46604a19802e4d015a17e167%
> 7C0%7C0%7C637545400041593857%7CUnknown%7CTWFpbGZsb3d8eyJWIjoi
> MC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C300
> 0&sdata=WHJF7f3kObrYIjJ%2FoNZtLk4VRDkA8WPx7oWCJYVzs2Y%3D&
> amp;reserved=0



More information about the wix-users mailing list