最新消息:

常量大全

nsis 永恒心锁 1788浏览 0评论
;运行后会在桌面生成NSIS常量大全.txt文件
Name "NSIS常量大全"
SilentInstall silent
OutFile "NSIS常量大全.exe"
RequestExecutionLevel user

Section ""

  FileOpen $0 "$DESKTOPNSIS常量大全.txt" w
  
  FileWrite $0 "$$EXEFILE=$EXEFILE$r$n"
  FileWrite $0 "$$NSISDIR=${NSISDIR}$r$n"
  FileWrite $0 "$$WINDIR=$WINDIR$r$n"
  FileWrite $0 "$$SYSDIR=$SYSDIR$r$n"
  FileWrite $0 "$$PROGRAMFILES=$PROGRAMFILES$r$n"
  FileWrite $0 "$$PROGRAMFILES32=$PROGRAMFILES32$r$n"
  FileWrite $0 "$$PROGRAMFILES64=$PROGRAMFILES64$r$n"
  FileWrite $0 "$$COMMONFILES=$COMMONFILES$r$n"
  FileWrite $0 "$$COMMONFILES32=$COMMONFILES32$r$n"
  FileWrite $0 "$$COMMONFILES64=$COMMONFILES64$r$n"
  FileWrite $0 "$$RESOURCES=$RESOURCES$r$n"
  FileWrite $0 "$$RESOURCES_LOCALIZED=$RESOURCES_LOCALIZED$r$n"
  FileWrite $0 "$$FONTS=$FONTS$r$n"
  FileWrite $0 "$$HWNDPARENT=$HWNDPARENT$r$n"
  FileWrite $0 "$$PLUGINSDIR=$PLUGINSDIR$r$n$r$n"

  FileWrite $0 "$r$n"
  FileWrite $0 "$r$n"
  FileWrite $0 "$r$n"

  ;设置为当前用户
  SetShellVarContext current
  FileWrite $0 "以下为当前用户$r$n"
  FileWrite $0 "$$PROFILE=$PROFILE$r$n"
  FileWrite $0 "$$DESKTOP=$DESKTOP$r$n"
  FileWrite $0 "$$EXEDIR=$EXEDIR$r$n"
  FileWrite $0 "$$TEMP=$TEMP$r$n"
  FileWrite $0 "$$STARTMENU=$STARTMENU$r$n"
  FileWrite $0 "$$SMPROGRAMS=$SMPROGRAMS$r$n"
  FileWrite $0 "$$SMSTARTUP=$SMSTARTUP$r$n"
  FileWrite $0 "$$QUICKLAUNCH=$QUICKLAUNCH$r$n"
  FileWrite $0 "$$SENDTO=$SENDTO$r$n"
  FileWrite $0 "$$RECENT=$RECENT$r$n"
  FileWrite $0 "$$NETHOOD=$NETHOOD$r$n"
  FileWrite $0 "$$TEMPLATES=$TEMPLATES$r$n"
  FileWrite $0 "$$APPDATA=$APPDATA$r$n"
  FileWrite $0 "$$LOCALAPPDATA=$LOCALAPPDATA$r$n"
  FileWrite $0 "$$PRINTHOOD=$PRINTHOOD$r$n"
  FileWrite $0 "$$INTERNET_CACHE=$INTERNET_CACHE$r$n"
  FileWrite $0 "$$COOKIES=$COOKIES$r$n"
  FileWrite $0 "$$HISTORY=$HISTORY$r$n"
  FileWrite $0 "$$ADMINTOOLS=$ADMINTOOLS$r$n"
  FileWrite $0 "$$CDBURN_AREA=$CDBURN_AREA$r$n"
  FileWrite $0 "$$DOCUMENTS=$DOCUMENTS$r$n"
  FileWrite $0 "$$FAVORITES=$FAVORITES$r$n"
  FileWrite $0 "$$MUSIC=$MUSIC$r$n"
  FileWrite $0 "$$PICTURES=$PICTURES$r$n"
  FileWrite $0 "$$VIDEOS=$VIDEOS$r$n"

  FileWrite $0 "$r$n"
  FileWrite $0 "$r$n"
  FileWrite $0 "$r$n"
	
  ;设置为所有用户
  SetShellVarContext all
  FileWrite $0 "以下为所有用户$r$n"
  FileWrite $0 "$$PROFILE=$PROFILE$r$n"
  FileWrite $0 "$$DESKTOP=$DESKTOP$r$n"
  FileWrite $0 "$$EXEDIR=$EXEDIR$r$n"
  FileWrite $0 "$$TEMP=$TEMP$r$n"
  FileWrite $0 "$$STARTMENU=$STARTMENU$r$n"
  FileWrite $0 "$$SMPROGRAMS=$SMPROGRAMS$r$n"
  FileWrite $0 "$$SMSTARTUP=$SMSTARTUP$r$n"
  FileWrite $0 "$$QUICKLAUNCH=$QUICKLAUNCH$r$n"
  FileWrite $0 "$$SENDTO=$SENDTO$r$n"
  FileWrite $0 "$$RECENT=$RECENT$r$n"
  FileWrite $0 "$$NETHOOD=$NETHOOD$r$n"
  FileWrite $0 "$$TEMPLATES=$TEMPLATES$r$n"
  FileWrite $0 "$$APPDATA=$APPDATA$r$n"
  FileWrite $0 "$$LOCALAPPDATA=$LOCALAPPDATA$r$n"
  FileWrite $0 "$$PRINTHOOD=$PRINTHOOD$r$n"
  FileWrite $0 "$$INTERNET_CACHE=$INTERNET_CACHE$r$n"
  FileWrite $0 "$$COOKIES=$COOKIES$r$n"
  FileWrite $0 "$$HISTORY=$HISTORY$r$n"
  FileWrite $0 "$$ADMINTOOLS=$ADMINTOOLS$r$n"
  FileWrite $0 "$$CDBURN_AREA=$CDBURN_AREA$r$n"
  FileWrite $0 "$$DOCUMENTS=$DOCUMENTS$r$n"
  FileWrite $0 "$$FAVORITES=$FAVORITES$r$n"
  FileWrite $0 "$$MUSIC=$MUSIC$r$n"
  FileWrite $0 "$$PICTURES=$PICTURES$r$n"
  FileWrite $0 "$$VIDEOS=$VIDEOS$r$n$r$n"

  FileClose $0

SectionEnd
免责声明:根据《计算机软件保护条例》第十七条规定“为了学习和研究软件内含的设计思想和原理,通过安装、显示、传输或者存储软件等方式使用软件的,可以不经软件著作权人许可,不向其支付报酬。”您需知晓本站所有内容资源均来源于网络,仅供用户交流学习与研究使用,版权归属原版权方所有,版权争议与本站无关,用户本人下载后不能用作商业或非法用途,需在24个小时之内从您的电脑中彻底删除上述内容,否则后果均由用户承担责任;如果您访问和下载此文件,表示您同意只将此文件用于参考、学习而非其他用途,否则一切后果请您自行承担,如果您喜欢该程序,请支持正版软件,购买注册,得到更好的正版服务。丨本站为个人博客非盈利性站点,所有软件信息均来自网络,所有资源仅供学习参考研究目的,并不贩卖软件,不存在任何商业目的及用途。丨本文采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权BY-NC-SA协议进行授权

转载请注明:永恒心锁-分享互联网 » 常量大全

您必须 登录 才能发表评论!