cybermcm
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Applications
Posts posted by cybermcm
-
-
I'm trying the following:
define a global variable, e.g. "7zip"
create a PowerShell "before updating" global command: "$7zip = $GlobalVars.'7zip'.CachedContent"
then try using this in a PowerShell command "after downloading": $7zip x c:\temp\test.zipThis is not working, it seems that $7zip is not defined when "after downloading" script is executed.
Any ideas how to solve that? Putting "$7zip = $GlobalVars.'7zip'.CachedContent" within the "after download" section works but then I'd have to put it in every application which I want to avoid...
Powershell: use global variable before updating
in General discussion
Posted
thx @shawn for your answer.
1) no I got it right, my example isn't described enough, I assume I know the difference
2) this explains why it isn't working and was already coming to my mind that the scripts are running for themselves
and thx again for a possible workaround addressing my issue