Advertisement
ricod1996

ESS install script

Jan 4th, 2014
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Name "Enhanced Steam Standalone"
  2. OutFile "setup.exe"
  3. InstallDir "$PROGRAMFILES\ESS"
  4. InstallDirRegKey HKLM "Software\ESS" "Install_Dir"
  5. RequestExecutionLevel admin
  6.  
  7. Page components
  8. Page directory
  9. Page instfiles
  10.  
  11. Section "Basefiles (required)"
  12.     SetOutPath "$INSTDIR"
  13.     File /r "nginx"
  14.     File /r "rinetd"
  15.     WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ESS" "DisplayName" "Enhanced Steam Standalone"
  16.     WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ESS" "UninstallString" '"$INSTDIR\uninstall.exe"'
  17.     WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ESS" "NoModify" 1
  18.     WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ESS" "NoRepair" 1
  19.     WriteUninstaller "uninstall.exe"
  20. SectionEnd
  21.  
  22. Section "Custom hosts file (will overwrite existing)"
  23.     CopyFiles "$WINDIR\system32\drivers\etc\hosts" "$INSTDIR\"
  24.     SetOutPath "$WINDIR\system32\drivers\etc\"
  25.     File hosts
  26. SectionEnd
  27.  
  28. Section "Startmenu entries"
  29.     CreateDirectory "$SMPROGRAMS\ESS"
  30.     SetOutPath "$INSTDIR\nginx"
  31.     CreateShortCut "$SMPROGRAMS\ESS\nginx.lnk" "$INSTDIR\nginx\nginx.exe" "" "" 0 SW_SHOWMINIMIZED
  32.     SetOutPath "$INSTDIR\rinetd"
  33.     CreateShortCut "$SMPROGRAMS\ESS\rinetd.lnk" "$INSTDIR\rinetd\rinetd.exe" '-c "$INSTDIR\rinetd\rinetd.conf"' "" 0 SW_SHOWMINIMIZED
  34.     SetOutPath "$INSTDIR"
  35.     CreateShortCut "$SMPROGRAMS\ESS\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
  36. SectionEnd
  37.  
  38. Section "Autostart entries"
  39.     CreateDirectory "$SMSTARTUP\ESS"
  40.     SetOutPath "$INSTDIR\rinetd"
  41.     CreateShortCut "$SMSTARTUP\ESS\1rinetd.lnk" "$INSTDIR\rinetd\rinetd.exe" '-c "$INSTDIR\rinetd\rinetd.conf"' "" 0 SW_SHOWMINIMIZED
  42.     SetOutPath "$INSTDIR\nginx"
  43.     CreateShortCut "$SMSTARTUP\ESS\2nginx.lnk" "$INSTDIR\nginx\nginx.exe" "" "$INSTDIR\nginx\nginx.exe" 1 SW_SHOWMINIMIZED
  44. SectionEnd
  45.  
  46. Section "Uninstall"
  47.     DeleteRegKey HKLM "Software\ESS\Install_Dir"
  48.     CopyFiles "$INSTDIR\hosts" "$WINDIR\system32\drivers\etc\"
  49.     RMDir /r "$INSTDIR\nginx"
  50.     RMDir /r "$INSTDIR\rinetd"
  51.     RMDir /r "$SMPROGRAMS\ESS"
  52.     RMDir /r "$INSTDIR"
  53. SectionEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement