Если Вы уверены, что содержание переменной ПУТИ корректно, то проверьте реестр:
Можно изменить его на REG_EXPAND_SZ путем выполнения этого:
* Double Click “Path” and copy it’s Data Value “…%SystemRoot%system32;%SystemRoot%; …”
* Delete the “Path”
* Create New > Expandable String Value
* Give “Path” as the name, double click it, and Paste the value copied in the previous step to the “Value Data” field