diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Plugins/Input/in_cdda/inst.nsi | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/Plugins/Input/in_cdda/inst.nsi')
-rw-r--r-- | Src/Plugins/Input/in_cdda/inst.nsi | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/Src/Plugins/Input/in_cdda/inst.nsi b/Src/Plugins/Input/in_cdda/inst.nsi new file mode 100644 index 00000000..4354a247 --- /dev/null +++ b/Src/Plugins/Input/in_cdda/inst.nsi @@ -0,0 +1,78 @@ +Name "CDDB2 test, beta 1" + +; The file to write +OutFile "cddb2.exe" + +InstallDir $PROGRAMFILES\Winamp +InstallDirRegKey HKLM \ + "Software\Microsoft\Windows\CurrentVersion\Uninstall\Winamp" \ + "UninstallString" + +; The text to prompt the user to enter a directory +DirText "Please select your Winamp path below (you will be able to proceed when Winamp is detected):" +DirShow hide + +; automatically close the installer when done. +AutoCloseWindow true +; hide the "show details" box +ShowInstDetails nevershow + +BGGradient 000000 308030 FFFFFF +InstallColors FF8080 000000 +InstProgressFlags smooth colored + +Function .onInit + MessageBox MB_YESNO|MB_ICONQUESTION "Install CDDB2 update test?" IDYES update + MessageBox MB_OK|MB_ICONINFORMATION "Install aborted." + Abort + update: +FunctionEnd + +Function .onVerifyInstDir + IfFileExists $INSTDIR\Winamp.exe Good + Abort + Good: +FunctionEnd + +Function CloseWinamp + Push $0 + loop: + FindWindow $0 "Winamp v1.x" + IntCmp $0 0 done + SendMessage $0 16 0 0 + StrCpy $9 "yes" + Sleep 100 + Goto loop + done: + Pop $0 +FunctionEnd + + +Section "ThisNameIsIgnoredSoWhyBother?" + StrCpy $9 "no" + Call CloseWinamp + SetOutPath $INSTDIR + File "C:\program files\winamp\winamp.exe" + SetOutPath $INSTDIR\Plugins + + UnRegDll $OUTDIR\cddbcontrolwinamp.dll + UnRegDll $OUTDIR\cddbuiwinamp.dll + File "C:\program files\winamp\plugins\in_cdda.dll" + File "C:\program files\winamp\plugins\in_mp3.dll" + File "cddbcontrolwinamp.dll" + File "cddbuiwinamp.dll" + RegDll $OUTDIR\cddbcontrolwinamp.dll + RegDll $OUTDIR\cddbuiwinamp.dll + + DetailPrint Completed. +SectionEnd + + +Function .onInstSuccess + MessageBox MB_OK|MB_ICONINFORMATION "Update installed." + StrCmp $9 "no" nope + Exec '"$INSTDIR\Winamp.exe"' + nope: +FunctionEnd + +; eof |