result=SessionVar.Get("%AppFolder%"); proversion=SessionVar.Get("%ProductVer%"); Registry.CreateKey(HKEY_LOCAL_MACHINE,"SOFTWARE\\*******\\***") Registry.SetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\*******\\***", "exePath", result, REG_SZ); Registry.SetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\******\\***", "version", proversion, REG_SZ);
%ProductVer%对应文档
标签:HKEY,setup,factory,MACHINE,Registry,注册表,LOCAL,SOFTWARE From: https://www.cnblogs.com/bklsj/p/18075033