nsis: Fix indentation and alignment issues in gvim.nsi

related: #18440

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
RestorerZ
2025-09-29 19:46:23 +00:00
committed by Christian Brabandt
parent 05e44e978f
commit f9feda2d6d

View File

@ -1,6 +1,7 @@
# NSIS file to create a self-installing exe for Vim. # NSIS file to create a self-installing exe for Vim.
# It requires NSIS version 3.0 or later. # It requires NSIS version 3.0 or later.
# Last Change: 2025 Feb 24 # Last Change: 2025-08-30
#
Unicode true Unicode true
@ -102,7 +103,7 @@ ${StrRep}
IfFileExists `${_b}` `0` +3 IfFileExists `${_b}` `0` +3
;if path is not a directory, continue to confirm exists ;if path is not a directory, continue to confirm exists
IfFileExists `${_b}\*.*` +2 0 IfFileExists `${_b}\*.*` +2 0
StrCpy $_LOGICLIB_TEMP "1" ;file exists StrCpy $_LOGICLIB_TEMP "1" ;file exists
;now we have a definitive value - the file exists or it does not ;now we have a definitive value - the file exists or it does not
StrCmp $_LOGICLIB_TEMP "1" `${_t}` `${_f}` StrCmp $_LOGICLIB_TEMP "1" `${_t}` `${_f}`
!macroend !macroend
@ -146,9 +147,9 @@ RequestExecutionLevel highest
!endif !endif
!if ${WIN64} !if ${WIN64}
!define BIT 64 !define BIT 64
!else !else
!define BIT 32 !define BIT 32
!endif !endif
########################################################## ##########################################################
@ -253,8 +254,10 @@ VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "Vim"
VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "The Vim Project" VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "The Vim Project"
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalTrademarks" "Vim" VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalTrademarks" "Vim"
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "Copyright (C) 1996" VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "Copyright (C) 1996"
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "Vi Improved - A Text Editor" VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" \
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "${VER_MAJOR}.${VER_MINOR}.${PATCHLEVEL}.0" "Vi Improved - A Text Editor"
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" \
"${VER_MAJOR}.${VER_MINOR}.${PATCHLEVEL}.0"
VIProductVersion "${VER_MAJOR}.${VER_MINOR}.${PATCHLEVEL}.0" VIProductVersion "${VER_MAJOR}.${VER_MINOR}.${PATCHLEVEL}.0"
# Global variables # Global variables
@ -266,10 +269,9 @@ Var vim_compat_stat
Var vim_keymap_stat Var vim_keymap_stat
Var vim_mouse_stat Var vim_mouse_stat
!if ${HAVE_NLS} !if ${HAVE_NLS}
Var lng_usr Var lng_usr
!endif !endif
# Reserve files # Reserve files
ReserveFile ${VIMSRC}\installw32.exe ReserveFile ${VIMSRC}\installw32.exe
@ -435,9 +437,9 @@ Section "$(str_section_exe)" id_section_exe
SetOutPath $0 SetOutPath $0
File /oname=gvim.exe ${VIMSRC}\gvim_ole.exe File /oname=gvim.exe ${VIMSRC}\gvim_ole.exe
!if /FileExists "${VIMSRC}\vim${BIT}.dll" !if /FileExists "${VIMSRC}\vim${BIT}.dll"
File ${VIMSRC}\vim${BIT}.dll File ${VIMSRC}\vim${BIT}.dll
!endif !endif
File /oname=install.exe ${VIMSRC}\installw32.exe File /oname=install.exe ${VIMSRC}\installw32.exe
File /oname=uninstall.exe ${VIMSRC}\uninstallw32.exe File /oname=uninstall.exe ${VIMSRC}\uninstallw32.exe
File ${VIMSRC}\vimrun.exe File ${VIMSRC}\vimrun.exe
@ -449,18 +451,18 @@ Section "$(str_section_exe)" id_section_exe
File ..\uninstall.txt File ..\uninstall.txt
File ${VIMRT}\*.vim File ${VIMRT}\*.vim
!if /FileExists "${VIMTOOLS}\diff.exe" !if /FileExists "${VIMTOOLS}\diff.exe"
File ${VIMTOOLS}\diff.exe File ${VIMTOOLS}\diff.exe
!endif !endif
!if /FileExists "${VIMTOOLS}\winpty${BIT}.dll" !if /FileExists "${VIMTOOLS}\winpty${BIT}.dll"
File ${VIMTOOLS}\winpty${BIT}.dll File ${VIMTOOLS}\winpty${BIT}.dll
!endif !endif
!if /FileExists "${VIMTOOLS}\winpty-agent.exe" !if /FileExists "${VIMTOOLS}\winpty-agent.exe"
File ${VIMTOOLS}\winpty-agent.exe File ${VIMTOOLS}\winpty-agent.exe
!endif !endif
!if /FileExists "${VIMTOOLS}\libsodium.dll" !if /FileExists "${VIMTOOLS}\libsodium.dll"
File ${VIMTOOLS}\libsodium.dll File ${VIMTOOLS}\libsodium.dll
!endif !endif
SetOutPath $0\colors SetOutPath $0\colors
File /r ${VIMRT}\colors\*.* File /r ${VIMRT}\colors\*.*
@ -561,8 +563,7 @@ Section "$(str_section_edit_with)" id_section_editwith
!define LIBRARY_SHELL_EXTENSION !define LIBRARY_SHELL_EXTENSION
!define LIBRARY_X64 !define LIBRARY_X64
!insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
"${VIMSRC}\GvimExt\gvimext64.dll" \ "${VIMSRC}\GvimExt\gvimext64.dll" "$0\GvimExt64\gvimext.dll" "$0"
"$0\GvimExt64\gvimext.dll" "$0"
!undef LIBRARY_X64 !undef LIBRARY_X64
!undef LIBRARY_SHELL_EXTENSION !undef LIBRARY_SHELL_EXTENSION
${EndIf} ${EndIf}
@ -572,8 +573,7 @@ Section "$(str_section_edit_with)" id_section_editwith
ClearErrors ClearErrors
!define LIBRARY_SHELL_EXTENSION !define LIBRARY_SHELL_EXTENSION
!insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
"${VIMSRC}\GvimExt\gvimext.dll" \ "${VIMSRC}\GvimExt\gvimext.dll" "$0\GvimExt32\gvimext.dll" "$0"
"$0\GvimExt32\gvimext.dll" "$0"
!undef LIBRARY_SHELL_EXTENSION !undef LIBRARY_SHELL_EXTENSION
# We don't have a separate entry for the "Open With..." menu, assume # We don't have a separate entry for the "Open With..." menu, assume
@ -620,64 +620,59 @@ Section "$(str_section_vim_rc)" id_section_vimrc
${Else} ${Else}
StrCpy $1 "$1 -vimrc-behave unix" StrCpy $1 "$1 -vimrc-behave unix"
${EndIf} ${EndIf}
SectionEnd SectionEnd
########################################################## ##########################################################
SectionGroup $(str_group_plugin) id_group_plugin SectionGroup $(str_group_plugin) id_group_plugin
Section "$(str_section_plugin_home)" id_section_pluginhome Section "$(str_section_plugin_home)" id_section_pluginhome
SectionIn 1 3 SectionIn 1 3
# use ShellExecAsUser below instead # use ShellExecAsUser below instead
# StrCpy $1 "$1 -create-directories home" # StrCpy $1 "$1 -create-directories home"
SectionEnd SectionEnd
Section "$(str_section_plugin_vim)" id_section_pluginvim Section "$(str_section_plugin_vim)" id_section_pluginvim
SectionIn 3 SectionIn 3
StrCpy $1 "$1 -create-directories vim" StrCpy $1 "$1 -create-directories vim"
SectionEnd SectionEnd
SectionGroupEnd SectionGroupEnd
########################################################## ##########################################################
!if ${HAVE_NLS} !if ${HAVE_NLS}
Section "$(str_section_nls)" id_section_nls Section "$(str_section_nls)" id_section_nls
SectionIn 1 3 SectionIn 1 3
SetOutPath $INSTDIR SetOutPath $INSTDIR
!if /FileExists "..\lang\README.*.txt" !if /FileExists "..\lang\README.*.txt"
File ..\lang\README.*.txt File ..\lang\README.*.txt
CopyFiles /SILENT /FILESONLY $INSTDIR\README.$lng_usr.txt \ CopyFiles /SILENT /FILESONLY $INSTDIR\README.$lng_usr.txt \
$INSTDIR\vim${VER_MAJOR}${VER_MINOR}\README.$lng_usr.txt $INSTDIR\vim${VER_MAJOR}${VER_MINOR}\README.$lng_usr.txt
Delete $INSTDIR\README.*.txt Delete $INSTDIR\README.*.txt
!endif !endif
!if /FileExists "..\lang\LICENSE.??.txt" !if /FileExists "..\lang\LICENSE.??.txt"
File ..\lang\LICENSE.??.txt File ..\lang\LICENSE.??.txt
!if /FileExists "..\lang\LICENSE.??_??.txt" !if /FileExists "..\lang\LICENSE.??_??.txt"
File ..\lang\LICENSE.??_??.txt File ..\lang\LICENSE.??_??.txt
!endif !endif
CopyFiles /SILENT /FILESONLY $INSTDIR\LICENSE.$lng_usr.txt \ CopyFiles /SILENT /FILESONLY $INSTDIR\LICENSE.$lng_usr.txt \
$INSTDIR\vim${VER_MAJOR}${VER_MINOR}\LICENSE.$lng_usr.txt $INSTDIR\vim${VER_MAJOR}${VER_MINOR}\LICENSE.$lng_usr.txt
Delete $INSTDIR\LICENSE.*.txt Delete $INSTDIR\LICENSE.*.txt
!endif !endif
SetOutPath $0\lang SetOutPath $0\lang
File /r /x Makefile ${VIMRT}\lang\*.* File /r /x Makefile ${VIMRT}\lang\*.*
SetOutPath $0 SetOutPath $0
!insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
"${GETTEXT}\gettext${BIT}\libintl-8.dll" \ "${GETTEXT}\gettext${BIT}\libintl-8.dll" "$0\libintl-8.dll" "$0"
"$0\libintl-8.dll" "$0"
!insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
"${GETTEXT}\gettext${BIT}\libiconv-2.dll" \ "${GETTEXT}\gettext${BIT}\libiconv-2.dll" "$0\libiconv-2.dll" "$0"
"$0\libiconv-2.dll" "$0" !if ${INCLUDE_LIBGCC}
!if ${INCLUDE_LIBGCC} !if /FileExists "${GETTEXT}\gettext${BIT}\libgcc_s_sjlj-1.dll"
!if /FileExists "${GETTEXT}\gettext${BIT}\libgcc_s_sjlj-1.dll"
# Install libgcc_s_sjlj-1.dll only if it is needed. # Install libgcc_s_sjlj-1.dll only if it is needed.
!insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
"${GETTEXT}\gettext${BIT}\libgcc_s_sjlj-1.dll" \ "${GETTEXT}\gettext${BIT}\libgcc_s_sjlj-1.dll" \
"$0\libgcc_s_sjlj-1.dll" "$0" "$0\libgcc_s_sjlj-1.dll" "$0"
!endif !endif
!endif !endif
${If} ${SectionIsSelected} ${id_section_editwith} ${If} ${SectionIsSelected} ${id_section_editwith}
${If} ${RunningX64} ${If} ${RunningX64}
@ -703,16 +698,16 @@ Section "$(str_section_nls)" id_section_nls
!insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
"${GETTEXT}\gettext32\libiconv-2.dll" \ "${GETTEXT}\gettext32\libiconv-2.dll" \
"$0\GvimExt32\libiconv-2.dll" "$0\GvimExt32" "$0\GvimExt32\libiconv-2.dll" "$0\GvimExt32"
!if ${INCLUDE_LIBGCC} !if ${INCLUDE_LIBGCC}
!if /FileExists "${GETTEXT}\gettext32\libgcc_s_sjlj-1.dll" !if /FileExists "${GETTEXT}\gettext32\libgcc_s_sjlj-1.dll"
# Install libgcc_s_sjlj-1.dll only if it is needed. # Install libgcc_s_sjlj-1.dll only if it is needed.
!insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
"${GETTEXT}\gettext32\libgcc_s_sjlj-1.dll" \ "${GETTEXT}\gettext32\libgcc_s_sjlj-1.dll" \
"$0\GvimExt32\libgcc_s_sjlj-1.dll" "$0\GvimExt32" "$0\GvimExt32\libgcc_s_sjlj-1.dll" "$0\GvimExt32"
!endif !endif
!endif !endif
${EndIf} ${EndIf}
SectionEnd SectionEnd
!endif !endif
########################################################## ##########################################################
@ -726,7 +721,9 @@ Section -call_install_exe
ReadEnvStr $3 "COMSPEC" ReadEnvStr $3 "COMSPEC"
Call GetHomeDir Call GetHomeDir
Pop $4 Pop $4
ShellExecAsUser::ShellExecAsUser "" "$3" '/c "cd /d "$4" & mkdir vimfiles & cd vimfiles & mkdir colors compiler doc ftdetect ftplugin indent keymap plugin syntax"' SW_HIDE ShellExecAsUser::ShellExecAsUser "" "$3" '/c "cd /d "$4" & mkdir vimfiles \
& cd vimfiles & mkdir colors compiler doc ftdetect ftplugin indent \
keymap plugin syntax"' SW_HIDE
${EndIf} ${EndIf}
SectionEnd SectionEnd
@ -740,7 +737,6 @@ SectionEnd
!macroend !macroend
Section -post Section -post
# Get estimated install size # Get estimated install size
SectionGetSize ${id_section_exe} $3 SectionGetSize ${id_section_exe} $3
${If} ${SectionIsSelected} ${id_section_console} ${If} ${SectionIsSelected} ${id_section_console}
@ -751,12 +747,12 @@ Section -post
SectionGetSize ${id_section_editwith} $4 SectionGetSize ${id_section_editwith} $4
IntOp $3 $3 + $4 IntOp $3 $3 + $4
${EndIf} ${EndIf}
!if ${HAVE_NLS} !if ${HAVE_NLS}
${If} ${SectionIsSelected} ${id_section_nls} ${If} ${SectionIsSelected} ${id_section_nls}
SectionGetSize ${id_section_nls} $4 SectionGetSize ${id_section_nls} $4
IntOp $3 $3 + $4 IntOp $3 $3 + $4
${EndIf} ${EndIf}
!endif !endif
# Register EstimatedSize and AllowSilent. # Register EstimatedSize and AllowSilent.
# Other information will be set by the install.exe (dosinst.c). # Other information will be set by the install.exe (dosinst.c).
@ -779,11 +775,12 @@ Section -post
!insertmacro SaveSectionSelection ${id_section_startmenu} "select_startmenu" !insertmacro SaveSectionSelection ${id_section_startmenu} "select_startmenu"
!insertmacro SaveSectionSelection ${id_section_editwith} "select_editwith" !insertmacro SaveSectionSelection ${id_section_editwith} "select_editwith"
!insertmacro SaveSectionSelection ${id_section_vimrc} "select_vimrc" !insertmacro SaveSectionSelection ${id_section_vimrc} "select_vimrc"
!insertmacro SaveSectionSelection ${id_section_pluginhome} "select_pluginhome" !insertmacro SaveSectionSelection ${id_section_pluginhome} \
"select_pluginhome"
!insertmacro SaveSectionSelection ${id_section_pluginvim} "select_pluginvim" !insertmacro SaveSectionSelection ${id_section_pluginvim} "select_pluginvim"
!if ${HAVE_NLS} !if ${HAVE_NLS}
!insertmacro SaveSectionSelection ${id_section_nls} "select_nls" !insertmacro SaveSectionSelection ${id_section_nls} "select_nls"
!endif !endif
${If} ${RunningX64} ${If} ${RunningX64}
SetRegView lastused SetRegView lastused
${EndIf} ${EndIf}
@ -814,14 +811,15 @@ SectionEnd
!macroend !macroend
Function .onInit Function .onInit
!if ${HAVE_MULTI_LANG} !if ${HAVE_MULTI_LANG}
# Select a language (or read from the registry). # Select a language (or read from the registry).
!insertmacro MUI_LANGDLL_DISPLAY !insertmacro MUI_LANGDLL_DISPLAY
!endif !endif
!if ${HAVE_NLS} !if ${HAVE_NLS}
ClearErrors ClearErrors
System::Call 'kernel32::GetUserDefaultLocaleName(t.r19, *i${NSIS_MAX_STRLEN})' System::Call \
'kernel32::GetUserDefaultLocaleName(t.r19, *i${NSIS_MAX_STRLEN})'
StrCmp $R9 "zh-cn" coincide 0 StrCmp $R9 "zh-cn" coincide 0
StrCmp $R9 "zh-tw" coincide 0 StrCmp $R9 "zh-tw" coincide 0
StrCmp $R9 "pt-br" 0 part StrCmp $R9 "pt-br" 0 part
@ -832,7 +830,7 @@ Function .onInit
part: part:
StrCpy $lng_usr $R9 2 StrCpy $lng_usr $R9 2
done: done:
!endif !endif
${If} $INSTDIR == ${DEFAULT_INSTDIR} ${If} $INSTDIR == ${DEFAULT_INSTDIR}
# Check $VIM # Check $VIM
@ -865,11 +863,12 @@ Function .onInit
!insertmacro LoadSectionSelection ${id_section_startmenu} "select_startmenu" !insertmacro LoadSectionSelection ${id_section_startmenu} "select_startmenu"
!insertmacro LoadSectionSelection ${id_section_editwith} "select_editwith" !insertmacro LoadSectionSelection ${id_section_editwith} "select_editwith"
!insertmacro LoadSectionSelection ${id_section_vimrc} "select_vimrc" !insertmacro LoadSectionSelection ${id_section_vimrc} "select_vimrc"
!insertmacro LoadSectionSelection ${id_section_pluginhome} "select_pluginhome" !insertmacro LoadSectionSelection ${id_section_pluginhome} \
"select_pluginhome"
!insertmacro LoadSectionSelection ${id_section_pluginvim} "select_pluginvim" !insertmacro LoadSectionSelection ${id_section_pluginvim} "select_pluginvim"
!if ${HAVE_NLS} !if ${HAVE_NLS}
!insertmacro LoadSectionSelection ${id_section_nls} "select_nls" !insertmacro LoadSectionSelection ${id_section_nls} "select_nls"
!endif !endif
# Load the default _vimrc settings from the registry (if any). # Load the default _vimrc settings from the registry (if any).
!insertmacro LoadDefaultVimrc $vim_compat_stat "vim_compat" "all" !insertmacro LoadDefaultVimrc $vim_compat_stat "vim_compat" "all"
!insertmacro LoadDefaultVimrc $vim_keymap_stat "vim_keyremap" "default" !insertmacro LoadDefaultVimrc $vim_keymap_stat "vim_keyremap" "default"
@ -923,7 +922,6 @@ Function SetCustom
GetFunctionAddress $3 ValidateCustom GetFunctionAddress $3 ValidateCustom
nsDialogs::OnBack $3 nsDialogs::OnBack $3
# 1st group - Compatibility # 1st group - Compatibility
${NSD_CreateGroupBox} 0u 0u 296u 44u $(str_msg_compat_title) ${NSD_CreateGroupBox} 0u 0u 296u 44u $(str_msg_compat_title)
Pop $3 Pop $3
@ -948,7 +946,6 @@ Function SetCustom
${EndIf} ${EndIf}
${NSD_CB_SetSelectionIndex} $vim_nsd_compat $4 ${NSD_CB_SetSelectionIndex} $vim_nsd_compat $4
# 2nd group - Key remapping # 2nd group - Key remapping
${NSD_CreateGroupBox} 0u 48u 296u 44u $(str_msg_keymap_title) ${NSD_CreateGroupBox} 0u 48u 296u 44u $(str_msg_keymap_title)
Pop $3 Pop $3
@ -967,7 +964,6 @@ Function SetCustom
${EndIf} ${EndIf}
${NSD_CB_SetSelectionIndex} $vim_nsd_keymap $4 ${NSD_CB_SetSelectionIndex} $vim_nsd_keymap $4
# 3rd group - Mouse behavior # 3rd group - Mouse behavior
${NSD_CreateGroupBox} 0u 95u 296u 44u $(str_msg_mouse_title) ${NSD_CreateGroupBox} 0u 95u 296u 44u $(str_msg_mouse_title)
Pop $3 Pop $3
@ -1035,15 +1031,19 @@ FunctionEnd
!insertmacro MUI_DESCRIPTION_TEXT ${id_section_batch} $(str_desc_batch) !insertmacro MUI_DESCRIPTION_TEXT ${id_section_batch} $(str_desc_batch)
!insertmacro MUI_DESCRIPTION_TEXT ${id_group_icons} $(str_desc_icons) !insertmacro MUI_DESCRIPTION_TEXT ${id_group_icons} $(str_desc_icons)
!insertmacro MUI_DESCRIPTION_TEXT ${id_section_desktop} $(str_desc_desktop) !insertmacro MUI_DESCRIPTION_TEXT ${id_section_desktop} $(str_desc_desktop)
!insertmacro MUI_DESCRIPTION_TEXT ${id_section_startmenu} $(str_desc_start_menu) !insertmacro MUI_DESCRIPTION_TEXT ${id_section_startmenu} \
!insertmacro MUI_DESCRIPTION_TEXT ${id_section_editwith} $(str_desc_edit_with) $(str_desc_start_menu)
!insertmacro MUI_DESCRIPTION_TEXT ${id_section_editwith} \
$(str_desc_edit_with)
!insertmacro MUI_DESCRIPTION_TEXT ${id_section_vimrc} $(str_desc_vim_rc) !insertmacro MUI_DESCRIPTION_TEXT ${id_section_vimrc} $(str_desc_vim_rc)
!insertmacro MUI_DESCRIPTION_TEXT ${id_group_plugin} $(str_desc_plugin) !insertmacro MUI_DESCRIPTION_TEXT ${id_group_plugin} $(str_desc_plugin)
!insertmacro MUI_DESCRIPTION_TEXT ${id_section_pluginhome} $(str_desc_plugin_home) !insertmacro MUI_DESCRIPTION_TEXT ${id_section_pluginhome} \
!insertmacro MUI_DESCRIPTION_TEXT ${id_section_pluginvim} $(str_desc_plugin_vim) $(str_desc_plugin_home)
!if ${HAVE_NLS} !insertmacro MUI_DESCRIPTION_TEXT ${id_section_pluginvim} \
$(str_desc_plugin_vim)
!if ${HAVE_NLS}
!insertmacro MUI_DESCRIPTION_TEXT ${id_section_nls} $(str_desc_nls) !insertmacro MUI_DESCRIPTION_TEXT ${id_section_nls} $(str_desc_nls)
!endif !endif
!insertmacro MUI_FUNCTION_DESCRIPTION_END !insertmacro MUI_FUNCTION_DESCRIPTION_END
@ -1051,10 +1051,10 @@ FunctionEnd
# Uninstaller Functions and Sections # Uninstaller Functions and Sections
Function un.onInit Function un.onInit
!if ${HAVE_MULTI_LANG} !if ${HAVE_MULTI_LANG}
# Get the language from the registry. # Get the language from the registry.
!insertmacro MUI_UNGETLANGUAGE !insertmacro MUI_UNGETLANGUAGE
!endif !endif
FunctionEnd FunctionEnd
Section "un.$(str_unsection_register)" id_unsection_register Section "un.$(str_unsection_register)" id_unsection_register
@ -1077,7 +1077,6 @@ Section "un.$(str_unsection_register)" id_unsection_register
SectionEnd SectionEnd
Section "un.$(str_unsection_exe)" id_unsection_exe Section "un.$(str_unsection_exe)" id_unsection_exe
StrCpy $0 "$INSTDIR" StrCpy $0 "$INSTDIR"
# Delete gettext and iconv DLLs # Delete gettext and iconv DLLs
@ -1218,7 +1217,7 @@ SectionGroup "un.$(str_ungroup_plugin)" id_ungroup_plugin
SectionGroupEnd SectionGroupEnd
Section "un.$(str_unsection_rootdir)" id_unsection_rootdir Section "un.$(str_unsection_rootdir)" id_unsection_rootdir
# get the parent dir of the installation # get the parent dir of the installation
Push $INSTDIR Push $INSTDIR
Call un.GetParent Call un.GetParent
Pop $0 Pop $0
@ -1233,10 +1232,16 @@ SectionEnd
# Description for Uninstaller Sections # Description for Uninstaller Sections
!insertmacro MUI_UNFUNCTION_DESCRIPTION_BEGIN !insertmacro MUI_UNFUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${id_unsection_register} $(str_desc_unregister) !insertmacro MUI_DESCRIPTION_TEXT ${id_unsection_register} \
$(str_desc_unregister)
!insertmacro MUI_DESCRIPTION_TEXT ${id_unsection_exe} $(str_desc_rm_exe) !insertmacro MUI_DESCRIPTION_TEXT ${id_unsection_exe} $(str_desc_rm_exe)
!insertmacro MUI_DESCRIPTION_TEXT ${id_ungroup_plugin} $(str_desc_rm_plugin) !insertmacro MUI_DESCRIPTION_TEXT ${id_ungroup_plugin} $(str_desc_rm_plugin)
!insertmacro MUI_DESCRIPTION_TEXT ${id_unsection_plugin_home} $(str_desc_rm_plugin_home) !insertmacro MUI_DESCRIPTION_TEXT ${id_unsection_plugin_home} \
!insertmacro MUI_DESCRIPTION_TEXT ${id_unsection_plugin_vim} $(str_desc_rm_plugin_vim) $(str_desc_rm_plugin_home)
!insertmacro MUI_DESCRIPTION_TEXT ${id_unsection_rootdir} $(str_desc_rm_rootdir) !insertmacro MUI_DESCRIPTION_TEXT ${id_unsection_plugin_vim} \
$(str_desc_rm_plugin_vim)
!insertmacro MUI_DESCRIPTION_TEXT ${id_unsection_rootdir} \
$(str_desc_rm_rootdir)
!insertmacro MUI_UNFUNCTION_DESCRIPTION_END !insertmacro MUI_UNFUNCTION_DESCRIPTION_END
# vi:set ts=8 sw=2 sts=2 tw=79 wm=0 ft=nsis: