I am sooo close but when ever I test, I don't get the desired result.

This is the code I have now...


IF @WKSTA="TS-SERVER"
$User=ReadValue('HKEY_CURRENT_USER\Software\GoldMine\GoldMine Link for Microsoft Outlook','GMUserName')
If $User 'NONUSER'
Shell 'regedit /s "\\MAIN-SERVER\Support\Goldmine\GISMO\GISMO.reg"'
?"GISMO Installed for " @userid
Else
?"GISMO Already Installed for " @userid
EndIf


When I test this, the key imports fine when the value is set to NONUSER. However, if I change this value to USER1, within the registry and then run the script again, it still imports the .reg file. I want it to ignore the import .reg command if anything but NONUSER is the value of the key.

What have I got wrong?


Edited by jon (2007-01-16 03:27 PM)