mirror of
https://github.com/ars3niy/tdlib-purple
synced 2025-08-22 09:57:52 +00:00
Reformatted nsis script
This commit is contained in:
parent
2408ce615d
commit
da88896645
@ -53,44 +53,44 @@ Section "MainSection" SEC01
|
|||||||
|
|
||||||
SetOverwrite try
|
SetOverwrite try
|
||||||
|
|
||||||
SetOutPath "$PidginDir\pixmaps\pidgin"
|
SetOutPath "$PidginDir\pixmaps\pidgin"
|
||||||
File "/oname=protocols\16\telegram.png" "data\telegram16.png"
|
File "/oname=protocols\16\telegram.png" "data\telegram16.png"
|
||||||
File "/oname=protocols\22\telegram.png" "data\telegram22.png"
|
File "/oname=protocols\22\telegram.png" "data\telegram22.png"
|
||||||
File "/oname=protocols\48\telegram.png" "data\telegram48.png"
|
File "/oname=protocols\48\telegram.png" "data\telegram48.png"
|
||||||
|
|
||||||
SetOverwrite try
|
SetOverwrite try
|
||||||
copy:
|
copy:
|
||||||
ClearErrors
|
ClearErrors
|
||||||
Delete "$PidginDir\plugins\${PRPL_INSTALL_TARGET}"
|
Delete "$PidginDir\plugins\${PRPL_INSTALL_TARGET}"
|
||||||
IfErrors dllbusy
|
IfErrors dllbusy
|
||||||
SetOutPath "$PidginDir\plugins"
|
SetOutPath "$PidginDir\plugins"
|
||||||
File "/oname=${PRPL_INSTALL_TARGET}" "${BUILD_DIR}\${PRPL_LIBRARY}"
|
File "/oname=${PRPL_INSTALL_TARGET}" "${BUILD_DIR}\${PRPL_LIBRARY}"
|
||||||
Goto after_copy
|
Goto after_copy
|
||||||
dllbusy:
|
dllbusy:
|
||||||
MessageBox MB_RETRYCANCEL "${PRPL_INSTALL_TARGET} is busy. Please close Pidgin (including tray icon) and try again" IDCANCEL cancel
|
MessageBox MB_RETRYCANCEL "${PRPL_INSTALL_TARGET} is busy. Please close Pidgin (including tray icon) and try again" IDCANCEL cancel
|
||||||
Goto copy
|
Goto copy
|
||||||
cancel:
|
cancel:
|
||||||
Abort "Installation of ${PRODUCT_NAME} aborted"
|
Abort "Installation of ${PRODUCT_NAME} aborted"
|
||||||
after_copy:
|
after_copy:
|
||||||
|
|
||||||
SetOutPath "$PidginDir\locale"
|
SetOutPath "$PidginDir\locale"
|
||||||
!include "${BUILD_DIR}\lang.nsi"
|
!include "${BUILD_DIR}\lang.nsi"
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Function GetPidginInstPath
|
Function GetPidginInstPath
|
||||||
Push $0
|
Push $0
|
||||||
ReadRegStr $0 HKLM "Software\pidgin" ""
|
ReadRegStr $0 HKLM "Software\pidgin" ""
|
||||||
IfFileExists "$0\pidgin.exe" cont
|
IfFileExists "$0\pidgin.exe" cont
|
||||||
ReadRegStr $0 HKCU "Software\pidgin" ""
|
ReadRegStr $0 HKCU "Software\pidgin" ""
|
||||||
IfFileExists "$0\pidgin.exe" cont
|
IfFileExists "$0\pidgin.exe" cont
|
||||||
MessageBox MB_OK|MB_ICONINFORMATION "Failed to find Pidgin installation."
|
MessageBox MB_OK|MB_ICONINFORMATION "Failed to find Pidgin installation."
|
||||||
Abort "Failed to find Pidgin installation. Please install Pidgin first."
|
Abort "Failed to find Pidgin installation. Please install Pidgin first."
|
||||||
cont:
|
cont:
|
||||||
StrCpy $PidginDir $0
|
StrCpy $PidginDir $0
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
Function RunPidgin
|
Function RunPidgin
|
||||||
ExecShell "" "$PidginDir\pidgin.exe"
|
ExecShell "" "$PidginDir\pidgin.exe"
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user