Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/windirstat.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorassarbad <none@none>2005-12-11 07:08:42 +0300
committerassarbad <none@none>2005-12-11 07:08:42 +0300
commit86068581b133bbfcac026543463003c6aaf85d79 (patch)
tree6e3d8becb9dc11dcee2bf76cfda82553c4a19cb3 /setup
parent8e85c40740ccaa6355eeadb460dd1863263a1324 (diff)
Little fix to let the installer set the GUI language of WDS before the first start!
Diffstat (limited to 'setup')
-rw-r--r--setup/GatherFilesAndCreateSetup.cmd3
-rw-r--r--setup/WDS.nsi4
2 files changed, 6 insertions, 1 deletions
diff --git a/setup/GatherFilesAndCreateSetup.cmd b/setup/GatherFilesAndCreateSetup.cmd
index 2e8d8a6..2a43ba9 100644
--- a/setup/GatherFilesAndCreateSetup.cmd
+++ b/setup/GatherFilesAndCreateSetup.cmd
@@ -232,6 +232,9 @@ if EXIST "%install%\wdsr%langno%.dll" (
echo SectionIn 1 2 >> %langfile%
rem echo SetOutPath ^$INSTDIR >> %langfile%
echo File %install%\wdsr%langno%.dll >> %langfile%
+ echo ${SectionFlagIsSet} ${%lang%} ${SF_BOLD} 0 SkipRegSet%langno% >> %langfile%
+ echo WriteRegDWORD HKCU "${APPKEY}\options" "language" "0x%langno%" >> %langfile%
+ echo SkipRegSet%langno%: >> %langfile%
if EXIST "%install%\wdsh%langno%.chm" (
echo File %install%\wdsh%langno%.chm >> %langfile%
echo CreateShortCut "$SMPROGRAMS\WinDirStat\Help (${LangEngName%langno%} - ${LangNatName%langno%}).lnk" "$INSTDIR\wdsh%langno%.chm" >> %langfile%
diff --git a/setup/WDS.nsi b/setup/WDS.nsi
index c458b4f..793666b 100644
--- a/setup/WDS.nsi
+++ b/setup/WDS.nsi
@@ -27,7 +27,8 @@
; Default installation folder
InstallDir "$PROGRAMFILES\WinDirStat"
; Get installation folder from registry if available
- InstallDirRegKey HKCU "Software\Seifert\WinDirStat" "InstDir"
+ !define APPKEY "Software\Seifert\WinDirStat"
+ InstallDirRegKey HKCU "${APPKEY}" "InstDir"
;--------------------------------
; Global variables
@@ -370,6 +371,7 @@ Function un.CreateUninstallEntry
; Delete the uninstaller
Delete "$INSTDIR\Uninstall.exe"
DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\WinDirStat"
+ DeleteRegKey HKCU "${APPKEY}"
FunctionEnd
; -----------------------------------------------------------------------------
!endif ; WDSMAIN_NSI