shithub: aacdec

ref: 5832cdbbeeda87d0f62d82c584bb374bdc298d89
dir: /cnv_FAAD.nsi/

View raw version
Name "FAAD Winamp3 AAC plugin"
OutFile cnv_FAAD.exe
CRCCheck on
LicenseText "You must read the following license before installing."
LicenseData COPYING
ComponentText "This will install the FAAD2 Winamp3 AAC plugin on your computer."
InstType Normal
AutoCloseWindow true
SetOverwrite on
SetDateSave on

InstallDir $PROGRAMFILES\Winamp3
InstallDirRegKey HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Winamp3" "UninstallString"
DirShow show
DirText "The installer has detected the path to Winamp. If it is not correct, please change."

Section "FAAD2 Winamp3 AAC plugin"
SectionIn 1
IfFileExists $INSTDIR\Wacs\cnv_aacpcm.wac idelete 
Goto iskip_delete
   idelete:
      Delete $INSTDIR\Wacs\cnv_aacpcm.wac
      IfFileExists $INSTDIR\Wacs\cnv_aacpcm.wac idelete_error
      Goto iskip_delete
	 idelete_error:
	    MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION "The file is locked and can't be deleted. Please close Winamp3 and hit 'retry'" IDRETRY idelete IDCANCEL close
iskip_delete:
SetOutPath $INSTDIR\Wacs
File plugins\winamp3\Release\cnv_FAAD.wac
SetOutPath $INSTDIR\Wacs\xml\FAAD
File plugins\winamp3\FAAD_config.xml
close:
SectionEnd