; Script generated by the HM NIS Edit Script Wizard. ; HM NIS Edit Wizard helper defines !define PRODUCT_NAME "World Safari" !define PRODUCT_VERSION "1.0" !define PRODUCT_PUBLISHER "Sanjoli Sur (Girlstart)" !define PRODUCT_WEB_SITE "http://www.girlstart.org/itgirl" !define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\World Safari.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\World Safari.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\World Safari" 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" SetOutPath "$INSTDIR\data\fonts" File "dist\data\fonts\freesansbold.ttf" SetOutPath "$INSTDIR\data\images" File "dist\data\images\AfricanClothing.png" File "dist\data\images\AmazonBrazil.png" File "dist\data\images\AndesPeru.png" File "dist\data\images\BigBenLondon.png" File "dist\data\images\BrazilFlag.png" File "dist\data\images\BuckinghamPalaceUK.png" File "dist\data\images\Bush.png" File "dist\data\images\CanadaFlag.png" File "dist\data\images\ChinaFlag.png" File "dist\data\images\Chinese.png" File "dist\data\images\ChineseClothing.png" File "dist\data\images\ChurchofSpilledBloodRussia.png" File "dist\data\images\ColinPowell.png" File "dist\data\images\DollarBill.png" File "dist\data\images\EgyptPyramides.png" File "dist\data\images\EiffelTower.png" File "dist\data\images\ElephantsTanzania.png" File "dist\data\images\FlagPicUS.png" File "dist\data\images\ForbiddenCityChina.png" File "dist\data\images\FrenchEuro.png" File "dist\data\images\German.png" File "dist\data\images\GordonBrown.png" File "dist\data\images\GreatWallChina.png" File "dist\data\images\Hamburger.png" File "dist\data\images\Himalayas.png" File "dist\data\images\Hindi.png" File "dist\data\images\IndiaFlag.png" File "dist\data\images\IraqFlag.png" File "dist\data\images\JapanMiyajima.png" File "dist\data\images\JapanYen.png" File "dist\data\images\JoeBiden.png" File "dist\data\images\JohnKerry.png" File "dist\data\images\Korean.png" File "dist\data\images\Lasagna.png" File "dist\data\images\LongRiver.png" File "dist\data\images\MtFuji.png" File "dist\data\images\NileRiver.png" File "dist\data\images\NotreDame3.png" File "dist\data\images\PeruInca.png" File "dist\data\images\PortugalFlag.png" File "dist\data\images\RajasthanIndia.png" File "dist\data\images\RightwaysEarth.png" File "dist\data\images\RiodeJaneiro.png" File "dist\data\images\RussiaClothing.png" File "dist\data\images\RussiaKremlin.png" File "dist\data\images\Russian.png" File "dist\data\images\Sahara.png" File "dist\data\images\Serengeti2.png" File "dist\data\images\Spanish2.png" File "dist\data\images\StatueofLibertyUS2.png" File "dist\data\images\Sushi.png" File "dist\data\images\TajMahalIndia.png" File "dist\data\images\TallestBuilding.png" File "dist\data\images\TallestWaterfall.png" File "dist\data\images\TanzaniaBeach.png" File "dist\data\images\TonyBlair.png" SetOutPath "$INSTDIR\data\sounds" File "dist\data\sounds\Brazil.wav" File "dist\data\sounds\British.wav" File "dist\data\sounds\Egyptian.wav" File "dist\data\sounds\French.wav" File "dist\data\sounds\HipHop.wav" File "dist\data\sounds\India.wav" File "dist\data\sounds\Japanese.wav" File "dist\data\sounds\Peru.wav" File "dist\data\sounds\Russian.wav" File "dist\data\sounds\StarSpangledBanner.wav" File "dist\data\sounds\Tanzania.wav" File "dist\data\sounds\Zhong.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\credits.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" File "dist\World Safari.exe" CreateDirectory "$SMPROGRAMS\Project IT Girl Games" CreateShortCut "$SMPROGRAMS\Project IT Girl Games\World Safari.lnk" "$INSTDIR\World Safari.exe" CreateShortCut "$DESKTOP\World Safari.lnk" "$INSTDIR\World Safari.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\World Safari.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\World Safari.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\World Safari.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\credits.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\Zhong.wav" Delete "$INSTDIR\data\sounds\Tanzania.wav" Delete "$INSTDIR\data\sounds\StarSpangledBanner.wav" Delete "$INSTDIR\data\sounds\Russian.wav" Delete "$INSTDIR\data\sounds\Peru.wav" Delete "$INSTDIR\data\sounds\Japanese.wav" Delete "$INSTDIR\data\sounds\India.wav" Delete "$INSTDIR\data\sounds\HipHop.wav" Delete "$INSTDIR\data\sounds\French.wav" Delete "$INSTDIR\data\sounds\Egyptian.wav" Delete "$INSTDIR\data\sounds\British.wav" Delete "$INSTDIR\data\sounds\Brazil.wav" Delete "$INSTDIR\data\images\TonyBlair.png" Delete "$INSTDIR\data\images\TanzaniaBeach.png" Delete "$INSTDIR\data\images\TallestWaterfall.png" Delete "$INSTDIR\data\images\TallestBuilding.png" Delete "$INSTDIR\data\images\TajMahalIndia.png" Delete "$INSTDIR\data\images\Sushi.png" Delete "$INSTDIR\data\images\StatueofLibertyUS2.png" Delete "$INSTDIR\data\images\Spanish2.png" Delete "$INSTDIR\data\images\Serengeti2.png" Delete "$INSTDIR\data\images\Sahara.png" Delete "$INSTDIR\data\images\Russian.png" Delete "$INSTDIR\data\images\RussiaKremlin.png" Delete "$INSTDIR\data\images\RussiaClothing.png" Delete "$INSTDIR\data\images\RiodeJaneiro.png" Delete "$INSTDIR\data\images\RightwaysEarth.png" Delete "$INSTDIR\data\images\RajasthanIndia.png" Delete "$INSTDIR\data\images\PortugalFlag.png" Delete "$INSTDIR\data\images\PeruInca.png" Delete "$INSTDIR\data\images\NotreDame3.png" Delete "$INSTDIR\data\images\NileRiver.png" Delete "$INSTDIR\data\images\MtFuji.png" Delete "$INSTDIR\data\images\LongRiver.png" Delete "$INSTDIR\data\images\Lasagna.png" Delete "$INSTDIR\data\images\Korean.png" Delete "$INSTDIR\data\images\JohnKerry.png" Delete "$INSTDIR\data\images\JoeBiden.png" Delete "$INSTDIR\data\images\JapanYen.png" Delete "$INSTDIR\data\images\JapanMiyajima.png" Delete "$INSTDIR\data\images\IraqFlag.png" Delete "$INSTDIR\data\images\IndiaFlag.png" Delete "$INSTDIR\data\images\Hindi.png" Delete "$INSTDIR\data\images\Himalayas.png" Delete "$INSTDIR\data\images\Hamburger.png" Delete "$INSTDIR\data\images\GreatWallChina.png" Delete "$INSTDIR\data\images\GordonBrown.png" Delete "$INSTDIR\data\images\German.png" Delete "$INSTDIR\data\images\FrenchEuro.png" Delete "$INSTDIR\data\images\ForbiddenCityChina.png" Delete "$INSTDIR\data\images\FlagPicUS.png" Delete "$INSTDIR\data\images\ElephantsTanzania.png" Delete "$INSTDIR\data\images\EiffelTower.png" Delete "$INSTDIR\data\images\EgyptPyramides.png" Delete "$INSTDIR\data\images\DollarBill.png" Delete "$INSTDIR\data\images\ColinPowell.png" Delete "$INSTDIR\data\images\ChurchofSpilledBloodRussia.png" Delete "$INSTDIR\data\images\ChineseClothing.png" Delete "$INSTDIR\data\images\Chinese.png" Delete "$INSTDIR\data\images\ChinaFlag.png" Delete "$INSTDIR\data\images\CanadaFlag.png" Delete "$INSTDIR\data\images\Bush.png" Delete "$INSTDIR\data\images\BuckinghamPalaceUK.png" Delete "$INSTDIR\data\images\BrazilFlag.png" Delete "$INSTDIR\data\images\BigBenLondon.png" Delete "$INSTDIR\data\images\AndesPeru.png" Delete "$INSTDIR\data\images\AmazonBrazil.png" Delete "$INSTDIR\data\images\AfricanClothing.png" Delete "$INSTDIR\data\fonts\freesansbold.ttf" 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\World Safari.lnk" Delete "$SMPROGRAMS\Project IT Girl Games\World Safari.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