(imported topic written by Edj)
I am currently creating an action script using IF…Then…Else…Elseif.
I am encountering an issue in which all lines are executed, ignoring the IF…Then. I have listed the action text.
Thanks for the help.
Edj
if {value “ProductType” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ProductOptions” of registry = “WinNT”} then
dos del /f /q “{pathname of windows folder & “\Iama-nonbranchserver.exe”}”
delete __appendfile
appendfile Yes
move __appendfile “{pathname of windows folder & “\Iama-nonbranchworkstation.exe”}”
dos del /f /q “{pathname of windows folder & “\shore.exe”}”
delete __appendfile
appendfile Nonbranch Workstation
move __appendfile “{pathname of windows folder & “\shore.exe”}”
delete __appendfile
else
dos del /f /q “{pathname of windows folder & “\Iama-nonbranchserver.exe”}”
delete __appendfile
appendfile LOB
appendfile Test Server
move __appendfile “{pathname of windows folder & “\Iama-nonbranchserver.exe”}”
dos del /f /q “{pathname of windows folder & “\shore.exe”}”
delete __appendfile
appendfile Nonbranch Server
move __appendfile “{pathname of windows folder & “\shore.exe”}”
delete __appendfile
endif