diff options
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/nsis/CMakeLists.txt | 3 | ||||
-rw-r--r-- | packaging/nsis/config.nsh.in | 2 | ||||
-rw-r--r-- | packaging/nsis/wireshark.nsi | 11 | ||||
-rw-r--r-- | packaging/wix/CMakeLists.txt | 3 | ||||
-rw-r--r-- | packaging/wix/ComponentGroups.wxi | 53 | ||||
-rw-r--r-- | packaging/wix/Features.wxi | 7 |
6 files changed, 26 insertions, 53 deletions
diff --git a/packaging/nsis/CMakeLists.txt b/packaging/nsis/CMakeLists.txt index 1a5a8aec9a..1439de94ff 100644 --- a/packaging/nsis/CMakeLists.txt +++ b/packaging/nsis/CMakeLists.txt @@ -35,7 +35,7 @@ set(PROGRAM_NAME ${CMAKE_PROJECT_NAME}) file(TO_NATIVE_PATH "${CMAKE_SOURCE_DIR}" TOP_SRC_DIR) # STAGING_DIR depends on the build configuration so we pass it # on the command line below. -file(TO_NATIVE_PATH "${CMAKE_BINARY_DIR}/docbook" USER_GUIDE_DIR) +file(TO_NATIVE_PATH "${CMAKE_BINARY_DIR}/docbook" DOCBOOK_DIR) if(WIRESHARK_TARGET_PLATFORM STREQUAL "win32") set(TARGET_MACHINE x86) elseif(WIRESHARK_TARGET_PLATFORM STREQUAL "win64") @@ -204,6 +204,7 @@ macro( ADD_NSIS_PACKAGE_TARGET ) ${NSIS_FILES} copy_data_files user_guide_chm + faq_html ${DATAFILE_DIR}/uninstall.exe ) set_target_properties(nsis_package_prep PROPERTIES FOLDER "Packaging") diff --git a/packaging/nsis/config.nsh.in b/packaging/nsis/config.nsh.in index b75be6d3b4..78ae18092e 100644 --- a/packaging/nsis/config.nsh.in +++ b/packaging/nsis/config.nsh.in @@ -23,7 +23,7 @@ #cmakedefine MMDBRESOLVE_EXE @MMDBRESOLVE_EXE@ -#cmakedefine USER_GUIDE_DIR "@USER_GUIDE_DIR@" +#cmakedefine DOCBOOK_DIR "@DOCBOOK_DIR@" #cmakedefine SMI_DIR "@SMI_DIR@" diff --git a/packaging/nsis/wireshark.nsi b/packaging/nsis/wireshark.nsi index 6cf9654dff..06625648af 100644 --- a/packaging/nsis/wireshark.nsi +++ b/packaging/nsis/wireshark.nsi @@ -1159,11 +1159,12 @@ SectionEnd SectionGroupEnd ; "Tools" -!ifdef USER_GUIDE_DIR -Section "User's Guide" SecUsersGuide +!ifdef DOCBOOK_DIR +Section "Documentation" SecDocumentation ;------------------------------------------- SetOutPath $INSTDIR -File "${USER_GUIDE_DIR}\user-guide.chm" +File "${DOCBOOK_DIR}\user-guide.chm" +File "${DOCBOOK_DIR}\faq.html" SectionEnd !endif @@ -1215,8 +1216,8 @@ SectionEnd !insertmacro MUI_DESCRIPTION_TEXT ${SecRandpkt} "Random packet generator." !insertmacro MUI_DESCRIPTION_TEXT ${SecMMDBResolve} "MaxMind Database resolution tool" -!ifdef USER_GUIDE_DIR - !insertmacro MUI_DESCRIPTION_TEXT ${SecUsersGuide} "Install an offline copy of the User's Guide." +!ifdef DOCBOOK_DIR + !insertmacro MUI_DESCRIPTION_TEXT ${SecDocumentation} "Install an offline copy of the User's Guide and FAQ." !endif !insertmacro MUI_FUNCTION_DESCRIPTION_END diff --git a/packaging/wix/CMakeLists.txt b/packaging/wix/CMakeLists.txt index abff036480..7011f0f7ef 100644 --- a/packaging/wix/CMakeLists.txt +++ b/packaging/wix/CMakeLists.txt @@ -58,7 +58,7 @@ set(PROGRAM_NAME ${CMAKE_PROJECT_NAME}) file(TO_NATIVE_PATH "${CMAKE_SOURCE_DIR}" TOP_SRC_DIR) # STAGING_DIR depends on the build configuration so we pass it # on the command line below. -file(TO_NATIVE_PATH "${CMAKE_BINARY_DIR}/docbook" USER_GUIDE_DIR) +file(TO_NATIVE_PATH "${CMAKE_BINARY_DIR}/docbook" DOCBOOK_DIR) if(WIRESHARK_TARGET_PLATFORM STREQUAL "win32") set(TARGET_MACHINE x86) elseif(WIRESHARK_TARGET_PLATFORM STREQUAL "win64") @@ -264,6 +264,7 @@ macro( ADD_WIX_PACKAGE_TARGET ) ${WIX_FILES} copy_data_files user_guide_chm + faq_html ) set_target_properties(wix_package_prep PROPERTIES FOLDER "Packaging") diff --git a/packaging/wix/ComponentGroups.wxi b/packaging/wix/ComponentGroups.wxi index ba4709fc59..03f4caf851 100644 --- a/packaging/wix/ComponentGroups.wxi +++ b/packaging/wix/ComponentGroups.wxi @@ -221,44 +221,6 @@ </ComponentGroup> </Fragment> - <!-- Help files --> - <Fragment> - <DirectoryRef Id="dirHelp"> - <Component Id="cmpHelp_toc" Guid="*"> - <File Id="filHelp_toc" KeyPath="yes" Source="$(var.Help.Dir)\toc" /> - </Component> - <Component Id="cmpHelp_overview_txt" Guid="*"> - <File Id="filHelp_overview_txt" KeyPath="yes" Source="$(var.Help.Dir)\overview.txt" /> - </Component> - <Component Id="cmpHelp_getting_started_txt" Guid="*"> - <File Id="filHelp_getting_started_txt" KeyPath="yes" Source="$(var.Help.Dir)\getting_started.txt" /> - </Component> - <Component Id="cmpHelp_capturing_txt" Guid="*"> - <File Id="filHelp_capturing_txt" KeyPath="yes" Source="$(var.Help.Dir)\capturing.txt" /> - </Component> - <Component Id="cmpHelp_capture_filters_txt" Guid="*"> - <File Id="filHelp_capture_filters_txt" KeyPath="yes" Source="$(var.Help.Dir)\capture_filters.txt" /> - </Component> - <Component Id="cmpHelp_display_filters_txt" Guid="*"> - <File Id="filHelp_display_filters_txt" KeyPath="yes" Source="$(var.Help.Dir)\display_filters.txt" /> - </Component> - <Component Id="cmpHelp_faq_txt" Guid="*"> - <File Id="filHelp_faq_txt" KeyPath="yes" Source="$(var.Help.Dir)\faq.txt" /> - </Component> - </DirectoryRef> - </Fragment> - <Fragment> - <ComponentGroup Id="CG.Help"> - <ComponentRef Id="cmpHelp_toc" /> - <ComponentRef Id="cmpHelp_overview_txt" /> - <ComponentRef Id="cmpHelp_getting_started_txt" /> - <ComponentRef Id="cmpHelp_capturing_txt" /> - <ComponentRef Id="cmpHelp_capture_filters_txt" /> - <ComponentRef Id="cmpHelp_display_filters_txt" /> - <ComponentRef Id="cmpHelp_faq_txt" /> - </ComponentGroup> - </Fragment> - <!-- TShark --> <Fragment> <DirectoryRef Id="INSTALLFOLDER"> @@ -569,18 +531,27 @@ </ComponentGroup> </Fragment> - <?ifdef USER_GUIDE_DIR?> + <?ifdef DOCBOOK_DIR?> <!-- User Guide --> <Fragment> <DirectoryRef Id="INSTALLFOLDER"> <Component Id="cmpUserGuide_chm" Guid="*"> - <File Id="filUserGuide_chm" KeyPath="yes" Source="$(var.USER_GUIDE_DIR)\user-guide.chm" /> + <File Id="filUserGuide_chm" KeyPath="yes" Source="$(var.DOCBOOK_DIR)\user-guide.chm" /> + </Component> + </DirectoryRef> + </Fragment> + <!-- FAQ --> + <Fragment> + <DirectoryRef Id="INSTALLFOLDER"> + <Component Id="cmpFAQ_html" Guid="*"> + <File Id="filFAQ_html" KeyPath="yes" Source="$(var.DOCBOOK_DIR)\faq.html" /> </Component> </DirectoryRef> </Fragment> <Fragment> - <ComponentGroup Id="CG.UserGuide"> + <ComponentGroup Id="CG.Documentation"> <ComponentRef Id="cmpUserGuide_chm" /> + <ComponentRef Id="cmpFAQ_html" /> </ComponentGroup> </Fragment> <?endif?> diff --git a/packaging/wix/Features.wxi b/packaging/wix/Features.wxi index 102de25704..8f441fda24 100644 --- a/packaging/wix/Features.wxi +++ b/packaging/wix/Features.wxi @@ -20,7 +20,6 @@ <ComponentGroupRef Id="CG.Dtds" /> <ComponentGroupRef Id="CG.Tpncp" /> <ComponentGroupRef Id="CG.Wimaxasncp" /> - <ComponentGroupRef Id="CG.Help" /> <ComponentGroupRef Id="CG.RequiredDependencies" /> </Feature> @@ -91,9 +90,9 @@ <ComponentGroupRef Id="CG.Tools.Udpdump" /> </Feature> </Feature> - <?ifdef USER_GUIDE_DIR?> - <Feature Id="Fe.UserGuide" Title="User's Guide" Level="1" AllowAdvertise="yes" Display="expand" Description="Install an offline copy of the User's Guide."> - <ComponentGroupRef Id="CG.UserGuide" /> + <?ifdef DOCBOOK_DIR?> + <Feature Id="Fe.Documentation" Title="Documentation" Level="1" AllowAdvertise="yes" Display="expand" Description="Install an offline copy of the User's Guide and FAQ."> + <ComponentGroupRef Id="CG.Documentation" /> </Feature> <?endif?> <Feature Id="VCRedist" Title="Visual C++ Runtime" AllowAdvertise="no" Display="hidden" Level="1"> |