[wix-users] Wrong Powershell version
Edwin Castro
egcastr at gmail.com
Sun Jul 19 10:26:24 PDT 2020
I have gmail configured to use reply all by default. That seems to add
individuals in the TO field and the mailing list in the CC field. If you
don't reply all, then always reply to the mailing list so everybody can
benefit from the discussion.
--
Edwin G. Castro
On Sun, Jul 19, 2020, 01:42 <jovan27 at gmx.de> wrote:
> Shouldn’t the `POWERSHELLVERSION ` be pointing to the latest version then?
>
> Otherwise it shows an old version of PS.
>
> Btw. When I answer a reply in the `wix-users` mailing list, should I use
> Reply All or just Reply?
>
> Means should I additionally add the user who replied?
>
>
>
> *From:* Edwin Castro [mailto:egcastr at gmail.com]
> *Sent:* Sonntag, 19. Juli 2020 02:38
> *To:* WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> *Cc:* jovan27 at gmx.de
> *Subject:* Re: [wix-users] Wrong Powershell version
>
>
>
> The WixPSExtension looks at the PowerShellVersion value in the
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine key to
> populate the POWERSHELLVERSION property.
>
>
>
> On my system
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine shows
> the correct expected version.
>
>
>
> C:\> $PSVersionTable
>
> Name Value
> ---- -----
> PSVersion 5.1.18362.145
> PSEdition Desktop
> PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
> BuildVersion 10.0.18362.145
> CLRVersion 4.0.30319.42000
> WSManStackVersion 3.0
> PSRemotingProtocolVersion 2.3
> SerializationVersion 1.1.0.1
>
>
> C:\> Get-Host | Select-Object Version
>
> Version
> -------
> 5.1.18362.145
>
>
> C:\> Get-ItemProperty
> HKLM:\SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine | Select-Object
> PowerShellVersion
>
> PowerShellVersion
> -----------------
> 2.0
>
>
> C:\> Get-ItemProperty
> HKLM:\SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine | Select-Object
> PowerShellVersion
>
> PowerShellVersion
> -----------------
> 5.1.18362.1
>
>
> C:\>
>
>
>
> --
>
> Edwin G. Castro
>
>
>
>
>
> On Sat, Jul 18, 2020 at 4: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