; Script generated by the HM NIS Edit Script Wizard. ; HM NIS Edit Wizard helper defines !define PRODUCT_NAME "Musical Paint" !define PRODUCT_VERSION "1.0" !define PRODUCT_PUBLISHER "Briana Foxworth (Girlstart)" !define PRODUCT_WEB_SITE "http://www.girlstart.org/itgirl" !define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\Musical Paint.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\Musical Paint.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\Musical Paint" 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\background2.png" File "dist\data\images\music1.png" File "dist\data\images\music2.png" File "dist\data\images\music3.png" File "dist\data\images\musicbutton1.png" File "dist\data\images\musicbutton2.png" File "dist\data\images\musicbutton3.png" File "dist\data\images\shape.png" SetOutPath "$INSTDIR\data\sounds" File "dist\data\sounds\awav1.wav" File "dist\data\sounds\bwav1.wav" File "dist\data\sounds\correctA.wav" File "dist\data\sounds\correctB.wav" File "dist\data\sounds\cwav1.wav" File "dist\data\sounds\dwav1.wav" File "dist\data\sounds\ewav1.wav" File "dist\data\sounds\fwav1.wav" File "dist\data\sounds\gwav1.wav" File "dist\data\sounds\octaveC.wav" File "dist\data\sounds\reallycorrectB.wav" File "dist\data\sounds\somewhatcorrectB.wav" 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\Musical Paint.exe" CreateDirectory "$SMPROGRAMS\Project IT Girl Games" CreateShortCut "$SMPROGRAMS\Project IT Girl Games\Musical Paint.lnk" "$INSTDIR\Musical Paint.exe" CreateShortCut "$DESKTOP\Musical Paint.lnk" "$INSTDIR\Musical Paint.exe" 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\Musical Paint.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\Musical Paint.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\Musical Paint.exe" 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\sounds\somewhatcorrectB.wav" Delete "$INSTDIR\data\sounds\reallycorrectB.wav" Delete "$INSTDIR\data\sounds\octaveC.wav" Delete "$INSTDIR\data\sounds\gwav1.wav" Delete "$INSTDIR\data\sounds\fwav1.wav" Delete "$INSTDIR\data\sounds\ewav1.wav" Delete "$INSTDIR\data\sounds\dwav1.wav" Delete "$INSTDIR\data\sounds\cwav1.wav" Delete "$INSTDIR\data\sounds\correctB.wav" Delete "$INSTDIR\data\sounds\correctA.wav" Delete "$INSTDIR\data\sounds\bwav1.wav" Delete "$INSTDIR\data\sounds\awav1.wav" Delete "$INSTDIR\data\images\shape.png" Delete "$INSTDIR\data\images\musicbutton3.png" Delete "$INSTDIR\data\images\musicbutton2.png" Delete "$INSTDIR\data\images\musicbutton1.png" Delete "$INSTDIR\data\images\music3.png" Delete "$INSTDIR\data\images\music2.png" Delete "$INSTDIR\data\images\music1.png" Delete "$INSTDIR\data\images\background2.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\Musical Paint.lnk" Delete "$SMPROGRAMS\Project IT Girl Games\Musical Paint.lnk" RMDir "$SMPROGRAMS\Project IT Girl Games" RMDir "$INSTDIR\data\sounds" 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