[wix-users] Wrong Powershell version
Walter Dexter
wfdexter at gmail.com
Sat Jul 18 17:35:00 PDT 2020
The “installed” is so it runs during uninstall.
> On Jul 18, 2020, at 6:29 PM, Roberto via wix-users <wix-users at lists.wixtoolset.org> wrote:
>
> Hi,
>
> I have the following in my product.wxs to check the installed PSVERSION on my machine
>
> // WixPSExtension
> <PropertyRef Id="POWERSHELLVERSION" />
> <Condition Message="[POWERSHELLVERSION]">
> <![CDATA[Installed OR POWERSHELLVERSION <= "1.0"]]>
> </Condition>
>
> During install it shows: 2.0
>
> Get-Host | Select-Object Version gives me:
>
> Version
> -------
> 5.1.18362.752
>
> What is wrong with my XML?
>
> Also I don't understand the condition from above:
>
> 1. Installed - For me it sounds like, if is installed (but in reality it executes only if "not installed")
> 2. why `or` ?
>
>
>
>
>
>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users
mailing list