Jump to content
Ketarin forum

problem executing powershell command with online database app


cdumdum
 Share

Recommended Posts

hi everyone, i try to modify the version variable like this :

 

<Variables>
<item>
<key>
<string>version</string>
</key>
<value>
<UrlVariable>
<RegexRightToLeft>false</RegexRightToLeft>
<VariableType>Textual</VariableType>
<Regex/>
<TextualContent>{psversion:ps}</TextualContent>
<Name>version</Name>
</UrlVariable>
</value>
</item>
<item>
<key>
<string>psversion</string>
</key>
<value>
<UrlVariable>
<RegexRightToLeft>false</RegexRightToLeft>
<VariableType>Textual</VariableType>
<Regex/>
<TextualContent>[System.Diagnostics.FileVersionInfo]::GetVersionInfo("{file}").FileVersion </TextualContent>
<Name>psversion</Name>
</UrlVariable>
</value>
</item>
</Variables>
 
but with an app from online database it doesn't work :
 
28/02/2022 22:53:41: Notepadplus: Replacing {psversion} in '{psversion:ps}' with '[System.Diagnostics.FileVersionInfo]::GetVersionInfo("C:\Users\Dumont\Downloads2\clef usb programme\clef\programmes personnels  gratuits\Ketarin\..\installateur\Notepadplus\npp.8.3.2.Installer.exe").FileVersion '
28/02/2022 22:53:41: Notepadplus: PowerShell command of downloaded application is not executed for security reasons.
28/02/2022 22:53:41: Notepadplus: Replacing {version} in '{version}' with ''

 

How can i perform this with an online database app ?
 
 
 
Link to comment
Share on other sites

  • 2 weeks later...

Hi, @cdumdum, welcome aboard!

Are you running Windows 8? What version of PowerShell do you have installed?

You might be able to get around this problem by using this instead:

Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process; [System.Diagnostics.FileVersionInfo]::GetVersionInfo("{file}").FileVersion

Please let me know if this works for you.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.