Name "Enhanced Steam Standalone" OutFile "setup.exe" InstallDir "$PROGRAMFILES\ESS" InstallDirRegKey HKLM "Software\ESS" "Install_Dir" RequestExecutionLevel admin Page components Page directory Page instfiles Section "Basefiles (required)" SetOutPath "$INSTDIR" File /r "nginx" File /r "rinetd" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ESS" "DisplayName" "Enhanced Steam Standalone" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ESS" "UninstallString" '"$INSTDIR\uninstall.exe"' WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ESS" "NoModify" 1 WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ESS" "NoRepair" 1 WriteUninstaller "uninstall.exe" SectionEnd Section "Custom hosts file (will overwrite existing)" CopyFiles "$WINDIR\system32\drivers\etc\hosts" "$INSTDIR\" SetOutPath "$WINDIR\system32\drivers\etc\" File hosts SectionEnd Section "Startmenu entries" CreateDirectory "$SMPROGRAMS\ESS" SetOutPath "$INSTDIR\nginx" CreateShortCut "$SMPROGRAMS\ESS\nginx.lnk" "$INSTDIR\nginx\nginx.exe" "" "" 0 SW_SHOWMINIMIZED SetOutPath "$INSTDIR\rinetd" CreateShortCut "$SMPROGRAMS\ESS\rinetd.lnk" "$INSTDIR\rinetd\rinetd.exe" '-c "$INSTDIR\rinetd\rinetd.conf"' "" 0 SW_SHOWMINIMIZED SetOutPath "$INSTDIR" CreateShortCut "$SMPROGRAMS\ESS\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0 SectionEnd Section "Autostart entries" CreateDirectory "$SMSTARTUP\ESS" SetOutPath "$INSTDIR\rinetd" CreateShortCut "$SMSTARTUP\ESS\1rinetd.lnk" "$INSTDIR\rinetd\rinetd.exe" '-c "$INSTDIR\rinetd\rinetd.conf"' "" 0 SW_SHOWMINIMIZED SetOutPath "$INSTDIR\nginx" CreateShortCut "$SMSTARTUP\ESS\2nginx.lnk" "$INSTDIR\nginx\nginx.exe" "" "$INSTDIR\nginx\nginx.exe" 1 SW_SHOWMINIMIZED SectionEnd Section "Uninstall" DeleteRegKey HKLM "Software\ESS\Install_Dir" CopyFiles "$INSTDIR\hosts" "$WINDIR\system32\drivers\etc\" RMDir /r "$INSTDIR\nginx" RMDir /r "$INSTDIR\rinetd" RMDir /r "$SMPROGRAMS\ESS" RMDir /r "$INSTDIR" SectionEnd