aboutsummaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2006-07-04 18:40:51 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2006-07-04 18:40:51 +0000
commit48e552e45206ad19e86b358ca415f37dff04355f (patch)
tree1efd8ba9d6d80a69cf562a8bfbef4d7558f89cfb /packaging
parent7f4a874f384fb63eb484bc9565f6f3a4fe68025c (diff)
copy over the files from the Ethereal user profile directory, if the Wireshark dir currently doesn't exist
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18659 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packaging')
-rw-r--r--packaging/nsis/wireshark.nsi11
1 files changed, 11 insertions, 0 deletions
diff --git a/packaging/nsis/wireshark.nsi b/packaging/nsis/wireshark.nsi
index 6f8d282cac..1ae1183158 100644
--- a/packaging/nsis/wireshark.nsi
+++ b/packaging/nsis/wireshark.nsi
@@ -595,6 +595,16 @@ WriteRegDWORD HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Services\NPF" "Start"
!insertmacro SERVICE "stop" "NPF" ""
SecRequired_done_WinpcapService:
+; If no user profile exists for Wireshark but for Ethereal, copy it over
+SetShellVarContext current
+IfFileExists $APPDATA\Wireshark profile_done
+IfFileExists $APPDATA\Ethereal 0 profile_done
+;MessageBox MB_YESNO "This seems to be the first time you use Wireshark. Copy over the personal settings from Ethereal?" /SD IDYES IDNO profile_done
+CreateDirectory $APPDATA\Wireshark
+CopyFiles $APPDATA\Ethereal\*.* $APPDATA\Wireshark
+profile_done:
+SetShellVarContext all
+
SectionEnd ; "Required"
@@ -644,6 +654,7 @@ SetOutPath $INSTDIR\lib\gtk-2.0\${GTK2_LIB_DIR}\immodules
File "${GTK2_DIR}\lib\gtk-2.0\${GTK2_LIB_DIR}\immodules\im-*.dll"
SetOutPath $INSTDIR\lib\pango\${PANGO_LIB_DIR}\modules
File "${GTK2_DIR}\lib\pango\${PANGO_LIB_DIR}\modules\pango-*.dll"
+
SectionEnd
!ifdef GTK_WIMP_DIR