Quantcast
Channel: Symantec Connect
Viewing all articles
Browse latest Browse all 28681

WiseScript Variable Value in Variable

$
0
0
I need a solution

Hello,

 

I want to set a variable value with a variablename.

Sample:

Set Variable VALUE_1 to {02B6E651-686D-4BCD-8A93-C07B01761745}

Set Variable COUNTER to %COUNTER%+1

Set Variable EXECUTE to %VALUE_%COUNTER%%%

In this Sample is the Value of EXECUTE now %VALUE_1%.

But I need the Value of VALUE_1 to be EXECUTE. (In this case EXECUTE should be {02B6E651-686D-4BCD-8A93-C07B01761745})

Because i call the variable in an "Execute Programm" Action as Command Line Parameter.

Thanks for Help!

 

PS: My goal is to create an While-loop like this:

item: Set Variable
  Variable=VALUE_1
  Value={02B6E651-686D-4BCD-8A93-C07B01761745}
end
item: Set Variable
  Variable=VALUE_2
  Value={0607F297-8670-483C-8947-61A572473DEF}
end
item: Set Variable
  Variable=VALUE_3
  Value={0AAB121C-8EA7-49F5-B37C-DF117FB46771}
end
item: Remark
end
item: If/While Statement
  Variable=COUNTER
  Value=10
  Flags=00010001
end
item: Remark
end
item: Set Variable
  Variable=COUNTER
  Value=%COUNTER%
  Flags=00000100
end
item: Set Variable
  Variable=MSIGUID
  Value=%%VALUE_%COUNTER%%%
end
item: Set Variable
  Variable=EXECUTE
  Value=msiexec /x %MSIGUID% /qs
end
item: Remark
end
item: End Block
end
 

 


Viewing all articles
Browse latest Browse all 28681

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>