; Script generated by the HM NIS Edit Script Wizard. ; HM NIS Edit Wizard helper defines !define PRODUCT_NAME "The Fifty Nifty States" !define PRODUCT_VERSION "1.0" !define PRODUCT_PUBLISHER "Jordan Adams (Girlstart)" !define PRODUCT_WEB_SITE "http://www.girlstart.org/itgirl" !define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\Fifty Nifty States.exe" !define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" !define PRODUCT_UNINST_ROOT_KEY "HKLM" ; MUI 1.67 compatible ------ !include "MUI.nsh" ; MUI Settings !define MUI_ABORTWARNING !define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico" !define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico" ; Welcome page !insertmacro MUI_PAGE_WELCOME ; License page !insertmacro MUI_PAGE_LICENSE "gpl.txt" ; Directory page !insertmacro MUI_PAGE_DIRECTORY ; Instfiles page !insertmacro MUI_PAGE_INSTFILES ; Finish page !define MUI_FINISHPAGE_RUN "$INSTDIR\Fifty Nifty States.exe" !insertmacro MUI_PAGE_FINISH ; Uninstaller pages !insertmacro MUI_UNPAGE_INSTFILES ; Language files !insertmacro MUI_LANGUAGE "English" ; MUI end ------ Name "${PRODUCT_NAME} ${PRODUCT_VERSION}" OutFile "Setup.exe" InstallDir "$PROGRAMFILES\The Fifty Nifty States" InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" "" ShowInstDetails show ShowUnInstDetails show Section "MainSection" SEC01 SetOutPath "$INSTDIR" SetOverwrite try File "dist\base.pyd" File "dist\bz2.pyd" File "dist\cdrom.pyd" File "dist\constants.pyd" File "dist\credits.txt" SetOutPath "$INSTDIR\data\fonts" File "dist\data\fonts\freesansbold.ttf" File "dist\data\fonts\Gentium.ttf" SetOutPath "$INSTDIR\data\images" File "dist\data\images\abe.png" File "dist\data\images\alabama.png" File "dist\data\images\alaska.png" File "dist\data\images\arizona.png" File "dist\data\images\arkansas.png" File "dist\data\images\california.png" File "dist\data\images\capitol.png" File "dist\data\images\colorado.png" File "dist\data\images\connecticut.png" File "dist\data\images\delaware.png" File "dist\data\images\flag.png" File "dist\data\images\florida.png" File "dist\data\images\georgia.png" File "dist\data\images\hawaii.png" File "dist\data\images\idaho.png" File "dist\data\images\illinois.png" File "dist\data\images\indiana.png" File "dist\data\images\instruction.png" File "dist\data\images\instructionbutton.png" File "dist\data\images\iowa.png" File "dist\data\images\kansas.png" File "dist\data\images\kentucky.png" File "dist\data\images\louisiana.png" File "dist\data\images\maine.png" File "dist\data\images\maryland.png" File "dist\data\images\massachusetts.png" File "dist\data\images\michigan.png" File "dist\data\images\minnesota.png" File "dist\data\images\mississippi.png" File "dist\data\images\missouri.png" File "dist\data\images\montana.png" File "dist\data\images\nebraska.png" File "dist\data\images\nevada.png" File "dist\data\images\new_hampshire.png" File "dist\data\images\new_jersey.png" File "dist\data\images\new_mexico.png" File "dist\data\images\new_york.png" File "dist\data\images\north_carolina.png" File "dist\data\images\north_dakota.png" File "dist\data\images\ohio.png" File "dist\data\images\oklahoma.png" File "dist\data\images\oregon.png" File "dist\data\images\pennsylvania.png" File "dist\data\images\playbutton.png" File "dist\data\images\rhode_island.png" File "dist\data\images\south_carolina.png" File "dist\data\images\south_dakota.png" File "dist\data\images\tennessee.png" File "dist\data\images\texas.png" File "dist\data\images\Title.png" File "dist\data\images\Title2.png" File "dist\data\images\utah.png" File "dist\data\images\vermont.png" File "dist\data\images\virginia.png" File "dist\data\images\washington.png" File "dist\data\images\west_virginia.png" File "dist\data\images\wisconsin.png" File "dist\data\images\wyoming.png" SetOutPath "$INSTDIR" File "dist\display.pyd" File "dist\draw.pyd" File "dist\event.pyd" File "dist\fastevent.pyd" File "dist\Fifty Nifty States.exe" CreateDirectory "$SMPROGRAMS\Project IT Girl Games" CreateShortCut "$SMPROGRAMS\Project IT Girl Games\The Fifty Nifty States.lnk" "$INSTDIR\Fifty Nifty States.exe" CreateShortCut "$DESKTOP\The Fifty Nifty States.lnk" "$INSTDIR\Fifty Nifty States.exe" File "dist\font.pyd" File "dist\gpl.txt" File "dist\image.pyd" File "dist\imageext.pyd" File "dist\joystick.pyd" File "dist\key.pyd" File "dist\library.zip" File "dist\mixer.pyd" File "dist\mixer_music.pyd" File "dist\mouse.pyd" File "dist\movie.pyd" File "dist\MSVCR71.dll" File "dist\overlay.pyd" File "dist\python25.dll" File "dist\README.txt" File "dist\rect.pyd" File "dist\rwobject.pyd" File "dist\SDL.dll" File "dist\SDL_image.dll" File "dist\SDL_mixer.dll" File "dist\SDL_ttf.dll" File "dist\smpeg.dll" File "dist\sndarray.pyd" File "dist\surface.pyd" File "dist\surfarray.pyd" File "dist\surflock.pyd" File "dist\time.pyd" File "dist\transform.pyd" File "dist\unicodedata.pyd" File "dist\w9xpopen.exe" SectionEnd Section -AdditionalIcons WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}" CreateShortCut "$SMPROGRAMS\Project IT Girl Games\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url" CreateShortCut "$SMPROGRAMS\Project IT Girl Games\Uninstall.lnk" "$INSTDIR\uninst.exe" SectionEnd Section -Post WriteUninstaller "$INSTDIR\uninst.exe" WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\Fifty Nifty States.exe" WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)" WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe" WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\Fifty Nifty States.exe" WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}" WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}" WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}" SectionEnd Function un.onUninstSuccess HideWindow MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer." FunctionEnd Function un.onInit MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove $(^Name) and all of its components?" IDYES +2 Abort FunctionEnd Section Uninstall Delete "$INSTDIR\${PRODUCT_NAME}.url" Delete "$INSTDIR\uninst.exe" Delete "$INSTDIR\w9xpopen.exe" Delete "$INSTDIR\unicodedata.pyd" Delete "$INSTDIR\transform.pyd" Delete "$INSTDIR\time.pyd" Delete "$INSTDIR\surflock.pyd" Delete "$INSTDIR\surfarray.pyd" Delete "$INSTDIR\surface.pyd" Delete "$INSTDIR\sndarray.pyd" Delete "$INSTDIR\smpeg.dll" Delete "$INSTDIR\SDL_ttf.dll" Delete "$INSTDIR\SDL_mixer.dll" Delete "$INSTDIR\SDL_image.dll" Delete "$INSTDIR\SDL.dll" Delete "$INSTDIR\rwobject.pyd" Delete "$INSTDIR\rect.pyd" Delete "$INSTDIR\README.txt" Delete "$INSTDIR\python25.dll" Delete "$INSTDIR\overlay.pyd" Delete "$INSTDIR\MSVCR71.dll" Delete "$INSTDIR\movie.pyd" Delete "$INSTDIR\mouse.pyd" Delete "$INSTDIR\mixer_music.pyd" Delete "$INSTDIR\mixer.pyd" Delete "$INSTDIR\library.zip" Delete "$INSTDIR\key.pyd" Delete "$INSTDIR\joystick.pyd" Delete "$INSTDIR\imageext.pyd" Delete "$INSTDIR\image.pyd" Delete "$INSTDIR\gpl.txt" Delete "$INSTDIR\font.pyd" Delete "$INSTDIR\Fifty Nifty States.exe" Delete "$INSTDIR\fastevent.pyd" Delete "$INSTDIR\event.pyd" Delete "$INSTDIR\draw.pyd" Delete "$INSTDIR\display.pyd" Delete "$INSTDIR\data\images\wyoming.png" Delete "$INSTDIR\data\images\wisconsin.png" Delete "$INSTDIR\data\images\west_virginia.png" Delete "$INSTDIR\data\images\washington.png" Delete "$INSTDIR\data\images\virginia.png" Delete "$INSTDIR\data\images\vermont.png" Delete "$INSTDIR\data\images\utah.png" Delete "$INSTDIR\data\images\Title2.png" Delete "$INSTDIR\data\images\Title.png" Delete "$INSTDIR\data\images\texas.png" Delete "$INSTDIR\data\images\tennessee.png" Delete "$INSTDIR\data\images\south_dakota.png" Delete "$INSTDIR\data\images\south_carolina.png" Delete "$INSTDIR\data\images\rhode_island.png" Delete "$INSTDIR\data\images\playbutton.png" Delete "$INSTDIR\data\images\pennsylvania.png" Delete "$INSTDIR\data\images\oregon.png" Delete "$INSTDIR\data\images\oklahoma.png" Delete "$INSTDIR\data\images\ohio.png" Delete "$INSTDIR\data\images\north_dakota.png" Delete "$INSTDIR\data\images\north_carolina.png" Delete "$INSTDIR\data\images\new_york.png" Delete "$INSTDIR\data\images\new_mexico.png" Delete "$INSTDIR\data\images\new_jersey.png" Delete "$INSTDIR\data\images\new_hampshire.png" Delete "$INSTDIR\data\images\nevada.png" Delete "$INSTDIR\data\images\nebraska.png" Delete "$INSTDIR\data\images\montana.png" Delete "$INSTDIR\data\images\missouri.png" Delete "$INSTDIR\data\images\mississippi.png" Delete "$INSTDIR\data\images\minnesota.png" Delete "$INSTDIR\data\images\michigan.png" Delete "$INSTDIR\data\images\massachusetts.png" Delete "$INSTDIR\data\images\maryland.png" Delete "$INSTDIR\data\images\maine.png" Delete "$INSTDIR\data\images\louisiana.png" Delete "$INSTDIR\data\images\kentucky.png" Delete "$INSTDIR\data\images\kansas.png" Delete "$INSTDIR\data\images\iowa.png" Delete "$INSTDIR\data\images\instructionbutton.png" Delete "$INSTDIR\data\images\instruction.png" Delete "$INSTDIR\data\images\indiana.png" Delete "$INSTDIR\data\images\illinois.png" Delete "$INSTDIR\data\images\idaho.png" Delete "$INSTDIR\data\images\hawaii.png" Delete "$INSTDIR\data\images\georgia.png" Delete "$INSTDIR\data\images\florida.png" Delete "$INSTDIR\data\images\flag.png" Delete "$INSTDIR\data\images\delaware.png" Delete "$INSTDIR\data\images\connecticut.png" Delete "$INSTDIR\data\images\colorado.png" Delete "$INSTDIR\data\images\capitol.png" Delete "$INSTDIR\data\images\california.png" Delete "$INSTDIR\data\images\arkansas.png" Delete "$INSTDIR\data\images\arizona.png" Delete "$INSTDIR\data\images\alaska.png" Delete "$INSTDIR\data\images\alabama.png" Delete "$INSTDIR\data\images\abe.png" Delete "$INSTDIR\data\fonts\Gentium.ttf" Delete "$INSTDIR\data\fonts\freesansbold.ttf" Delete "$INSTDIR\credits.txt" Delete "$INSTDIR\constants.pyd" Delete "$INSTDIR\cdrom.pyd" Delete "$INSTDIR\bz2.pyd" Delete "$INSTDIR\base.pyd" Delete "$SMPROGRAMS\Project IT Girl Games\Uninstall.lnk" Delete "$SMPROGRAMS\Project IT Girl Games\Website.lnk" Delete "$DESKTOP\The Fifty Nifty States.lnk" Delete "$SMPROGRAMS\Project IT Girl Games\The Fifty Nifty States.lnk" RMDir "$SMPROGRAMS\Project IT Girl Games" RMDir "$INSTDIR\data\images" RMDir "$INSTDIR\data\fonts" RMDir "$INSTDIR" DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}" SetAutoClose true SectionEnd