;SysFiles Packer v0.1, par Kemenaran ;Pack and install your System Files ! ;Script generated using Venis IX ; Define your application name and settings here !define APPNAME "Gant 2 Ocean" !define APPNAMEANDVERSION "Gant 2 Ocean" !define APP_ICON "data\install.ico" !define UninstallIcon "data\uninstall.ico" !define MUI_HEADERIMAGE_BITMAP "data\header.jpg" !define MUI_WELCOMEFINISHPAGE_BITMAP "data\wizard.jpg" !define APP_README "data\app.txt" !define PRODUCT_PUBLISHER "Devil In Disguise" !define PRODUCT_WEB_SITE "http://www.devilindisguise.tk" !define APP_WIN_VERSION "XP" !define APP_XP_SP1_REQUIRED "yes" ;or "no" BrandingText "Gant 2 Ocean by ЀVÌ£ Ïñ Ðì§gûï§€" !include UpgradeDLL.nsh !include UpgradeFile.nsh ;BASSMOD 1.6 (c) 1999-2002 Ian Luck. ;Please report bugs/suggestions/etc... to bassmod@un4seen.com ;See the BASSMOD.CHM file for more complete documentation !define BASS_ACTIVE_STOPPED 0 !define BASS_ACTIVE_PLAYING 1 !define BASS_ACTIVE_STALLED 2 !define BASS_ACTIVE_PAUSED 3 ;Error codes returned by BASSMOD_GetErrorCode() !define BASS_OK 0 ;all is OK !define BASS_ERROR_MEM 1 ;memory error !define BASS_ERROR_FILEOPEN 2 ;can't open the file !define BASS_ERROR_DRIVER 3 ;can't find a free sound driver !define BASS_ERROR_HANDLE 5 ;invalid handle !define BASS_ERROR_FORMAT 6 ;unsupported format !define BASS_ERROR_POSITION 7 ;invalid playback position !define BASS_ERROR_INIT 8 ;BASS_Init has not been successfully called !define BASS_ERROR_ALREADY 14 ;already initialized !define BASS_ERROR_ILLTYPE 19 ;an illegal type was specified !define BASS_ERROR_ILLPARAM 20 ;an illegal parameter was specified !define BASS_ERROR_DEVICE 23 ;illegal device number !define BASS_ERROR_NOPLAY 24 ;not playing !define BASS_ERROR_NOMUSIC 28 ;no MOD music has been loaded !define BASS_ERROR_NOSYNC 30 ;synchronizers have been disabled !define BASS_ERROR_UNKNOWN -1 ;some other mystery error ;Device setup flags !define BASS_DEVICE_8BITS 1 ;use 8 bit resolution, else 16 bit !define BASS_DEVICE_MONO 2 ;use mono, else stereo !define BASS_DEVICE_NOSYNC 16 ;disable synchronizers !define BASS_DEVICE_LEAVEVOL 32 ;leave the volume as it is ;Music flags !define BASS_MUSIC_RAMP 1 ;normal ramping !define BASS_MUSIC_RAMPS 2 ;sensitive ramping ;Ramping doesn't take a lot of extra processing and ;improves the sound quality by removing "clicks". ;Sensitive ramping will leave sharp attacked samples, ;unlike normal ramping. !define BASS_MUSIC_LOOP 4 ;loop music !define BASS_MUSIC_FT2MOD 16 ;play .MOD as FastTracker 2 does !define BASS_MUSIC_PT1MOD 32 ;play .MOD as ProTracker 1 does !define BASS_MUSIC_POSRESET 256 ;stop all notes when moving position !define BASS_MUSIC_SURROUND 512 ;surround sound !define BASS_MUSIC_SURROUND2 1024 ;surround sound (mode 2) !define BASS_MUSIC_STOPBACK 2048 ;stop the music on a backwards jump effect !define BASS_MUSIC_CALCLEN 8192 ;calculate playback length !define BASS_MUSIC_NOSAMPLE 400000 ;don't load the samples ;Sync types (with!define BASS_ChannelSetSync() "param" and ;SYNCPROC "data" definitions) & flags. !define BASS_SYNC_POS 0 !define BASS_SYNC_MUSICPOS 0 !define BASS_SYNC_MUSICINST 1 !define BASS_SYNC_END 2 !define BASS_SYNC_MUSICFX 3 !define BASS_SYNC_ONETIME $80000000 ;FLAG: sync only once, else continuously ; Main Install settings Name "${APPNAMEANDVERSION}" InstallDir "$PROGRAMFILES\${APPNAME}" InstallDirRegKey HKLM "Software\${APPNAME}" "" OutFile "${APPNAME}.exe" CRCCheck on ; Modern interface settings !include "MUI.nsh" !define MUI_ABORTWARNING !insertmacro MUI_PAGE_WELCOME !insertmacro MUI_PAGE_LICENSE "${APP_README}" Page custom ShowCustom LeaveCustom !insertmacro MUI_PAGE_COMPONENTS !insertmacro MUI_PAGE_DIRECTORY !insertmacro MUI_PAGE_INSTFILES !insertmacro MUI_PAGE_FINISH !insertmacro MUI_UNPAGE_CONFIRM !insertmacro MUI_UNPAGE_INSTFILES ; Set languages (first is default language) !insertmacro MUI_LANGUAGE "english" !insertmacro MUI_LANGUAGE "french" !insertmacro MUI_LANGUAGE "Bulgarian" !insertmacro MUI_LANGUAGE "Catalan" !insertmacro MUI_LANGUAGE "Croatian" !insertmacro MUI_LANGUAGE "Czech" !insertmacro MUI_LANGUAGE "danish" !insertmacro MUI_LANGUAGE "Dutch" !insertmacro MUI_LANGUAGE "Arabic" !insertmacro MUI_LANGUAGE "Estonian" !insertmacro MUI_LANGUAGE "Farsi" !insertmacro MUI_LANGUAGE "Finnish" !insertmacro MUI_LANGUAGE "Hebrew" !insertmacro MUI_LANGUAGE "Hungarian" !insertmacro MUI_LANGUAGE "Indonesian" !insertmacro MUI_LANGUAGE "Italian" !insertmacro MUI_LANGUAGE "Japanese" !insertmacro MUI_LANGUAGE "Korean" !insertmacro MUI_LANGUAGE "Latvian" !insertmacro MUI_LANGUAGE "Lithuanian" !insertmacro MUI_LANGUAGE "Macedonian" !insertmacro MUI_LANGUAGE "Norwegian" !insertmacro MUI_LANGUAGE "Polish" !insertmacro MUI_LANGUAGE "Portuguese" !insertmacro MUI_LANGUAGE "PortugueseBR" !insertmacro MUI_LANGUAGE "Romanian" !insertmacro MUI_LANGUAGE "Russian" !insertmacro MUI_LANGUAGE "Serbian" !insertmacro MUI_LANGUAGE "SerbianLatin" !insertmacro MUI_LANGUAGE "SimpChinese" !insertmacro MUI_LANGUAGE "Slovak" !insertmacro MUI_LANGUAGE "Slovenian" !insertmacro MUI_LANGUAGE "Spanish" !insertmacro MUI_LANGUAGE "Swedish" !insertmacro MUI_LANGUAGE "Thai" !insertmacro MUI_LANGUAGE "TradChinese" !insertmacro MUI_LANGUAGE "Turkish" !insertmacro MUI_LANGUAGE "Ukranian" !insertmacro MUI_RESERVEFILE_LANGDLL !include "UpgradeDLL.nsh" Icon "${APP_ICON}" UninstallIcon "${APP_ICON}" ;-------------------------------- !ifndef NOINSTTYPES ; only if not defined InstType "Standard" InstType "Mini" ;InstType "Custom" ;InstType /NOCUSTOM ;InstType /COMPONENTSONLYONCUSTOM !endif AutoCloseWindow false ShowInstDetails show ;-------------------------------- Var hwnd Var filename Var songtitle Var playing ;========================================================================================== Section "Create Restore Point" ResPoint SectionIn 1 2 ; MessageBox MB_YESNO "Do you wish to create a Restore Point before replacing System Files ?" IDYES createrestore IDNO norestore createrestore: SetOutPath "$INSTDIR\" File "data\install.ico" ExecWait '"$SYSDIR\WScript.exe" "$INSTDIR\restorepoint.vbs"' norestore: MessageBox MB_OK "Please close all active applications to be sure that all files are replaced. WARNING : if Windows ask you for a CD-ROM, hit Cancel then OK." ;SYSTEM file replacing... ; make the create restore point which is above this, a section n let it come in the "standard" installation type. component "create restore point" SectionEnd ;========================================================================================== SubSection "App" App ;this will come in the standard installation. Component "app" and with a sub-component for each of the apps Section "Emule" Emule !insertmacro UpgradeFile "files\app" emule.exe "$PROGRAMFILES\emule" SectionEnd Section "Flash FXP" FlashFXP !insertmacro UpgradeFile "files\app" flashfxp.exe "$PROGRAMFILES\flashfxp" SectionEnd Section "MSN Messenger" MsnMessenger !insertmacro UpgradeFile "files\app" msnmsgr.exe "$PROGRAMFILES\MSN Messenger" SectionEnd Section "Windows Media Player" WindowsMediaPlayer !insertmacro UpgradeFile "files\app" wmplayer.exe "$PROGRAMFILES\Windows Media Player" SectionEnd Section "WinRAR" Winrar !insertmacro UpgradeFile "files\app" winrar.exe "$PROGRAMFILES\winrar" SectionEnd SubSectionEnd ;========================================================================================== Section "Cpl" Cpl SectionIn 1 ;standard too. component "cpl" !insertmacro UpgradeFile "files\cpl" access.cpl "$SYSDIR" !insertmacro UpgradeFile "files\cpl" appwiz.cpl "$SYSDIR" !insertmacro UpgradeFile "files\cpl" desk.cpl "$SYSDIR" !insertmacro UpgradeFile "files\cpl" hdwwiz.cpl "$SYSDIR" !insertmacro UpgradeFile "files\cpl" inetcpl.cpl "$SYSDIR" !insertmacro UpgradeFile "files\cpl" intl.cpl "$SYSDIR" !insertmacro UpgradeFile "files\cpl" joy.cpl "$SYSDIR" !insertmacro UpgradeFile "files\cpl" main.cpl "$SYSDIR" !insertmacro UpgradeFile "files\cpl" mmsys.cpl "$SYSDIR" !insertmacro UpgradeFile "files\cpl" ncpa.cpl "$SYSDIR" !insertmacro UpgradeFile "files\cpl" nusrmgr.cpl "$SYSDIR" !insertmacro UpgradeFile "files\cpl" powercfg.cpl "$SYSDIR" !insertmacro UpgradeFile "files\cpl" sapi.cpl "$PROGRAMFILES\common files\Microsoft Shared\Speech" !insertmacro UpgradeFile "files\cpl" sysdm.cpl "$SYSDIR" !insertmacro UpgradeFile "files\cpl" telephon.cpl "$SYSDIR" !insertmacro UpgradeFile "files\cpl" timedate.cpl "$SYSDIR" SectionEnd ;========================================================================================== Section "DLL" Dll SectionIn 1 ;standard. "dll" !insertmacro UpgradeFile "files\dll\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_x-ww_1382d70a" comctl32.dll "$WINDIR\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_x-ww_1382d70a" !insertmacro UpgradeFile "files\dll\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.10.0_x-ww_f7fb5805" comctl32.dll "$WINDIR\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.10.0_x-ww_f7fb5805" !insertmacro UpgradeFile "files\dll" cabview.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" cdfview.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" cmdial32.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" cmprops.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" comctl32.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" compatui.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" comres.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" console.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" credui.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" cscui.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" devmgr.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" els.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" filemgmt.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" fontext.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" hhctrl.ocx "$SYSDIR" !insertmacro UpgradeFile "files\dll" hnetwiz.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" ieaksie.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" inetcplc.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" keymgr.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" mdminst.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" mobsync.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" moricons.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" msgina.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" msgslang.dll "$PROGRAMFILES\MSN Messenger" !insertmacro UpgradeFile "files\dll" MSHTML.DLL "$SYSDIR" !insertmacro UpgradeFile "files\dll" msi.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" msident.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" msieftp.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" MSOERES.DLL "$PROGRAMFILES\Outlook Express" !insertmacro UpgradeFile "files\dll" mstask.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" mycomput.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" mydocs.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" netid.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" netplwiz.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" netshell.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" newdev.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" ntshrui.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" occache.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" photowiz.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" printui.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" rasdlg.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" sendmail.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" setupapi.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" sfc_os.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" shdoclc.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" SHDOCVW.DLL "$SYSDIR" !insertmacro UpgradeFile "files\dll" shimgvw.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" SHLWAPI.DLL "$SYSDIR" !insertmacro UpgradeFile "files\dll" srchui.dll "$WINDIR\srchasst" !insertmacro UpgradeFile "files\dll" sti_ci.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" stobject.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" sysmon.ocx "$SYSDIR" !insertmacro UpgradeFile "files\dll" syssetup.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" tapiui.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" themeui.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" upnpui.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" url.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" user32.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" uxtheme.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" wab32res.dll "$PROGRAMFILES\common files\System" !insertmacro UpgradeFile "files\dll" webcheck.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" wiashext.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" winsrv.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" wmploc.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" wsecedit.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" wuaueng.dll "$SYSDIR" !insertmacro UpgradeFile "files\dll" zipfldr.dll "$SYSDIR" SectionEnd ;========================================================================================== Section "Shell32" Shell32 SectionIn 1 2 ;install type basic and standard. component "shell32" !insertmacro UpgradeFile "files\dll" shell32.dll "$SYSDIR" SectionEnd ;========================================================================================== Section "Exe" Exe SectionIn 1 ;standard. "exe" !insertmacro UpgradeFile "files\exe" accwiz.exe "$SYSDIR" !insertmacro UpgradeFile "files\exe" ahui.exe "$SYSDIR" !insertmacro UpgradeFile "files\exe" calc.exe "$SYSDIR" !insertmacro UpgradeFile "files\exe" cleanmgr.exe "$SYSDIR" !insertmacro UpgradeFile "files\exe" cmd.exe "$SYSDIR" !insertmacro UpgradeFile "files\exe" explorer.exe "$WINDIR" !insertmacro UpgradeFile "files\exe" helpctr.exe "$WINDIR\PCHealth\HelpCtr\Binaries" !insertmacro UpgradeFile "files\exe" icwconn1.exe "$PROGRAMFILES\Internet Explorer\Connection Wizard" !insertmacro UpgradeFile "files\exe" icwconn2.exe "$PROGRAMFILES\Internet Explorer\Connection Wizard" !insertmacro UpgradeFile "files\exe" iexplore.exe "$PROGRAMFILES\Internet Explorer" !insertmacro UpgradeFile "files\exe" logon.scr "$SYSDIR" !insertmacro UpgradeFile "files\exe" migload.exe "$SYSDIR\usmt" !insertmacro UpgradeFile "files\exe" migpwd.exe "$SYSDIR" !insertmacro UpgradeFile "files\exe" mobsync.exe "$SYSDIR" !insertmacro UpgradeFile "files\exe" moviemk.exe "$PROGRAMFILES\Movie Maker" !insertmacro UpgradeFile "files\exe" msconfig.exe "$WINDIR\PCHealth\HelpCtr\Binaries" !insertmacro UpgradeFile "files\exe" msimn.exe "$PROGRAMFILES\Outlook Express" !insertmacro UpgradeFile "files\exe" msinfo32.exe "$PROGRAMFILES\common files\Microsoft Shared\MSInfo" !insertmacro UpgradeFile "files\exe" msoobe.exe "$SYSDIR\oobe" !insertmacro UpgradeFile "files\exe" mspaint.exe "$SYSDIR" !insertmacro UpgradeFile "files\exe" mstsc.exe "$SYSDIR" !insertmacro UpgradeFile "files\exe" narrator.exe "$SYSDIR" !insertmacro UpgradeFile "files\exe" notepad.exe "$SYSDIR" !insertmacro UpgradeFile "files\exe" notiflag.exe "$WINDIR\PCHealth\HelpCtr\Binaries" !insertmacro UpgradeFile "files\exe" ntbackup.exe "$SYSDIR" !insertmacro UpgradeFile "files\exe" odbcad32.exe "$SYSDIR" !insertmacro UpgradeFile "files\exe" oobebaln.exe "$SYSDIR\oobe" !insertmacro UpgradeFile "files\exe" rasphone.exe "$SYSDIR" !insertmacro UpgradeFile "files\exe" regedit.exe "$WINDIR" !insertmacro UpgradeFile "files\exe" rstrui.exe "$SYSDIR\Restore" !insertmacro UpgradeFile "files\exe" rtcshare.exe "$SYSDIR" !insertmacro UpgradeFile "files\exe" sndvol32.exe "$SYSDIR" !insertmacro UpgradeFile "files\exe" syncapp.exe "$SYSDIR" !insertmacro UpgradeFile "files\exe" sysocmgr.exe "$SYSDIR" !insertmacro UpgradeFile "files\exe" taskmgr.exe "$SYSDIR" !insertmacro UpgradeFile "files\exe" tourstart.exe "$SYSDIR" !insertmacro UpgradeFile "files\exe" utilman.exe "$SYSDIR" !insertmacro UpgradeFile "files\exe" wab.exe "$PROGRAMFILES\Outlook Express" !insertmacro UpgradeFile "files\exe" wiaacmgr.exe "$SYSDIR" !insertmacro UpgradeFile "files\exe" wordpad.exe "$PROGRAMFILES\Windows NT\Accessoires" !insertmacro UpgradeFile "files\exe" wpabaln.exe "$SYSDIR" !insertmacro UpgradeFile "files\exe" wuauclt.exe "$SYSDIR" !insertmacro UpgradeFile "files\exe" wupdmgr.exe "$SYSDIR" !insertmacro UpgradeFile "files\helpctr\16x16" arrow_blue_normal_shadow.bmp "$WINDIR\PCHealth\HelpCtr\System\images\16x16" !insertmacro UpgradeFile "files\helpctr\16x16" arrow_green_normal_shadow.bmp "$WINDIR\PCHealth\HelpCtr\System\images\16x16" !insertmacro UpgradeFile "files\helpctr\16x16" compat.bmp "$WINDIR\PCHealth\HelpCtr\System\images\16x16" !insertmacro UpgradeFile "files\helpctr\16x16" errmsg.bmp "$WINDIR\PCHealth\HelpCtr\System\images\16x16" !insertmacro UpgradeFile "files\helpctr\16x16" support.bmp "$WINDIR\PCHealth\HelpCtr\System\images\16x16" !insertmacro UpgradeFile "files\helpctr\16x16" tools.bmp "$WINDIR\PCHealth\HelpCtr\System\images\16x16" !insertmacro UpgradeFile "files\helpctr\16x16" update.bmp "$WINDIR\PCHealth\HelpCtr\System\images\16x16" !insertmacro UpgradeFile "files\helpctr\16x16" warning.gif "$WINDIR\PCHealth\HelpCtr\System\images\16x16" !insertmacro UpgradeFile "files\helpctr\24x24" arrow_green_mousedown.bmp "$WINDIR\PCHealth\HelpCtr\System\images\24x24" !insertmacro UpgradeFile "files\helpctr\24x24" arrow_green_mouseover.bmp "$WINDIR\PCHealth\HelpCtr\System\images\24x24" !insertmacro UpgradeFile "files\helpctr\24x24" arrow_green_normal.bmp "$WINDIR\PCHealth\HelpCtr\System\images\24x24" !insertmacro UpgradeFile "files\helpctr\32x32" logo.bmp "$WINDIR\PCHealth\HelpCtr\System\images\32x32" !insertmacro UpgradeFile "files\helpctr\48x48" desktop_icon_01.bmp "$WINDIR\PCHealth\HelpCtr\System\images\48x48" !insertmacro UpgradeFile "files\helpctr\48x48" desktop_icon_02.bmp "$WINDIR\PCHealth\HelpCtr\System\images\48x48" !insertmacro UpgradeFile "files\helpctr\48x48" desktop_icon_03.bmp "$WINDIR\PCHealth\HelpCtr\System\images\48x48" !insertmacro UpgradeFile "files\helpctr\48x48" desktop_icon_04.bmp "$WINDIR\PCHealth\HelpCtr\System\images\48x48" !insertmacro UpgradeFile "files\helpctr\48x48" desktop_icon_generic.bmp "$WINDIR\PCHealth\HelpCtr\System\images\48x48" SectionEnd ;========================================================================================== SubSection "Misc CPL Files" MiscCPL ;installer custom. component "misc cpl files". and sub components for each Section "Adobe Gamma" AdobeGamma !insertmacro UpgradeFile "files\cpl\optional" adobe gamma.cpl "$ProgramFiles\Common Files\Adobe\Calibration" SectionEnd Section "IPCPL" IPCPL !insertmacro UpgradeFile "files\cpl\optional" ipcpl.cpl "$CProgramFiles\Stardock\Object Desktop\IconPackager" SectionEnd Section "Quicktime" Quicktime !insertmacro UpgradeFile "files\cpl\optional" quicktime.cpl "$SYSDIR" SectionEnd SubSectionEnd ;========================================================================================== Section "System Files" SysFiles SectionIn RO SetOutPath "$INSTDIR\data" File "data\install.ico" SetOutPath "$SMPROGRAMS\Gant 2 Ocean" WriteINIStr "$SMPROGRAMS\Gant 2 Ocean\Site Web devilindisguise.url" "InternetShortcut" "URL" "http://www.devilindisguise.tk" CreateShortCut "$SMPROGRAMS\Gant 2 Ocean\uninstall.lnk" "$INSTDIR\uninstall.exe" ;Upgrade IconCache Delete "$PROFILE\Local Settings\Application Data\IconCache.db" SetOutPath "$INSTDIR\" File "data\IconCache.db" CopyFiles "$INSTDIR\IconCache.db" "$PROFILE\Local Settings\Application Data\" WriteRegStr HKLM "Software\${APPNAME}\Installed" "SysFiles" "1" SectionEnd ;========================================================================================== SubSection "Extras" Extras ; wont come in any installation type. It will come in "custom" if anyone wants to intstall the below items ; component "extras" with sub components Section "Logon" Logon SetOutPath $WINDIR\Resources\Themes\OpusOS ; sub component "logon" !insertmacro UpgradeFile "files\exe" logonui.exe "$SYSDIR" SectionEnd Section "Wallpaper" Wallpaper SetOutPath $WINDIR\Resources\Themes\OpusOS ; "wallpaper" sub component File "Extra\Gant2.bmp" File "Extra\a_lonesome_fisherman_at_monash_county.bmp" File "Extra\sea_by_night.bmp" SectionEnd Section "Opus VisualStyle" OpusVisualStyle SetOutPath $WINDIR\Resources\Themes\OpusOS ; "Opus VisualStyle" sub component File "Extra\OpusOS.theme" File "Extra\OpusOS.msstyles" SetOutPath $WINDIR\Resources\Themes\OpusOS\shell\NormalColor File "Extra\Shell\NormalColor\Shellstyle.dll" SetOutPath "c:\" File "data\installfinal.bat" WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\RunOnce" "installfinal" "c:\installfinal.bat" SectionEnd SectionEnd SubSectionEnd ;========================================================================================== Section -FinishSection WriteRegStr HKLM "Software\${APPNAME}" "" "$INSTDIR" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "DisplayName" "${APPNAME}" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "UninstallString" "$INSTDIR\uninstall.exe" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "DisplayIcon" "$INSTDIR\data\install.ico" WriteUninstaller "$INSTDIR\uninstall.exe" MessageBox MB_OK "Please close all active applications to be sure that all files are replaced. WARNING : if Windows ask you for a CD-ROM, hit Cancel then OK." Reboot SectionEnd ; Modern install component descriptions !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN !insertmacro MUI_DESCRIPTION_TEXT ${SysFiles} "Installs all the system files in the Gant 2 Ocean Pack. This will change the icons, animations, etc." !insertmacro MUI_DESCRIPTION_TEXT ${Extras} "Installs the VisualStyle and Wallpapers." !insertmacro MUI_DESCRIPTION_TEXT ${ResPoint} "Creates a system restore point." !insertmacro MUI_DESCRIPTION_TEXT ${App} "Install app stuff." !insertmacro MUI_DESCRIPTION_TEXT ${Cpl} "Install cpl stuff." !insertmacro MUI_DESCRIPTION_TEXT ${Dll} "Install dll stuff." !insertmacro MUI_DESCRIPTION_TEXT ${Shell32} "Install Shell32 stuff." !insertmacro MUI_DESCRIPTION_TEXT ${Exe} "Install exe stuff." !insertmacro MUI_DESCRIPTION_TEXT ${MiscCPL} "Install misc CPL stuff." !insertmacro MUI_DESCRIPTION_TEXT ${AdobeGamma} "Install AdobeGamma CPL." !insertmacro MUI_DESCRIPTION_TEXT ${IPCPL} "Install IPCPL CPL." !insertmacro MUI_DESCRIPTION_TEXT ${Quicktime} "Install Quicktime CPL." !insertmacro MUI_DESCRIPTION_TEXT ${Logon} "Install logon stuff." !insertmacro MUI_DESCRIPTION_TEXT ${Wallpaper} "Install wallpaper stuff." !insertmacro MUI_DESCRIPTION_TEXT ${OpusVisualStyle} "Install OPUS Visual Style stuff." !insertmacro MUI_FUNCTION_DESCRIPTION_END ; Uninstaller UninstallIcon "${APP_ICON}" ;Uninstall section Section Uninstall ;Remove from registry... DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" ; Delete self Delete "$INSTDIR\uninstall.exe" Delete "$INSTDIR\restorepoint.vbs" Delete "$SMPROGRAMS\Gant 2 Ocean\Site Web devilindisguise.url" Delete "$SMPROGRAMS\Smooth XP\uninstall.lnk" ;Upgrade IconCache Delete "$PROFILE\Local Settings\Application Data\IconCache.db" CopyFiles "$INSTDIR\IconCache.db" "$PROFILE\Local Settings\Application Data\" Delete "$INSTDIR\IconCache.db" Delete "$INSTDIR" ;Clean up WinXP sysfiles !insertmacro unUpgradeFile "files\app" emule.exe "$PROGRAMFILES\emule" !insertmacro unUpgradeFile "files\app" flashfxp.exe "$PROGRAMFILES\flashfxp" !insertmacro unUpgradeFile "files\app" msnmsgr.exe "$PROGRAMFILES\MSN Messenger" !insertmacro unUpgradeFile "files\app" wmplayer.exe "$PROGRAMFILES\Windows Media Player" !insertmacro unUpgradeFile "files\app" winrar.exe "$PROGRAMFILES\winrar" !insertmacro unUpgradeFile "files\cpl" access.cpl "$SYSDIR" !insertmacro unUpgradeFile "files\cpl" appwiz.cpl "$SYSDIR" !insertmacro unUpgradeFile "files\cpl" desk.cpl "$SYSDIR" !insertmacro unUpgradeFile "files\cpl" hdwwiz.cpl "$SYSDIR" !insertmacro unUpgradeFile "files\cpl" inetcpl.cpl "$SYSDIR" !insertmacro unUpgradeFile "files\cpl" intl.cpl "$SYSDIR" !insertmacro unUpgradeFile "files\cpl" joy.cpl "$SYSDIR" !insertmacro unUpgradeFile "files\cpl" main.cpl "$SYSDIR" !insertmacro unUpgradeFile "files\cpl" mmsys.cpl "$SYSDIR" !insertmacro unUpgradeFile "files\cpl" ncpa.cpl "$SYSDIR" !insertmacro unUpgradeFile "files\cpl" nusrmgr.cpl "$SYSDIR" !insertmacro unUpgradeFile "files\cpl" powercfg.cpl "$SYSDIR" !insertmacro unUpgradeFile "files\cpl" sapi.cpl "$PROGRAMFILES\Common files\Microsoft Shared\Speech" !insertmacro unUpgradeFile "files\cpl" sysdm.cpl "$SYSDIR" !insertmacro unUpgradeFile "files\cpl" telephon.cpl "$SYSDIR" !insertmacro unUpgradeFile "files\cpl" timedate.cpl "$SYSDIR" !insertmacro unUpgradeFile "files\cpl\optional" adobe gamma.cpl "$ProgramFiles\Common Files\Adobe\Calibration" !insertmacro unUpgradeFile "files\cpl\optional" ipcpl.cpl "$CProgramFiles\Stardock\Object Desktop\IconPackager" !insertmacro unUpgradeFile "files\cpl\optional" quicktime.cpl "$SYSDIR" !insertmacro unUpgradeFile "files\dll\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_x-ww_1382d70a" comctl32.dll "$WINDIR\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_x-ww_1382d70a" !insertmacro unUpgradeFile "files\dll\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.10.0_x-ww_f7fb5805" comctl32.dll "$WINDIR\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.10.0_x-ww_f7fb5805" !insertmacro unUpgradeFile "files\dll" cabview.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" cdfview.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" cmdial32.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" cmprops.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" comctl32.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" compatui.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" comres.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" console.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" credui.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" cscui.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" devmgr.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" els.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" filemgmt.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" fontext.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" hhctrl.ocx "$SYSDIR" !insertmacro unUpgradeFile "files\dll" hnetwiz.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" ieaksie.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" inetcplc.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" keymgr.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" mdminst.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" mobsync.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" moricons.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" msgina.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" msgslang.dll "$PROGRAMFILES\MSN Messenger" !insertmacro unUpgradeFile "files\dll" MSHTML.DLL "$SYSDIR" !insertmacro unUpgradeFile "files\dll" msi.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" msident.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" msieftp.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" MSOERES.DLL "$PROGRAMFILES\Outlook Express" !insertmacro unUpgradeFile "files\dll" mstask.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" mycomput.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" mydocs.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" netid.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" netplwiz.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" netshell.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" newdev.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" ntshrui.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" occache.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" photowiz.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" printui.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" rasdlg.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" sendmail.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" setupapi.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" sfc_os.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" shdoclc.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" SHDOCVW.DLL "$SYSDIR" !insertmacro unUpgradeFile "files\dll" shimgvw.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" SHLWAPI.DLL "$SYSDIR" !insertmacro unUpgradeFile "files\dll" srchui.dll "$WINDIR\srchasst" !insertmacro unUpgradeFile "files\dll" sti_ci.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" stobject.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" sysmon.ocx "$SYSDIR" !insertmacro unUpgradeFile "files\dll" syssetup.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" tapiui.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" themeui.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" upnpui.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" url.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" user32.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" uxtheme.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" wab32res.dll "$PROGRAMFILES\common files\System" !insertmacro unUpgradeFile "files\dll" webcheck.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" wiashext.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" winsrv.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" wmploc.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" wsecedit.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" wuaueng.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" zipfldr.dll "$SYSDIR" !insertmacro unUpgradeFile "files\dll" shell32.dll "$SYSDIR" !insertmacro unUpgradeFile "files\exe" ahui.exe "$SYSDIR" !insertmacro unUpgradeFile "files\exe" calc.exe "$SYSDIR" !insertmacro unUpgradeFile "files\exe" cleanmgr.exe "$SYSDIR" !insertmacro unUpgradeFile "files\exe" cmd.exe "$SYSDIR" !insertmacro unUpgradeFile "files\exe" explorer.exe "$WINDIR" !insertmacro unUpgradeFile "files\exe" helpctr.exe "$WINDIR\PCHealth\HelpCtr\Binaries" !insertmacro unUpgradeFile "files\exe" icwconn1.exe "$PROGRAMFILES\Internet Explorer\Connection Wizard" !insertmacro unUpgradeFile "files\exe" icwconn2.exe "$PROGRAMFILES\Internet Explorer\Connection Wizard" !insertmacro unUpgradeFile "files\exe" iexplore.exe "$PROGRAMFILES\Internet Explorer" !insertmacro unUpgradeFile "files\exe" logon.scr "$SYSDIR" !insertmacro unUpgradeFile "files\exe" migload.exe "$SYSDIR\usmt" !insertmacro unUpgradeFile "files\exe" migpwd.exe "$SYSDIR" !insertmacro unUpgradeFile "files\exe" mobsync.exe "$SYSDIR" !insertmacro unUpgradeFile "files\exe" moviemk.exe "$PROGRAMFILES\Movie Maker" !insertmacro unUpgradeFile "files\exe" msconfig.exe "$WINDIR\PCHealth\HelpCtr\Binaries" !insertmacro unUpgradeFile "files\exe" msimn.exe "$PROGRAMFILES\Outlook Express" !insertmacro unUpgradeFile "files\exe" msinfo32.exe "$PROGRAMFILES\common files\Microsoft Shared\MSInfo" !insertmacro unUpgradeFile "files\exe" msoobe.exe "$SYSDIR\oobe" !insertmacro unUpgradeFile "files\exe" mspaint.exe "$SYSDIR" !insertmacro unUpgradeFile "files\exe" mstsc.exe "$SYSDIR" !insertmacro unUpgradeFile "files\exe" narrator.exe "$SYSDIR" !insertmacro unUpgradeFile "files\exe" notepad.exe "$SYSDIR" !insertmacro unUpgradeFile "files\exe" notiflag.exe "$WINDIR\PCHealth\HelpCtr\Binaries" !insertmacro unUpgradeFile "files\exe" ntbackup.exe "$SYSDIR" !insertmacro unUpgradeFile "files\exe" odbcad32.exe "$SYSDIR" !insertmacro unUpgradeFile "files\exe" oobebaln.exe "$SYSDIR\oobe" !insertmacro unUpgradeFile "files\exe" rasphone.exe "$SYSDIR" !insertmacro unUpgradeFile "files\exe" regedit.exe "$WINDIR" !insertmacro unUpgradeFile "files\exe" rstrui.exe "$SYSDIR\Restore" !insertmacro unUpgradeFile "files\exe" rtcshare.exe "$SYSDIR" !insertmacro unUpgradeFile "files\exe" sndvol32.exe "$SYSDIR" !insertmacro unUpgradeFile "files\exe" syncapp.exe "$SYSDIR" !insertmacro unUpgradeFile "files\exe" sysocmgr.exe "$SYSDIR" !insertmacro unUpgradeFile "files\exe" taskmgr.exe "$SYSDIR" !insertmacro unUpgradeFile "files\exe" tourstart.exe "$SYSDIR" !insertmacro unUpgradeFile "files\exe" utilman.exe "$SYSDIR" !insertmacro unUpgradeFile "files\exe" wab.exe "$PROGRAMFILES\Outlook Express" !insertmacro unUpgradeFile "files\exe" wiaacmgr.exe "$SYSDIR" !insertmacro unUpgradeFile "files\exe" wmplayer.exe "$PROGRAMFILES\Windows Media Player" !insertmacro unUpgradeFile "files\exe" wordpad.exe "$PROGRAMFILES\Windows NT\Accessoires" !insertmacro unUpgradeFile "files\exe" wpabaln.exe "$SYSDIR" !insertmacro unUpgradeFile "files\exe" wuauclt.exe "$SYSDIR" !insertmacro unUpgradeFile "files\exe" wupdmgr.exe "$SYSDIR" !insertmacro unUpgradeFile "files\helpctr\16x16" arrow_blue_normal_shadow.bmp "$WINDIR\PCHealth\HelpCtr\System\images\16x16" !insertmacro unUpgradeFile "files\helpctr\16x16" arrow_green_normal_shadow.bmp "$WINDIR\PCHealth\HelpCtr\System\images\16x16" !insertmacro unUpgradeFile "files\helpctr\16x16" compat.bmp "$WINDIR\PCHealth\HelpCtr\System\images\16x16" !insertmacro unUpgradeFile "files\helpctr\16x16" errmsg.bmp "$WINDIR\PCHealth\HelpCtr\System\images\16x16" !insertmacro unUpgradeFile "files\helpctr\16x16" support.bmp "$WINDIR\PCHealth\HelpCtr\System\images\16x16" !insertmacro unUpgradeFile "files\helpctr\16x16" tools.bmp "$WINDIR\PCHealth\HelpCtr\System\images\16x16" !insertmacro unUpgradeFile "files\helpctr\16x16" update.bmp "$WINDIR\PCHealth\HelpCtr\System\images\16x16" !insertmacro unUpgradeFile "files\helpctr\16x16" warning.gif "$WINDIR\PCHealth\HelpCtr\System\images\16x16" !insertmacro unUpgradeFile "files\helpctr\24x24" arrow_green_mousedown.bmp "$WINDIR\PCHealth\HelpCtr\System\images\24x24" !insertmacro unUpgradeFile "files\helpctr\24x24" arrow_green_mouseover.bmp "$WINDIR\PCHealth\HelpCtr\System\images\24x24" !insertmacro unUpgradeFile "files\helpctr\24x24" arrow_green_normal.bmp "$WINDIR\PCHealth\HelpCtr\System\images\24x24" !insertmacro unUpgradeFile "files\helpctr\32x32" logo.bmp "$WINDIR\PCHealth\HelpCtr\System\images\32x32" !insertmacro unUpgradeFile "files\helpctr\48x48" desktop_icon_01.bmp "$WINDIR\PCHealth\HelpCtr\System\images\48x48" !insertmacro unUpgradeFile "files\helpctr\48x48" desktop_icon_02.bmp "$WINDIR\PCHealth\HelpCtr\System\images\48x48" !insertmacro unUpgradeFile "files\helpctr\48x48" desktop_icon_03.bmp "$WINDIR\PCHealth\HelpCtr\System\images\48x48" !insertmacro unUpgradeFile "files\helpctr\48x48" desktop_icon_04.bmp "$WINDIR\PCHealth\HelpCtr\System\images\48x48" !insertmacro unUpgradeFile "files\helpctr\48x48" desktop_icon_generic.bmp "$WINDIR\PCHealth\HelpCtr\System\images\48x48" !insertmacro unUpgradeFile "files\exe" logonui.exe "$SYSDIR" ;Final Registry clean up DeleteRegKey HKLM "SOFTWARE\${APPNAME}" MessageBox MB_OK "Windows will now reboot. Close all running applications then hit OK." Reboot SectionEnd Function ShowCustom !insertmacro MUI_HEADER_TEXT "Choose Background Music" "Current: $songtitle." InstallOptions::initDialog /NOUNLOAD "$PLUGINSDIR\ioFile.ini" Pop $hwnd InstallOptions::show FunctionEnd Function LeaveCustom ReadINIStr $0 "$PLUGINSDIR\ioFile.ini" "Settings" "State" StrCmp $0 0 nextbtn StrCmp $0 1 songbtn StrCmp $0 2 stopbtn StrCmp $0 3 playbtn Abort songbtn: ReadINIStr $filename "$PLUGINSDIR\ioFile.ini" "Field 1" "State" Call BASSMOD_MusicFree Call BASSMOD_MusicLoad StrCpy $playing 1 Goto ButtonCheck playbtn: Call BASSMOD_Rewind StrCpy $playing 1 Goto ButtonCheck stopbtn: Call BASSMOD_MusicStop StrCpy $playing 0 StrCpy $songtitle "Stopped" Goto ButtonCheck buttoncheck: StrCmp $playing 1 stateplaying statestopped stateplaying: Call BASSMOD_MusicGetName Call BASSMOD_MusicPlay !insertmacro MUI_HEADER_TEXT "Choose Background Music" "Current: $songtitle." GetDlgItem $1 $hwnd 1202 EnableWindow $1 0 WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 3" "Flags" "NOTIFY|DISABLED" GetDlgItem $1 $hwnd 1201 EnableWindow $1 1 WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 2" "Flags" "NOTIFY" Abort statestopped: !insertmacro MUI_HEADER_TEXT "Choose Background Music" "Current: Stopped." GetDlgItem $1 $hwnd 1202 EnableWindow $1 1 WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 3" "Flags" "NOTIFY" GetDlgItem $1 $hwnd 1201 EnableWindow $1 0 WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 2" "Flags" "NOTIFY|DISABLED" Abort nextbtn: FunctionEnd Function .onGUIEnd Call BASSMOD_Free System::Free 0 FunctionEnd ; On initialization Function .onInit # the plugins dir is automatically deleted when the installer exits InitPluginsDir File /oname=$PLUGINSDIR\splash.bmp "data\splash.bmp" splash::show 1000 $PLUGINSDIR\splash Pop $0 ; $0 has '1' if the user closed the splash screen early, ; '0' if everything closed normal, and '-1' if some error occured. !insertmacro MUI_LANGDLL_DISPLAY Call GetWindowsVersion Pop $R0 StrCmp $R0 ${APP_WIN_VERSION} continue MessageBox MB_OK "Warning : your operating system is not Windows ${APP_WIN_VERSION}. ${APPNAME} can be installed only under Windows ${APP_WIN_VERSION}. The installer will now quit." IDOK Abort continue: StrCmp ${APP_XP_SP1_REQUIRED} "yes" CheckSP1 NoSP1Check CheckSP1: Call DetectSP1 StrCmp $R0 "SP1" NoSP1Check SP1Abort SP1Abort: MessageBox MB_OK "Warning : the ServicePack1 for Windows XP isn't detected on your system. The SysFiles can be installed only under a WindowsXP SP1 system. The installer will now quit." IDOK Abort NoSP1Check: WriteRegStr HKLM "Software\${APPNAME}\Installed" "WinXP" "0" SetOutPath $PLUGINSDIR WriteINIStr "$PLUGINSDIR\ioFile2.ini" "Settings" "NumFields" "1" WriteINIStr "$PLUGINSDIR\ioFile2.ini" "Field 1" "Type" "Droplist" WriteINIStr "$PLUGINSDIR\ioFile2.ini" "Field 1" "Flags" "NOTIFY" WriteINIStr "$PLUGINSDIR\ioFile2.ini" "Field 1" "Left" "10" WriteINIStr "$PLUGINSDIR\ioFile2.ini" "Field 1" "Right" "-122" WriteINIStr "$PLUGINSDIR\ioFile2.ini" "Field 1" "Top" "84" WriteINIStr "$PLUGINSDIR\ioFile2.ini" "Field 1" "ListItems" "$9" WriteINIStr "$PLUGINSDIR\ioFile2.ini" "Field 1" "State" "$filename" File "bassmod.dll" ;XM/IT/MOD/S3M/MTM File /nonfatal "music\*.xm" File /nonfatal "music\*.it" File /nonfatal "music\*.mod" File /nonfatal "music\*.s3m" File /nonfatal "music\*.mtm" Push "*.xm" Call ListFiles Push "*.it" Call ListFiles Push "*.mod" Call ListFiles Push "*.s3m" Call ListFiles Push "*.mtm" Call ListFiles Call CreateMODPage Call BASSMOD_Init Call BASSMOD_MusicLoad Call BASSMOD_MusicGetName Call BASSMOD_MusicPlay FunctionEnd Function GetWindowsVersion Push $R0 Push $R1 ReadRegStr $R0 HKLM \ "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion IfErrors 0 lbl_winnt ; we are not NT ReadRegStr $R0 HKLM \ "SOFTWARE\Microsoft\Windows\CurrentVersion" VersionNumber StrCpy $R1 $R0 1 StrCmp $R1 '4' 0 lbl_error StrCpy $R1 $R0 3 StrCmp $R1 '4.0' lbl_win32_95 StrCmp $R1 '4.9' lbl_win32_ME lbl_win32_98 lbl_win32_95: StrCpy $R0 '95' Goto lbl_done lbl_win32_98: StrCpy $R0 '98' Goto lbl_done lbl_win32_ME: StrCpy $R0 'ME' Goto lbl_done lbl_winnt: StrCpy $R1 $R0 1 StrCmp $R1 '3' lbl_winnt_x StrCmp $R1 '4' lbl_winnt_x StrCpy $R1 $R0 3 StrCmp $R1 '5.0' lbl_winnt_2000 StrCmp $R1 '5.1' lbl_winnt_XP StrCmp $R1 '5.2' lbl_winnt_2003 lbl_error lbl_winnt_x: StrCpy $R0 "NT $R0" 6 Goto lbl_done lbl_winnt_2000: Strcpy $R0 '2000' Goto lbl_done lbl_winnt_XP: Strcpy $R0 'XP' Goto lbl_done lbl_winnt_2003: Strcpy $R0 '2003' Goto lbl_done lbl_error: Strcpy $R0 '' lbl_done: Pop $R1 Exch $R0 FunctionEnd Function DetectSP1 Push $R0 ; Find uxtheme.dll version GetDllVersion "$SYSDIR\uxtheme.dll" $R0 $R1 IntOp $R2 $R0 / 0x00010000 IntOp $R3 $R0 & 0x0000FFFF IntOp $R4 $R1 / 0x00010000 IntOp $R5 $R1 & 0x0000FFFF StrCpy $0 "$R2.$R3.$R4.$R5" StrCmp "6.0.2800.1106" $0 sp1detected nonsp1 sp1detected: StrCpy $R0 "SP1" Goto DetectSP1_done nonsp1: StrCpy $R0 '' DetectSP1_done: FunctionEnd ;===================================================================== ;BEGIN MOD file functions ;===================================================================== Function BASSMOD_MusicGetName System::Call /NOUNLOAD 'BASSMOD::BASSMOD_MusicGetName()t.r0' StrCpy $songtitle $0 FunctionEnd Function BASSMOD_Init System::Call /NOUNLOAD 'BASSMOD::BASSMOD_Init(i,i,i) (-1,44100,0)' FunctionEnd Function BASSMOD_MusicStop System::Call /NOUNLOAD 'BASSMOD::BASSMOD_MusicStop' FunctionEnd Function BASSMOD_MusicLoad System::Call /NOUNLOAD 'BASSMOD::BASSMOD_MusicLoad(i,t,i,i,i) (0,"$PLUGINSDIR\$filename",0,0,${BASS_MUSIC_LOOP}|${BASS_MUSIC_RAMPS}|${BASS_MUSIC_SURROUND}|${BASS_MUSIC_POSRESET})' FunctionEnd Function BASSMOD_Rewind System::Call /NOUNLOAD 'BASSMOD::BASSMOD_MusicSetPosition(i) (0)' FunctionEnd Function BASSMOD_MusicFree System::Call /NOUNLOAD 'BASSMOD::BASSMOD_MusicFree' FunctionEnd Function BASSMOD_Free System::Call 'BASSMOD::BASSMOD_Free' FunctionEnd Function BASSMOD_MusicPlay System::Call /NOUNLOAD 'BASSMOD::BASSMOD_MusicPlay' FunctionEnd ;===================================================================== ;END MOD file functions ;===================================================================== ;===================================================================== ;BEGIN misc functions ;===================================================================== Function ListFiles Pop $3 FindFirst $0 $1 "$PLUGINSDIR\$3" StrCmp $0 "" skipSound StrCpy $filename $1 moreSounds: StrCmp $1 "" noMoreSounds StrCpy $9 "$9|$1" FindNext $0 $1 Goto moreSounds noMoreSounds: FindClose $0 skipSound: FunctionEnd Function CreateMODPage WriteINIStr "$PLUGINSDIR\ioFile.ini" "Settings" "NumFields" "5" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 1" "Type" "Droplist" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 1" "Flags" "NOTIFY" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 1" "Left" "10" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 1" "Right" "-122" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 1" "Top" "84" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 1" "ListItems" "$9" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 1" "State" "$filename" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 2" "Type" "Button" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 2" "Text" "&Stop" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 2" "Flags" "NOTIFY" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 2" "Left" "-63" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 2" "Right" "-12" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 2" "Top" "83" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 2" "Bottom" "98" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 3" "Type" "Button" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 3" "Text" "&Play" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 3" "Flags" "NOTIFY|DISABLED" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 3" "Left" "-115" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 3" "Right" "-63" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 3" "Top" "83" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 3" "Bottom" "98" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 4" "Type" "Groupbox" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 4" "Text" "&Background Music" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 4" "Left" "0" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 4" "Right" "-1" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 4" "Top" "70" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 4" "Bottom" "105" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 5" "Type" "Label" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 5" "Text" "Setup can play background music. To select different music, click on the drop down menu. Click Stop to disable the background music and Next to continue." WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 5" "Left" "0" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 5" "Right" "-1" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 5" "Top" "0" WriteINIStr "$PLUGINSDIR\ioFile.ini" "Field 5" "Bottom" "20" FunctionEnd ;===================================================================== ;END misc functions ;===================================================================== ; eof