Hi all boss 😁 !
I've a little question but i don't found solution.
For install : I use !insertmacro XPUI_LANGPAGE_DISPLAY to choose installation language. (not problem here 🙂 )
is it possible to save the language to use during the installation in order to use it during the uninstallation without language selection ?
thx all 😁
Uninstall with same language Install
4 posts
You must have missed the !defines XPUI_LANGDLL_REGISTRY_ROOT, XPUI_LANGDLL_REGISTRY_KEY, XPUI_LANGDLL_REGISTRY_VALUENAME and !insertmacro XPUI_UNGETLANGUAGE. These are in Modern UI, which is what XPUI is based upon so I assume they exist in XPUI as well.
Stu
Stu
humm ... i do this
(sorry fo my english ... 🙁 )
PS : can i change nsisdir ? example : (C:\DEV\V1.5\Install\nsis\)
!define PRODUCT_NAME "toto"
!define PRODUCT_VERSION "2.0"
!define PRODUCT_PUBLISHER "tot S.A"
!define PRODUCT_WEB_SITE "http://www.toto.com"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\toto.exe"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
;Remember the installer language
!define MUI_LANGDLL_REGISTRY_ROOT "HKCU"
!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_DIR_REGKEY}"
!define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"
.........
.........
!insertmacro XPUI_PAGE_FINISH
!insertmacro XPUI_PAGE_ABORT
;-----------------------------------------
!insertmacro XPUI_LANGUAGE "French"
!insertmacro XPUI_LANGUAGE "English"
;-----------------------------------------
!insertmacro XPUI_RESERVEFILE_INSTALLOPTIONS
!insertmacro MUI_RESERVEFILE_LANGDLL
......
......
Function .onInit
#Splash screen
InitPluginsDir
SetOutPath "$PLUGINSDIR"
File ${IMG_NAME}
newadvsplash::show /NOUNLOAD 2000 500 500 0x0666666 /BANNER "$PLUGINSDIR\${IMG_NAME}"
Sleep 2500
#Display language selection page
!insertmacro XPUI_LANGPAGE_DISPLAY
FunctionEnd
#on uninstall launch
Function un.onInit
!insertmacro XPUI_UNGETLANGUAGE
...
... When call uninstall.exe, i've always selected language box... how to have without language selection ? (sorry fo my english ... 🙁 )
PS : can i change nsisdir ? example : (C:\DEV\V1.5\Install\nsis\)
If you want your installer and uninstaller to remember the selected language, you should add these info in registry and remove them when uninstalling.