cdumdum Posted February 28, 2022 Report Share Posted February 28, 2022 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 More sharing options...
shawn Posted March 13, 2022 Report Share Posted March 13, 2022 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now