You can embed a single powershell command into an wxs file like this:
AnnouncementI have released my new course on Udemy, Kubernetes By Example. Sign up now to get free lifetime access!
NOT Installed AND NOT PATCH
Note, if DIR_v1.0 path contains spaces, e.g. “program files”, then you need to use “&qoute;”
Here’s another example, but this time using installutil.exe as an example:
NOT Installed AND NOT PATCH Installed
Any folder reference’s e.g. “DIR_v2” within square-brackets automatically get’s expanded.