Hi ,

issue: I need to replace the i.p address of a software on the computers.

my solution is:

1. delete the registry

2. replace the registry

I am able to successfully add the registry but unfortunately, it does not delete the registry 

I tried the following: 

1. 

if true

executeshellcommand ("REG DELETE HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\ADSKFLEX_LICENSE_FILE  /v @ip,  "Execute as user", "All Operating System", "Halt on Fail")

2. 

if true

executeshellcommand ("%WINDIR%System32\reg.exe REG DELETE HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\ADSKFLEX_LICENSE_FILE,  "Execute as user", "All Operating System", "Halt on Fail")

3.

if true

deleteRegistryKey("%WINDIR%System32\reg.exe REG DELETE HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SessionManager\Environment\ADSKFLEX_LICENSE_FILE", "Execute as user", "All Operating System", "Halt on Fail")

Those 3 does not work , is there any suggestion on how to delete it? 

just additional information:

Name: ADSKFLEX_LICENSE_FILE

Type: REG_SZ

Data:@ip address