最新消息:

常量大全

nsis 永恒心锁 1479浏览 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
永恒心锁,版权所有丨如未注明,均为转载丨本网站采用BY-NC-SA协议进行授权

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

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