zoukankan      html  css  js  c++  java
  • [转]NSIS:常量大全

    ;轻狂志www.flighty.cn
    ;运行后会在桌面生成NSIS常量大全.txt文件
    Name "NSIS常量大全"
    SilentInstall silent
    OutFile "NSIS常量大全.exe"
    RequestExecutionLevel user
    
    Section ""
    
      FileOpen $0 "$DESKTOPNSIS常量大全.txt" w
      
      FileWrite $0 "$$EXEFILE=$EXEFILE$
    $
    "
      FileWrite $0 "$$NSISDIR=${NSISDIR}$
    $
    "
      FileWrite $0 "$$WINDIR=$WINDIR$
    $
    "
      FileWrite $0 "$$SYSDIR=$SYSDIR$
    $
    "
      FileWrite $0 "$$PROGRAMFILES=$PROGRAMFILES$
    $
    "
      FileWrite $0 "$$PROGRAMFILES32=$PROGRAMFILES32$
    $
    "
      FileWrite $0 "$$PROGRAMFILES64=$PROGRAMFILES64$
    $
    "
      FileWrite $0 "$$COMMONFILES=$COMMONFILES$
    $
    "
      FileWrite $0 "$$COMMONFILES32=$COMMONFILES32$
    $
    "
      FileWrite $0 "$$COMMONFILES64=$COMMONFILES64$
    $
    "
      FileWrite $0 "$$RESOURCES=$RESOURCES$
    $
    "
      FileWrite $0 "$$RESOURCES_LOCALIZED=$RESOURCES_LOCALIZED$
    $
    "
      FileWrite $0 "$$FONTS=$FONTS$
    $
    "
      FileWrite $0 "$$HWNDPARENT=$HWNDPARENT$
    $
    "
      FileWrite $0 "$$PLUGINSDIR=$PLUGINSDIR$
    $
    $
    $
    "
    
      FileWrite $0 "$
    $
    "
      FileWrite $0 "$
    $
    "
      FileWrite $0 "$
    $
    "
    
      ;设置为当前用户
      SetShellVarContext current
      FileWrite $0 "以下为当前用户$
    $
    "
      FileWrite $0 "$$PROFILE=$PROFILE$
    $
    "
      FileWrite $0 "$$DESKTOP=$DESKTOP$
    $
    "
      FileWrite $0 "$$EXEDIR=$EXEDIR$
    $
    "
      FileWrite $0 "$$TEMP=$TEMP$
    $
    "
      FileWrite $0 "$$STARTMENU=$STARTMENU$
    $
    "
      FileWrite $0 "$$SMPROGRAMS=$SMPROGRAMS$
    $
    "
      FileWrite $0 "$$SMSTARTUP=$SMSTARTUP$
    $
    "
      FileWrite $0 "$$QUICKLAUNCH=$QUICKLAUNCH$
    $
    "
      FileWrite $0 "$$SENDTO=$SENDTO$
    $
    "
      FileWrite $0 "$$RECENT=$RECENT$
    $
    "
      FileWrite $0 "$$NETHOOD=$NETHOOD$
    $
    "
      FileWrite $0 "$$TEMPLATES=$TEMPLATES$
    $
    "
      FileWrite $0 "$$APPDATA=$APPDATA$
    $
    "
      FileWrite $0 "$$LOCALAPPDATA=$LOCALAPPDATA$
    $
    "
      FileWrite $0 "$$PRINTHOOD=$PRINTHOOD$
    $
    "
      FileWrite $0 "$$INTERNET_CACHE=$INTERNET_CACHE$
    $
    "
      FileWrite $0 "$$COOKIES=$COOKIES$
    $
    "
      FileWrite $0 "$$HISTORY=$HISTORY$
    $
    "
      FileWrite $0 "$$ADMINTOOLS=$ADMINTOOLS$
    $
    "
      FileWrite $0 "$$CDBURN_AREA=$CDBURN_AREA$
    $
    "
      FileWrite $0 "$$DOCUMENTS=$DOCUMENTS$
    $
    "
      FileWrite $0 "$$FAVORITES=$FAVORITES$
    $
    "
      FileWrite $0 "$$MUSIC=$MUSIC$
    $
    "
      FileWrite $0 "$$PICTURES=$PICTURES$
    $
    "
      FileWrite $0 "$$VIDEOS=$VIDEOS$
    $
    "
    
      FileWrite $0 "$
    $
    "
      FileWrite $0 "$
    $
    "
      FileWrite $0 "$
    $
    "
        
      ;设置为所有用户
      SetShellVarContext all
      FileWrite $0 "以下为所有用户$
    $
    "
      FileWrite $0 "$$PROFILE=$PROFILE$
    $
    "
      FileWrite $0 "$$DESKTOP=$DESKTOP$
    $
    "
      FileWrite $0 "$$EXEDIR=$EXEDIR$
    $
    "
      FileWrite $0 "$$TEMP=$TEMP$
    $
    "
      FileWrite $0 "$$STARTMENU=$STARTMENU$
    $
    "
      FileWrite $0 "$$SMPROGRAMS=$SMPROGRAMS$
    $
    "
      FileWrite $0 "$$SMSTARTUP=$SMSTARTUP$
    $
    "
      FileWrite $0 "$$QUICKLAUNCH=$QUICKLAUNCH$
    $
    "
      FileWrite $0 "$$SENDTO=$SENDTO$
    $
    "
      FileWrite $0 "$$RECENT=$RECENT$
    $
    "
      FileWrite $0 "$$NETHOOD=$NETHOOD$
    $
    "
      FileWrite $0 "$$TEMPLATES=$TEMPLATES$
    $
    "
      FileWrite $0 "$$APPDATA=$APPDATA$
    $
    "
      FileWrite $0 "$$LOCALAPPDATA=$LOCALAPPDATA$
    $
    "
      FileWrite $0 "$$PRINTHOOD=$PRINTHOOD$
    $
    "
      FileWrite $0 "$$INTERNET_CACHE=$INTERNET_CACHE$
    $
    "
      FileWrite $0 "$$COOKIES=$COOKIES$
    $
    "
      FileWrite $0 "$$HISTORY=$HISTORY$
    $
    "
      FileWrite $0 "$$ADMINTOOLS=$ADMINTOOLS$
    $
    "
      FileWrite $0 "$$CDBURN_AREA=$CDBURN_AREA$
    $
    "
      FileWrite $0 "$$DOCUMENTS=$DOCUMENTS$
    $
    "
      FileWrite $0 "$$FAVORITES=$FAVORITES$
    $
    "
      FileWrite $0 "$$MUSIC=$MUSIC$
    $
    "
      FileWrite $0 "$$PICTURES=$PICTURES$
    $
    "
      FileWrite $0 "$$VIDEOS=$VIDEOS$
    $
    $
    $
    "
    
      FileClose $0
    
    SectionEnd
  • 相关阅读:
    BeautifulSoup中的select方法
    BeautifulSoup中的find,find_all
    python中sys.stdout、sys.stdin
    python sort、sorted
    Numpy常用操作
    pandas (loc、iloc、ix)的区别
    小波变化库——Pywalvets学习笔记
    python filter()函数
    Redis数据库总结
    高逼格企业级MySQL数据库备份方案,原来是这样....
  • 原文地址:https://www.cnblogs.com/z5337/p/4766389.html
Copyright © 2011-2022 走看看