I can specify installation directory and registry value in NSIS like this:
InstallDir "$PROGRAMFILES\CTVI"
InstallDirRegKey HKLM "Software\CTVI" "Install_Dir"
Now I can access InstallDir
by using the notation $INSTDIR
throughout the script. How do I similarly access InstallDirRegKey
? Is there a similar notation as there exists for InstallDir
? I tried $INSTDIRREGKEY
but that is not. Now what I do is that I type HKLM "Software\\CTVI" "Install_Dir"
everytime I require it. But that is not so DRY :)
使用InstallDirRegKey
属性时,NSIS将在启动时查找指定的注册表项,如果找到路径,则会在任何代码运行之前将该值放在$Instdir
...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.