; Script generated by the HM NIS Edit Script Wizard. ; HM NIS Edit Wizard helper defines !define PRODUCT_NAME "IM-L" !define PRODUCT_VERSION "4.5.1 RC1" !define PRODUCT_PUBLISHER "IM-L Team" !define PRODUCT_WEB_SITE "http://www.im-l.com" !define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\iml-run.exe" !define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" !define PRODUCT_UNINST_ROOT_KEY "HKLM" !define PRODUCT_STARTMENU_REGVAL "NSIS:StartMenuDir" ; MUI 1.67 compatible ------ !include "MUI.nsh" ; MUI Settings !define MUI_WELCOMEFINISHPAGE_BITMAP "..\setup files\modern-wizard.bmp" !define MUI_HEADERIMAGE !define MUI_HEADERIMAGE_BITMAP "..\setup files\modern-header.bmp" !define MUI_ABORTWARNING !define MUI_ICON "..\setup files\Setup.ico" !define MUI_UNICON "..\setup files\DelSetup.ico" !define MUI_COMPONENTSPAGE_NODESC !define MUI_FINISHPAGE_LINK "Visit the iMesh Light Homepage" !define MUI_FINISHPAGE_LINK_LOCATION "http://www.im-l.com/" ; Language Selection Dialog Settings !define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}" !define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}" !define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language" ; Welcome page !insertmacro MUI_PAGE_WELCOME ; License page !define MUI_LICENSEPAGE_RADIOBUTTONS !insertmacro MUI_PAGE_LICENSE "..\setup files\LICENCE.TXT" ; Custom Pages Page custom CustomPageB LeavePageB Page custom CustomPageC ; Components page !insertmacro MUI_PAGE_COMPONENTS ; Directory page !insertmacro MUI_PAGE_DIRECTORY ; Start menu page var ICONS_GROUP !define MUI_STARTMENUPAGE_NODISABLE !define MUI_STARTMENUPAGE_DEFAULTFOLDER "iMesh Light" !define MUI_STARTMENUPAGE_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}" !define MUI_STARTMENUPAGE_REGISTRY_KEY "${PRODUCT_UNINST_KEY}" !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "${PRODUCT_STARTMENU_REGVAL}" !insertmacro MUI_PAGE_STARTMENU Application $ICONS_GROUP ; Instfiles page !insertmacro MUI_PAGE_INSTFILES ; Finish page !define MUI_FINISHPAGE_RUN "$INSTDIR\iml-run.exe" !define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\Client\ReadMe.txt" !insertmacro MUI_PAGE_FINISH ; Uninstaller pages !insertmacro MUI_UNPAGE_INSTFILES ; Language files !insertmacro MUI_LANGUAGE "Dutch" !insertmacro MUI_LANGUAGE "English" !insertmacro MUI_LANGUAGE "French" !insertmacro MUI_LANGUAGE "German" !insertmacro MUI_LANGUAGE "Hebrew" !insertmacro MUI_LANGUAGE "Italian" !insertmacro MUI_LANGUAGE "Polish" !insertmacro MUI_LANGUAGE "Portuguese" !insertmacro MUI_LANGUAGE "SimpChinese" !insertmacro MUI_LANGUAGE "Spanish" !insertmacro MUI_LANGUAGE "Swedish" !insertmacro MUI_LANGUAGE "Thai" !insertmacro MUI_LANGUAGE "Turkish" ;Reserve Files ;These files should be inserted before other files in the data block ;Keep these lines before any File command ;Only for solid compression (by default, solid compression is enabled for BZIP2 and LZMA) ReserveFile "ioB.ini" ReserveFile "ioC.ini" !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS Function GetEXEName Push $R0 Push $R1 Push $R2 StrCpy $R0 $CMDLINE -2 StrLen $R2 $R0 IntOp $R2 $R2 - 1 StrCpy $R0 $R0 "" -$R2 StrCpy $R2 0 Loop: IntOp $R2 $R2 - 1 StrCpy $R1 $R0 1 $R2 StrCmp $R1 "" Exit StrCmp $R1 "\" 0 Loop IntOp $R2 $R2 + 1 StrCpy $R0 $R0 "" $R2 Exit: Pop $R2 Pop $R1 Exch $R0 FunctionEnd ;-------------------------------- ; MUI end ------ Name "${PRODUCT_NAME} ${PRODUCT_VERSION}" OutFile "Setup.exe" InstallDir "$PROGRAMFILES\iMesh Light" InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" "" ShowInstDetails show ShowUnInstDetails show ;----.onInit Function------------ Function .onInit !insertmacro MUI_LANGDLL_DISPLAY ;----Installer Options----------- ;Extract InstallOptions INI files !insertmacro MUI_INSTALLOPTIONS_EXTRACT "ioB.ini" !insertmacro MUI_INSTALLOPTIONS_WRITE "ioB.ini" "Field 1" "TEXT" "$PLUGINSDIR\iob-shared.ico" !insertmacro MUI_INSTALLOPTIONS_WRITE "ioB.ini" "Field 5" "TEXT" "$PLUGINSDIR\iox-alert.ico" !insertmacro MUI_INSTALLOPTIONS_EXTRACT "ioC.ini" !insertmacro MUI_INSTALLOPTIONS_WRITE "ioC.ini" "Field 3" "TEXT" "$PLUGINSDIR\ioc-config.ico" !insertmacro MUI_INSTALLOPTIONS_WRITE "ioC.ini" "Field 4" "TEXT" "$PLUGINSDIR\ioc-iml.ico" SetOutPath "$PLUGINSDIR" File "..\setup files\iox-alert.ico" File "..\setup files\iob-shared.ico" File "..\setup files\ioc-config.ico" File "..\setup files\ioc-iml.ico" ;-------------------------------- FunctionEnd ; ioB Languages LangString TEXT_IOB_TITLE ${LANG_ENGLISH} "My Shared Folder" LangString TEXT_IOB_SUBTITLE ${LANG_ENGLISH} "The selected directory will be used to store your up and downloads." LangString TEXT_IOB_TITLE ${LANG_Dutch} "Mijn Gedeelde Map" LangString TEXT_IOB_SUBTITLE ${LANG_Dutch} "De geselecteerde map zal worden gebruikt om alle up- en downloads in op te slaan." LangString TEXT_IOB_TITLE ${LANG_French} "My Shared Folder" LangString TEXT_IOB_SUBTITLE ${LANG_French} "The selected directory will be used to store your up and downloads." LangString TEXT_IOB_TITLE ${LANG_German} "My Shared Folder" LangString TEXT_IOB_SUBTITLE ${LANG_German} "The selected directory will be used to store your up and downloads." LangString TEXT_IOB_TITLE ${LANG_Hebrew} "My Shared Folder" LangString TEXT_IOB_SUBTITLE ${LANG_Hebrew} "The selected directory will be used to store your up and downloads." LangString TEXT_IOB_TITLE ${LANG_Italian} "My Shared Folder" LangString TEXT_IOB_SUBTITLE ${LANG_Italian} "The selected directory will be used to store your up and downloads." LangString TEXT_IOB_TITLE ${LANG_Polish} "My Shared Folder" LangString TEXT_IOB_SUBTITLE ${LANG_Polish} "The selected directory will be used to store your up and downloads." LangString TEXT_IOB_TITLE ${LANG_Portuguese} "My Shared Folder" LangString TEXT_IOB_SUBTITLE ${LANG_Portuguese} "The selected directory will be used to store your up and downloads." LangString TEXT_IOB_TITLE ${LANG_SimpChinese} "My Shared Folder" LangString TEXT_IOB_SUBTITLE ${LANG_SimpChinese} "The selected directory will be used to store your up and downloads." LangString TEXT_IOB_TITLE ${LANG_Spanish} "My Shared Folder" LangString TEXT_IOB_SUBTITLE ${LANG_Spanish} "The selected directory will be used to store your up and downloads." LangString TEXT_IOB_TITLE ${LANG_Swedish} "My Shared Folder" LangString TEXT_IOB_SUBTITLE ${LANG_Swedish} "The selected directory will be used to store your up and downloads." LangString TEXT_IOB_TITLE ${LANG_Thai} "My Shared Folder" LangString TEXT_IOB_SUBTITLE ${LANG_Thai} "The selected directory will be used to store your up and downloads." LangString TEXT_IOB_TITLE ${LANG_Turkish} "My Shared Folder" LangString TEXT_IOB_SUBTITLE ${LANG_Turkish} "The selected directory will be used to store your up and downloads." ; ioC Languages LangString TEXT_IOC_TITLE ${LANG_ENGLISH} "IM-L Configuration" LangString TEXT_IOC_SUBTITLE ${LANG_ENGLISH} "Tune IM-L the way you want. All options can be configured too in SmartStart." LangString TEXT_IOC_TITLE ${LANG_Dutch} "IM-L Configuratie" LangString TEXT_IOC_SUBTITLE ${LANG_Dutch} "Tweak IM-L op jouw manier. Alle opties kunnen ook in SmartStart worden geconfigureerd." LangString TEXT_IOC_TITLE ${LANG_French} "IM-L Configuration" LangString TEXT_IOC_SUBTITLE ${LANG_French} "Tune IM-L the way you want. All options can be configured too in SmartStart." LangString TEXT_IOC_TITLE ${LANG_German} "IM-L Configuration" LangString TEXT_IOC_SUBTITLE ${LANG_German} "Tune IM-L the way you want. All options can be configured too in SmartStart." LangString TEXT_IOC_TITLE ${LANG_Hebrew} "IM-L Configuration" LangString TEXT_IOC_SUBTITLE ${LANG_Hebrew} "Tune IM-L the way you want. All options can be configured too in SmartStart." LangString TEXT_IOC_TITLE ${LANG_Italian} "IM-L Configuration" LangString TEXT_IOC_SUBTITLE ${LANG_Italian} "Tune IM-L the way you want. All options can be configured too in SmartStart." LangString TEXT_IOC_TITLE ${LANG_Polish} "IM-L Configuration" LangString TEXT_IOC_SUBTITLE ${LANG_Polish} "Tune IM-L the way you want. All options can be configured too in SmartStart." LangString TEXT_IOC_TITLE ${LANG_Portuguese} "IM-L Configuration" LangString TEXT_IOC_SUBTITLE ${LANG_Portuguese} "Tune IM-L the way you want. All options can be configured too in SmartStart." LangString TEXT_IOC_TITLE ${LANG_SimpChinese} "IM-L Configuration" LangString TEXT_IOC_SUBTITLE ${LANG_SimpChinese} "Tune IM-L the way you want. All options can be configured too in SmartStart." LangString TEXT_IOC_TITLE ${LANG_Spanish} "IM-L Configuration" LangString TEXT_IOC_SUBTITLE ${LANG_Spanish} "Tune IM-L the way you want. All options can be configured too in SmartStart." LangString TEXT_IOC_TITLE ${LANG_Swedish} "IM-L Configuration" LangString TEXT_IOC_SUBTITLE ${LANG_Swedish} "Tune IM-L the way you want. All options can be configured too in SmartStart." LangString TEXT_IOC_TITLE ${LANG_Thai} "IM-L Configuration" LangString TEXT_IOC_SUBTITLE ${LANG_Thai} "Tune IM-L the way you want. All options can be configured too in SmartStart." LangString TEXT_IOC_TITLE ${LANG_Turkish} "IM-L Configuration" LangString TEXT_IOC_SUBTITLE ${LANG_Turkish} "Tune IM-L the way you want. All options can be configured too in SmartStart." ; --- Function CustomPageB !insertmacro MUI_HEADER_TEXT "$(TEXT_IOB_TITLE)" "$(TEXT_IOB_SUBTITLE)" !insertmacro MUI_INSTALLOPTIONS_DISPLAY "ioB.ini" FunctionEnd Function LeavePageB ReadINIStr $3 "$PLUGINSDIR\ioB.ini" "Field 4" "State" IntCmp $3 1 0 CheckEnabled MessageBox MB_OK "You have checked 'Disabled Sharing' P2P networks like iMesh exist because people share, if nobody shares nobody can download, so please don't turn off sharing." CheckEnabled: FunctionEnd Function CustomPageC !insertmacro MUI_HEADER_TEXT "$(TEXT_IOC_TITLE)" "$(TEXT_IOC_SUBTITLE)" !insertmacro MUI_INSTALLOPTIONS_DISPLAY "ioC.ini" FunctionEnd ;-------------------------------- Section "iMesh Light (required)" SEC01 SectionIn RO SetOutPath "$INSTDIR" SetOverwrite ifnewer File "..\instal dir\settings.ini" File "..\instal dir\iml-run.ini" SetOverwrite on File "..\instal dir\iml-run.exe" CreateDirectory "$SMPROGRAMS\$ICONS_GROUP" CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\IM-L.lnk" "$INSTDIR\iml-run.exe" CreateShortCut "$DESKTOP\IM-L.lnk" "$INSTDIR\iml-run.exe" SetOutPath "$INSTDIR\Client" SetOverwrite on File "..\instal dir\Client\sound.wav" File "..\instal dir\Client\IM-L.ico" File "..\instal dir\Client\iMeshClient.exe" File "..\instal dir\Client\ConfigWizard.exe" File "..\instal dir\Client\ReadMe.txt" File "..\instal dir\Client\sharedfolder.exe" File "..\instal dir\Client\imesh.lf" File "..\instal dir\Client\Start.cdi" CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Shared Folder.lnk" "$INSTDIR\Client\sharedfolder.exe" CreateShortCut "$DESKTOP\Shared Folder.lnk" "$INSTDIR\Client\sharedfolder.exe" SetOutPath "$INSTDIR\Client\Offline" SetOverwrite on File "..\instal dir\Client\Offline\ConnectingAnimation.gif" File "..\instal dir\Client\Offline\ConnectingAnimation.swf" File "..\instal dir\Client\Offline\iMeshConnecting.html" File "..\instal dir\Client\Offline\iMeshOffline.html" File "..\instal dir\Client\Offline\OfflineAnimation.gif" ; Reading INI Strings ReadINIStr $2 "$PLUGINSDIR\ioB.ini" "Field 3" "State" ReadINIStr $3 "$PLUGINSDIR\ioB.ini" "Field 4" "State" ReadINIStr $R4 "$PLUGINSDIR\ioC.ini" "Field 9" "State" ;Allow sending file list ReadINIStr $R5 "$PLUGINSDIR\ioC.ini" "Field 10" "State" ;Full privacy mode ReadINIStr $R6 "$PLUGINSDIR\ioC.ini" "Field 11" "State" ;Start in tray ReadINIStr $R7 "$PLUGINSDIR\ioC.ini" "Field 12" "State" ;Show menu ReadINIStr $R8 "$PLUGINSDIR\ioC.ini" "Field 13" "State" ;Enable messages ReadINIStr $R9 "$PLUGINSDIR\ioC.ini" "Field 14" "State" ;Show only availble results ReadINIStr $R9 "$PLUGINSDIR\ioC.ini" "Field 15" "State" ;Disable status messages ; Writing INI Strings ;ini ioC CreateDirectory "$2" Call GetEXEName Pop $5 ;full installer exe file name CopyFiles /silent $EXEDIR\$5 $2 ; ioB.ini WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "DownloadsLocation" "$2" WriteRegStr HKEY_CURRENT_USER "Software\iMesh\Client\LocalContent" "DownloadDir" "$2" WriteRegDWORD HKEY_CURRENT_USER "Software\iMesh\Client\LocalContent" "DisableSharing" "$3" ; ioC.ini WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "AllowSendingFilesList" "$R4" WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "PrivacyMode" "$R5" WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "StartInTray" "$R6" WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "ShowMenu" "$R7" WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "MessagesOn" "$R8" WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "ShowOnlyAvailableResults" "$R9" WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "DisableStatusMessages" "$1" ; Overige Reg WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "SkinPath" "$INSTDIR\Skins\green2" WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "ProgramLocation" "$INSTDIR\Client" WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "DBLocation" "$INSTDIR\Client\DB" WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client\LocalContent" "DatabaseDir" "$INSTDIR\Client\DB" WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "AlwaysOnTop" 0x0 WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "BlockAdultsBanners" 0x1 WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "DCDealRun" 0x0 WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "DescriptionCode" 0x2e938 WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "DOWNLOADNOTIFYMSG" 0x1 WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "DOWNLOADNOTIFYSOUND" 0x1 WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "DOWNLOADNOTIFYTRAY" 0x1 WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "GuiMode" 0x1 WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "HideSkin" 0x1 WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "HIDESPLASH" 0x0 WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "InviteAFriendPopup" 0x0 WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "LastPortCheck" 0x0 WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "MAXDOWNLOADSNO" 0x64 WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "MAXSEARCHRESULTSPERPAGE" 0x64 WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "MAXUPLOADSNO" 0x64 WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "MINREINDEXPERIOD" 0x2d0 WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "ShareNotifyTray" 0x0 WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "ShowBGMessage" 0x0 WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "SHOWONLYAVAILABLERESULTS" 0x1 WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "ShowVersionExpired" 0x1 WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "StartInTray" 0x0 WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "STICKYWINDOWS" 0x1 WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "SWFILETYPES" "mpeg;mpg;mov;avi;mp3;m3u" WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "UserID" 0x0 WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "Version" "4.5-143" WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\iMesh\Client" "IM-L Version" "4.5.1" WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Kazaa\ConnectionInfo" "KazaaNet" 013a21e544c80d2c0092739a404a9008180d08500047c3984002691c41f5043e00a8899a401617d0185b09270030899a404cb8874245053200784f9a40ddb4091801064200d48a9a4081bcad4243052600be749a4032ca1418080a3f005c8a9a406e6a88451c0d3d0082749a40055453441e062900d48a9a40e4166c4206083400d48a9a4070870d183b0e3e00d48a9a40f73022415106380001c598405eb1a418260d4300f4889a40c05e4542b00d1600a8899a4016752141bf0e33003dc5984075b49044d5080e00d48a9a40b2153d181e04350069c098408b08d9d9c70532006ac6984052cfa818040b2e0028c5984070ce6444aa093900d48a9a4015cacc446d0d3a005c8a9a403e6b23418609490001c598404600db0c8607030094c09840203806a11f092d0092c298407b2ea443450e41005c8a9a40e72a3942e30e2200dcc59840340a38504f054700d48a9a40a1f0a245700f3500208a9a406fe91c89550e5000a5c09840a49e7144440a3d00d48a9a40a0a93842030d2c00d48a9a4058b0fa18c508230058519a40ab3c8342c70c1e00d48a9a40eda10918990b3100d48a9a4010bc2341250f2b00a5c0984000c6d9183e083a00aca89840e5c620415a093600f1c59840b8f982424d040900be749a40cec1ba444c0c1b00208a9a408e05761828085800a5c09840307df218d90d4000a8899a40c201ae43af091000be749a40ba58b91839073500d48a9a4024301a418c062c003dc59840185b80acf40e5300a0c59840e54de942280c3000d48a9a40205a7344fd0b3f0069c09840c0e8e5428b053700d48a9a4037891d41b7094100e4899a403ec2e842a4070700d48a9a408dd30b4480093800208a9a407ff8194208073000a0c598404e3b1a41be043a00c5c49840e5d13942ee0c2c00a5c09840e9421942970c5200784f9a40962ca718ea093c00208a9a40be82e740480e3b00208a9a407b2718421d0a3e0074719a40cad9d118ce0b4600208a9a40790439420f08450074719a40b6c42e1898054900d48a9a406c76028dd50e460082749a406387c34452054a0092739a406a0db142ef064c00984d9a4061f1a518c90e3800d48a9a406ba5321873072400f4889a40df3b55431c0b2900d48a9a404108c1453c0e0500d48a9a406d655c41b50a35005c8a9a40099be4828909180058c098407802bd18e804450046749a40eb5eb85228062e00d48a9a40aacdd441460443003dc59840aa461b1845042e00b6c5984000032a3e2b0c5800b5bf98405080af8016060f00d48a9a405a4f4a42c30d4e00784f9a40a141c445230f3800e4899a4056c44542240f3800f2c598404361d1185b0b3700006d9a40da381941d40a3b0001c59840b1ce3b44af0d2c00f4889a40804d064459082d00b4be9840c6ffc545a70b1e00d48a9a401854a5883f0b4500d48a9a40fd4ae942de0e220056739a40e00e8318be043d00dcc59840e8dcde427d08230056739a400a9baf80bd0e3c001cc09840cd705243370d1d0082749a40a42f4b4254042e0094c098408fdd8baceb0d42008ac498404ecd514449042800d48a9a40e70ba4430b0b3800d46b9a40adb3229c5a0527005c8a9a402721fb183d06290047c39840b16a414261073c00d48a9a40120fe0448805340046749a40544faf43390b290030899a40a40382420d053b00984d9a402432c54569041400d48a9a405243cc4136074800208a9a40ecc9064481044000b8889a4058fca118e7073b00dcc598407b121b418805250001c59840886fc6445204500082749a402e83bc1814053100b6c59840e4058f1824042700d48a9a40869d1f18bb0939006ac69840a657a718ff0b250046749a40826773443e0b3c001a739a40b0be2c18380a32006ac69840e2638242260b470040699a4003c52f180407310092c2984084047780400c3a00a8899a40d6210b444a0734006ac69840f59be542a8082800d48a9a40a8abaa44d904350056739a40e685b9449d0b17005c8a9a407fd76c4203054c00dcc5984014eabb180c0a3b00d48a9a40bb6abc18650f4c00f1c59840761847437f0d3a0030899a40d3dab94479073200208a9a40d0b5bd429906220084709a4096a0ae18c30e5500b8889a40ac154a42200e4200784f9a402fcae6807c073700d48a9a4044c497182f0a2f005c8a9a4013623218d70c3500a5c098407a8b3942940b3500a5c09840cc6ae542980a2a0056739a4054ab1c41210536005c8a9a40ad8f1f185c062a003ec598403a653942590c3a00d48a9a4094ee1c418a072e00e4899a4011e31f41d4063a00f4889a40ac0c4542320d3500784f9a4056390b451f0d2a005c8a9a403b068342d10e2600e46a9a405e375c186d0a2c0058c098402dad1f18960a49003dbf98405e111942bf083b00a5c098400456bb18de0c3400208a9a40081df318f5074200208a9a408e0819428a0b240002c598409a55c7424b0b2e00d48a9a40edc5c818230a340056739a40c32a4018450d4e0030899a40466f17450a072f005c6b9a404debda0cd50938007ac598401c57cf426706280028459a401df50318620e2f0047c3984067576944da042700208a9a40b04b041842092f00d46b9a40cdbe084286093b00be749a40b4214242c4042a00f1c59840448c5d415b0a4100d48a9a4037374151990a1b00a5c09840bd2c42525b0a0800d48a9a40aaf503182f0f2500e80c9a40b1dd1418280b2e00886c9a4014fe2341660827003dc5984061993318d30636003ec59840eefe74ce130c360082749a405681d118610f39005c8a9a40d1d3d642aa0a320056739a40bb6abc18800a1f009853984060097780d9083b00a8899a40427ba718760e39002ec6984054b98342f30e3200d48a9a40dc04d7422a06380028459a405db1229c5d0836002ac19840d74319184909230094c09840d0dd3942d40b380046749a401dd2a218a4042b002ec6984085576c4270054a00a8899a406de0a618a70b3600dcc59840a45916455a074800b8889a404c7bb38e270f48001a739a403bff1a417f072e004dc498406dc04a42c30c3500d48a9a40340b6c42910b3500e4899a406463a218f60633008ac498409fba2341c0054100208a9a407a60be18be043c00b6c59840efcfa945b1060600d48a9a4000832341170a310001c59840b6f21a42ee084900b6c598403b9d15180a083f00006d9a4000a50e1831053600208a9a40e63cd118e50c2f00aca898408b424643b4053a00d48a9a40c3c6084246044500d48a9a4020241841800a320001c59840e80dde0cbb0542006ac698400bad0218840e41004c6c9a40b7f9a0189f0b380078be98404e1b7042be0b39001cc09840 WriteRegStr HKEY_CURRENT_USER "Software\iMesh\Client\Languages" "LangDir" "$INSTDIR\Languages" WriteRegStr HKEY_CURRENT_USER "Software\iMesh\Client\Languages" "CurentLang" "" WriteRegStr HKEY_CURRENT_USER "Software\iMesh\Client\Languages" "LocalizerExt" "" WriteRegDWORD HKEY_CURRENT_USER "Software\iMesh\Client\Transfer" "ConcurrentUploads" 0x200 WriteRegDWORD HKEY_CURRENT_USER "Software\iMesh\Client\Transfer" "ConcurrentDownloads" 0x100 WriteRegDWORD HKEY_CURRENT_USER "Software\iMesh\Client" "LimitBitrate" 0x0 WriteRegDWORD HKEY_CURRENT_USER "SOFTWARE\iMesh\Client" "IsRegistered" 0x1 WriteRegDWORD HKEY_CURRENT_USER "SOFTWARE\iMesh\Client" "SilentRegistration" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\iMesh\Client" "UpgradeDone" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\iMesh\Client\SOCKS" "Enabled" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\iMesh\Client\Transfer" "DBSM" 0x0 SectionEnd SubSection "Languages" SEC2 Section "Deutsch" SEC3 SetOutPath "$INSTDIR\Client\Languages" SetOverwrite on File "..\instal dir\Client\Languages\iMeshClient.DEU.lng" SectionEnd Section "Français" SEC4 SetOutPath "$INSTDIR\Client\Languages" SetOverwrite on File "..\instal dir\Client\Languages\iMeshClient.FRA.lng" SectionEnd Section "Italiano" SEC5 SetOutPath "$INSTDIR\Client\Languages" SetOverwrite on File "..\instal dir\Client\Languages\iMeshClient.ITA.lng" SectionEnd Section "Español (Traditional Sort)" SEC6 SetOutPath "$INSTDIR\Client\Languages" SetOverwrite on File "..\instal dir\Client\Languages\iMeshClient.ESP.lng" SectionEnd Section "Portuguesa (Brasil)" SEC7 SetOutPath "$INSTDIR\Client\Languages" SetOverwrite on File "..\instal dir\Client\Languages\iMeshClient.PTB.lng" SectionEnd Section "Svenska" SEC8 SetOutPath "$INSTDIR\Client\Languages" SetOverwrite on File "..\instal dir\Client\Languages\iMeshClient.SVE.lng" SectionEnd Section "Nederlands" SEC9 SetOutPath "$INSTDIR\Client\Languages" SetOverwrite on File "..\instal dir\Client\Languages\iMeshClient.NLD.lng" SectionEnd Section "Polski" SEC10 SetOutPath "$INSTDIR\Client\Languages" SetOverwrite on File "..\instal dir\Client\Languages\iMeshClient.PLK.lng" SectionEnd Section "Türkçe" SEC11 SetOutPath "$INSTDIR\Client\Languages" SetOverwrite on File "..\instal dir\Client\Languages\iMeshClient.TRK.lng" SectionEnd Section "Hebrew" SEC12 SetOutPath "$INSTDIR\Client\Languages" SetOverwrite on File "..\instal dir\Client\Languages\iMeshClient.HEB.lng" SectionEnd Section "Chinese (PRC)" SEC13 SetOutPath "$INSTDIR\Client\Languages" SetOverwrite on File "..\instal dir\Client\Languages\iMeshClient.CHS.lng" SectionEnd Section "Chinese (Taiwan)" SEC14 SetOutPath "$INSTDIR\Client\Languages" SetOverwrite on File "..\instal dir\Client\Languages\iMeshClient.CHT.lng" SectionEnd SubsectionEnd SubSection "Tools" SEC15 Section "PeerGuardian (v 1.99 pr14)" SEC16 SetOutPath "$INSTDIR\Client\Tools\PeerGuardian" SetOverwrite on File "..\instal dir\Client\Tools\PeerGuardian\guarding.p2p" File "..\instal dir\Client\Tools\PeerGuardian\PeerGuardian_1.99b_pr14.exe" CreateDirectory "$SMPROGRAMS\$ICONS_GROUP\Tools" CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Tools\PeerGuardian.lnk" "$INSTDIR\Client\Tools\PeerGuardian\PeerGuardian_1.99b_pr14.exe" SectionEnd Section "AVIPreview (v 0.26a)" SEC17 SetOutPath "$INSTDIR\Client\Tools" SetOverwrite on File "..\instal dir\Client\Tools\AVIPreview.exe" CreateDirectory "$SMPROGRAMS\$ICONS_GROUP\Tools" CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Tools\AVIPreview.lnk" "$INSTDIR\Client\Tools\AVIPreview.exe" SectionEnd Section "K-Sig (v 1.2.3 b2) (Sig2Dat)" SEC18 SetOutPath "$INSTDIR\Client\Tools" SetOverwrite on File "..\instal dir\Client\Tools\KSig.exe" CreateDirectory "$SMPROGRAMS\$ICONS_GROUP\Tools" CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Tools\K-Sig.lnk" "$INSTDIR\Client\Tools\KSig.exe" SectionEnd Section "K-Dat (v 1.2.5)" SEC19 SetOutPath "$INSTDIR\Client\Tools" SetOverwrite on File "..\instal dir\Client\Tools\K-Dat.exe" CreateDirectory "$SMPROGRAMS\$ICONS_GROUP\Tools" CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Tools\K-Dat.lnk" "$INSTDIR\Client\Tools\K-Dat.exe" SectionEnd Section "Hosts Manager (v 1.4)" SEC20 SetOutPath "$INSTDIR\Client\Tools" SetOverwrite on File "..\instal dir\Client\Tools\Hosts Manager.exe" CreateDirectory "$SMPROGRAMS\$ICONS_GROUP\Tools" CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Tools\Hosts Manager.lnk" "$INSTDIR\Client\Tools\Hosts Manager.exe" SectionEnd Section "MP3 Shield (v 2.0)" SEC21 SetOutPath "$INSTDIR\Client\Tools" SetOverwrite on File "..\instal dir\Client\Tools\MP3Shield.exe" CreateDirectory "$SMPROGRAMS\$ICONS_GROUP\Tools" CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Tools\MP3 Shield.lnk" "$INSTDIR\Client\Tools\MP3Shield.exe" SectionEnd SubsectionEnd Section "VB-RuntimeFile (for 9x, ME users)" SEC22 SectionEnd Section -AdditionalIcons WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}" CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url" CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk" "$INSTDIR\uninst.exe" SectionEnd Section -Post WriteUninstaller "$INSTDIR\uninst.exe" WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "\iml-run.exe" WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "iMesh Light" WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe" WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\iml-run.exe" WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}" WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "${PRODUCT_STARTMENU_REGVAL}" "$ICONS_GROUP" WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}" WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}" SectionEnd ; Section descriptions !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN !insertmacro MUI_DESCRIPTION_TEXT ${SEC01} "IM-L, all the recommerd files needed to run iMesh Light." !insertmacro MUI_DESCRIPTION_TEXT ${SEC2} "Languages, select the languages you want to instal." !insertmacro MUI_DESCRIPTION_TEXT ${SEC15} "Tools, this will install all tools." !insertmacro MUI_DESCRIPTION_TEXT ${SEC16} "Peergardian v1.99 pr14, blocks ip-adresses. The ip's are automaticly updated by PeerGuardian. This is very usefull against RIAA/MPAA." !insertmacro MUI_DESCRIPTION_TEXT ${SEC17} "AVIPreview v0.26a, This is a modified version of AVIPreview. Its the best software for viewing your not completed movies." !insertmacro MUI_DESCRIPTION_TEXT ${SEC18} "K-Sig v1.2.3 b2, this is the best Sig2Dat handler. It support iMesh in this version. Sig2Dat are quicklinks, they are used for downloads." !insertmacro MUI_DESCRIPTION_TEXT ${SEC19} "K-Dat v1.2.5, with K-Dat you can view not completed downloads, and get information about them." !insertmacro MUI_DESCRIPTION_TEXT ${SEC20} "Hosts Manager v1.4, Edit and update your Windows HOSTS file with new websites/servers names without losing or duplicating your existing entries." !insertmacro MUI_DESCRIPTION_TEXT ${SEC21} "MP3 Shield 2.0, MP3 Shield is a plug-and-play application designed to rapidly scan vast MP3 collection for corruptions and to automatically detect corrupted MP3 files while being downloaded." !insertmacro MUI_FUNCTION_DESCRIPTION_END Function un.onUninstSuccess HideWindow MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer." FunctionEnd Function un.onInit !insertmacro MUI_UNGETLANGUAGE 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 ReadRegStr $ICONS_GROUP ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "${PRODUCT_STARTMENU_REGVAL}" Delete "$INSTDIR\${PRODUCT_NAME}.url" Delete "$INSTDIR\uninst.exe" Delete "$INSTDIR\Client\Languages\AVIPreview.exe" Delete "$INSTDIR\Client\Languages\iMeshClient.CHS.lng" Delete "$INSTDIR\Client\Languages\iMeshClient.CHT.lng" Delete "$INSTDIR\Client\Languages\iMeshClient.DEU.lng" Delete "$INSTDIR\Client\Languages\iMeshClient.ESP.lng" Delete "$INSTDIR\Client\Languages\iMeshClient.FRA.lng" Delete "$INSTDIR\Client\Languages\iMeshClient.HEB.lng" Delete "$INSTDIR\Client\Languages\iMeshClient.ITA.lng" Delete "$INSTDIR\Client\Languages\iMeshClient.NLD.lng" Delete "$INSTDIR\Client\Languages\iMeshClient.ntv.lng" Delete "$INSTDIR\Client\Languages\iMeshClient.PLK.lng" Delete "$INSTDIR\Client\Languages\iMeshClient.PTB.lng" Delete "$INSTDIR\Client\Languages\iMeshClient.SVE.lng" Delete "$INSTDIR\Client\Languages\iMeshClient.TRK.lng" Delete "$INSTDIR\Client\ReadMe.txt" Delete "$INSTDIR\Client\ConfigWizard.exe" Delete "$INSTDIR\Client\iMeshClient.exe" Delete "$INSTDIR\Client\IM-L.ico" Delete "$INSTDIR\Client\iml-run.ini" Delete "$INSTDIR\Client\sharedfolder.exe" Delete "$INSTDIR\Client\sound.wav" Delete "$INSTDIR\iml-run.exe" Delete "$INSTDIR\iml-run.ini" Delete "$INSTDIR\settings.ini" Delete "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk" Delete "$SMPROGRAMS\$ICONS_GROUP\Website.lnk" Delete "$DESKTOP\IM-L.lnk" Delete "$SMPROGRAMS\$ICONS_GROUP\IM-L.lnk" RMDir "$INSTDIR\Client\Languages" RMDir "$INSTDIR\Client" RMDir "$INSTDIR" RMDir "$SMPROGRAMS\$ICONS_GROUP" DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}" SetAutoClose true SectionEnd