; Script generated by the HM NIS Edit Script Wizard. ; HM NIS Edit Wizard helper defines !define PRODUCT_NAME "Problem Solving!" !define PRODUCT_VERSION "1.0" !define PRODUCT_PUBLISHER "Megumi Takeda (Girlstart)" !define PRODUCT_WEB_SITE "http://www.girlstart.org/itgirl" !define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\Problem Solving.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\Problem Solving.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\Problem Solving!" 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" SetOutPath "$INSTDIR\data\images" File "dist\data\images\Activity Link.png" File "dist\data\images\background.png" File "dist\data\images\Emmi Background.png" File "dist\data\images\Emmi Side View.png" File "dist\data\images\Emmi.png" File "dist\data\images\factory 3.png" File "dist\data\images\Goal Link Done.png" File "dist\data\images\Goal Link.png" File "dist\data\images\Idea 1.png" File "dist\data\images\Ideas 2.png" File "dist\data\images\Ideas 3.png" File "dist\data\images\Ideas 4.png" File "dist\data\images\Ideas Link Done.png" File "dist\data\images\Ideas Link.png" File "dist\data\images\InstructionBackground.png" File "dist\data\images\Knowns.png" File "dist\data\images\MC answer1.png" File "dist\data\images\MC answer2.png" File "dist\data\images\MC answer3.png" File "dist\data\images\Organize Link Done.png" File "dist\data\images\Organize Link.png" File "dist\data\images\Play Button.png" File "dist\data\images\PS Link Done.png" File "dist\data\images\PS Link.png" File "dist\data\images\red OK.png" File "dist\data\images\Research Link Done.png" File "dist\data\images\Research Link.png" File "dist\data\images\Research1.png" File "dist\data\images\Research2.png" File "dist\data\images\Research3.png" File "dist\data\images\Research4.png" File "dist\data\images\Story Link Done.png" File "dist\data\images\Story Link.png" File "dist\data\images\Story1.png" File "dist\data\images\Story2.png" File "dist\data\images\Story22.png" File "dist\data\images\Story3.png" File "dist\data\images\Story4.png" File "dist\data\images\Story44.png" File "dist\data\images\Story5.png" File "dist\data\images\Story6.png" File "dist\data\images\text box.png" File "dist\data\images\Text Screen.png" File "dist\data\images\Unknowns.png" File "dist\data\images\worried_uncle.png" File "dist\data\images\Worry 1.png" File "dist\data\images\Worry 2.png" SetOutPath "$INSTDIR" File "dist\display.pyd" File "dist\draw.pyd" File "dist\event.pyd" File "dist\fastevent.pyd" 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\Problem Solving.exe" CreateDirectory "$SMPROGRAMS\Project IT Girl Games" CreateShortCut "$SMPROGRAMS\Project IT Girl Games\Problem Solving!.lnk" "$INSTDIR\Problem Solving.exe" CreateShortCut "$DESKTOP\Problem Solving!.lnk" "$INSTDIR\Problem Solving.exe" 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\Problem Solving.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\Problem Solving.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\Problem Solving.exe" 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\fastevent.pyd" Delete "$INSTDIR\event.pyd" Delete "$INSTDIR\draw.pyd" Delete "$INSTDIR\display.pyd" Delete "$INSTDIR\data\images\Worry 2.png" Delete "$INSTDIR\data\images\Worry 1.png" Delete "$INSTDIR\data\images\worried_uncle.png" Delete "$INSTDIR\data\images\Unknowns.png" Delete "$INSTDIR\data\images\Text Screen.png" Delete "$INSTDIR\data\images\text box.png" Delete "$INSTDIR\data\images\Story6.png" Delete "$INSTDIR\data\images\Story5.png" Delete "$INSTDIR\data\images\Story44.png" Delete "$INSTDIR\data\images\Story4.png" Delete "$INSTDIR\data\images\Story3.png" Delete "$INSTDIR\data\images\Story22.png" Delete "$INSTDIR\data\images\Story2.png" Delete "$INSTDIR\data\images\Story1.png" Delete "$INSTDIR\data\images\Story Link.png" Delete "$INSTDIR\data\images\Story Link Done.png" Delete "$INSTDIR\data\images\Research4.png" Delete "$INSTDIR\data\images\Research3.png" Delete "$INSTDIR\data\images\Research2.png" Delete "$INSTDIR\data\images\Research1.png" Delete "$INSTDIR\data\images\Research Link.png" Delete "$INSTDIR\data\images\Research Link Done.png" Delete "$INSTDIR\data\images\red OK.png" Delete "$INSTDIR\data\images\PS Link.png" Delete "$INSTDIR\data\images\PS Link Done.png" Delete "$INSTDIR\data\images\Play Button.png" Delete "$INSTDIR\data\images\Organize Link.png" Delete "$INSTDIR\data\images\Organize Link Done.png" Delete "$INSTDIR\data\images\MC answer3.png" Delete "$INSTDIR\data\images\MC answer2.png" Delete "$INSTDIR\data\images\MC answer1.png" Delete "$INSTDIR\data\images\Knowns.png" Delete "$INSTDIR\data\images\InstructionBackground.png" Delete "$INSTDIR\data\images\Ideas Link.png" Delete "$INSTDIR\data\images\Ideas Link Done.png" Delete "$INSTDIR\data\images\Ideas 4.png" Delete "$INSTDIR\data\images\Ideas 3.png" Delete "$INSTDIR\data\images\Ideas 2.png" Delete "$INSTDIR\data\images\Idea 1.png" Delete "$INSTDIR\data\images\Goal Link.png" Delete "$INSTDIR\data\images\Goal Link Done.png" Delete "$INSTDIR\data\images\factory 3.png" Delete "$INSTDIR\data\images\Emmi.png" Delete "$INSTDIR\data\images\Emmi Side View.png" Delete "$INSTDIR\data\images\Emmi Background.png" Delete "$INSTDIR\data\images\background.png" Delete "$INSTDIR\data\images\Activity Link.png" 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\Problem Solving!.lnk" Delete "$SMPROGRAMS\Project IT Girl Games\Problem Solving!.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