Skip to content

Commit

Permalink
Doc nsis windows
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Sep 29, 2023
1 parent eee63ab commit 8629393
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 33 deletions.
33 changes: 7 additions & 26 deletions src/distrib/win32/NSIS.template.in
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "${PRODUCT_NAME} ${PRODUCT_A
VIAddVersionKey /LANG=${LANG_ENGLISH} "Comments" ""
VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "${PRODUCT_PUBLISHER}"
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalTrademarks" "Antares_Simulator is a trademark of RTE"
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" " ${PRODUCT_PUBLISHER}"
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "© ${PRODUCT_PUBLISHER}"
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "${PRODUCT_NAME}"
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "${PRODUCT_VERSION}"
VIProductVersion "${CMAKE_VERSION}.0"
Expand Down Expand Up @@ -213,7 +213,7 @@ InstType "$(LngInstallLite)"


LangString LngWelcome ${LANG_ENGLISH} "Welcome to the Antares_Simulator ${PRODUCT_VERSION} Setup Wizard"
;LangString LngWelcome ${LANG_FRENCH} "Bienvenue l'assistant d'installation d'Antares ${PRODUCT_VERSION}"
;LangString LngWelcome ${LANG_FRENCH} "Bienvenue dans l'assistant d'installation d'Antares ${PRODUCT_VERSION}"

LangString LngWelcomeT ${LANG_ENGLISH} "This wizard will guide you through the installation of Antares_Simulator ${PRODUCT_VERSION}.$\r$\n$\r$\n$_CLICK"
;LangString LngWelcomeT ${LANG_FRENCH} "Cet assistant va vous guider au court de l'installation d'Antares ${PRODUCT_VERSION}.$\r$\n$\r$\n$_CLICK"
Expand Down Expand Up @@ -252,16 +252,16 @@ LangString LngDesktopLink ${LANG_ENGLISH} "Desktop Shortcut"
;LangString LngDesktopLink ${LANG_FRENCH} "Raccourci sur le bureau"

LangString LngResInstallDesktopLink ${LANG_ENGLISH} "Creating a Desktop Shortcut..."
;LangString LngResInstallDesktopLink ${LANG_FRENCH} "Cr�ation d'un Raccourci sur le bureau..."
;LangString LngResInstallDesktopLink ${LANG_FRENCH} "Création d'un Raccourci sur le bureau..."

LangString LngResInstallMenuLink ${LANG_ENGLISH} "Creating a Menu Shortcut..."
;LangString LngResInstallMenuLink ${LANG_FRENCH} "Cr�ation d'un Raccourci dans le menu..."
;LangString LngResInstallMenuLink ${LANG_FRENCH} "Création d'un Raccourci dans le menu..."




LangString LngInstallFull ${LANG_ENGLISH} "Full (Recommended)"
;LangString LngInstallFull ${LANG_FRENCH} "Complet (Recommand�)"
;LangString LngInstallFull ${LANG_FRENCH} "Complet (Recommandé)"

LangString LngInstallLite ${LANG_ENGLISH} "Lite"
;LangString LngInstallLite ${LANG_FRENCH} "Minimum"
Expand Down Expand Up @@ -333,12 +333,10 @@ ${MementoSection} "$(LngCoreFiles)" SecCore
${File} "${ANTARES_BUILD_DIR}\ui\simulator\resources\images\misc" "*.png"
${File} "${ANTARES_BUILD_DIR}\ui\simulator\resources\images\misc" "*.gif"
${SetOutPath} "$INSTDIR\Resources\Help"
${File} "${ANTARES_BUILD_DIR}\ui\simulator\resources\help\" "antares-general-reference-guide.pdf"
${File} "${ANTARES_BUILD_DIR}\ui\simulator\resources\help\" "system-map-editor-reference-guide.pdf"
${File} "${ANTARES_BUILD_DIR}\ui\simulator\resources\help\" "antares-examples-library.pdf"
${FileOptionnal} "${ANTARES_BUILD_DIR}\ui\simulator\resources\help\" "system-map-editor-reference-guide.pdf"
${FileOptionnal} "${ANTARES_BUILD_DIR}\ui\simulator\resources\help\" "antares-examples-library.pdf"

${SetOutPath} "$INSTDIR\Documentation"
CreateShortCut "$INSTDIR\Documentation\General reference guide (PDF).lnk" "$INSTDIR\Resources\Help\antares-general-reference-guide.pdf" "" ""
CreateShortCut "$INSTDIR\Documentation\System Map Editor reference guide (PDF).lnk" "$INSTDIR\Resources\Help\system-map-editor-reference-guide.pdf" "" ""
CreateShortCut "$INSTDIR\\Documentation\Examples library (PDF).lnk" "$INSTDIR\Resources\Help\antares-examples-library.pdf" "" ""

Expand All @@ -350,18 +348,6 @@ ${Mementosectionend}



${MementoSection} "$(LngResExamples)" SecExamples
SetShellVarContext all
SetDetailsPrint textonly
DetailPrint "$(LngResInstallExamples)"
SetDetailsPrint listonly

SectionIn 1

SetOverwrite on
!include "@PROJECT_SOURCE_DIR@\distrib\win32\examplesfiles.inc.nsh"
${Mementosectionend}

${MementoSection} "$(LngResSources)" SecSources
SetShellVarContext all
SetDetailsPrint textonly
Expand Down Expand Up @@ -397,7 +383,6 @@ ${MementoSection} "Menu Shortcuts" SecMenuShortcuts
CreateDirectory "$SMPROGRAMS\RTE Antares ${PRODUCT_VERSION}\Documentation"
${SetOutPath} "$INSTDIR\"
CreateShortCut "$SMPROGRAMS\RTE Antares ${PRODUCT_VERSION}\Antares Simulator ${PRODUCT_VERSION}.lnk" "$INSTDIR\bin\${ANTARES_BIN}" "" "$INSTDIR\Resources\Icons\study.ico"
CreateShortCut "$SMPROGRAMS\RTE Antares ${PRODUCT_VERSION}\Documentation\General reference guide (PDF).lnk" "$INSTDIR\Resources\Help\antares-general-reference-guide.pdf" "" ""
CreateShortCut "$SMPROGRAMS\RTE Antares ${PRODUCT_VERSION}\Documentation\Data Organizer reference guide (PDF).lnk" "$INSTDIR\Resources\Help\data-organizer-reference-guide.pdf" "" ""
CreateShortCut "$SMPROGRAMS\RTE Antares ${PRODUCT_VERSION}\Documentation\Data Organizer troubleshooting (PDF).lnk" "$INSTDIR\Resources\Help\data-organizer-troubleshooting.pdf" "" ""
CreateShortCut "$SMPROGRAMS\RTE Antares ${PRODUCT_VERSION}\Documentation\System Map Editor reference guide (PDF).lnk" "$INSTDIR\Resources\Help\system-map-editor-reference-guide.pdf" "" ""
Expand Down Expand Up @@ -437,7 +422,6 @@ sectionend

!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SecCore} "The core files required by Antares"
#!insertmacro MUI_DESCRIPTION_TEXT ${SecExamples} "Examples"
#!insertmacro MUI_DESCRIPTION_TEXT ${SecSources} "Source files"
!insertmacro MUI_DESCRIPTION_TEXT ${SecMenuShortcuts} "Create a shortcut in the Start Menu"
!insertmacro MUI_DESCRIPTION_TEXT ${SecDekstopShortcuts} "Create a shortcut to the Desktop"
Expand Down Expand Up @@ -551,8 +535,6 @@ section Uninstall
delete "$INSTDIR\bin\${ANTARES_BIN}"
delete "$INSTDIR\antares-${CMAKE_SIMPLE_VERSION}-ui-simulator.lnk"
delete "$SMPROGRAMS\RTE Antares ${PRODUCT_VERSION}\Antares Simulator ${PRODUCT_VERSION}.lnk"
delete "$INSTDIR\Documentation\General reference guide (PDF).lnk"
delete "$SMPROGRAMS\RTE Antares ${PRODUCT_VERSION}\Documentation\General reference guide (PDF).lnk"
delete "$INSTDIR\Documentation\Data Organizer reference guide (PDF).lnk"
delete "$SMPROGRAMS\RTE Antares ${PRODUCT_VERSION}\Documentation\Data Organizer reference guide (PDF).lnk"
delete "$INSTDIR\Documentation\Data Organizer troubleshooting (PDF).lnk"
Expand All @@ -568,7 +550,6 @@ section Uninstall
delete "$DESKTOP\Antares ${CMAKE_VERSION}.lnk"

rmdir "$INSTDIR\Documentation"
rmdir "$INSTDIR\Resources\Examples"
rmdir "$INSTDIR\Resources"
rmdir "$INSTDIR\bin"
rmdir "$INSTDIR"
Expand Down
7 changes: 2 additions & 5 deletions src/distrib/win32/sourcefiles.inc.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,10 @@ File ${ANTARES_SRC_DIR}\..\THANKS.txt
File ${ANTARES_SRC_DIR}\..\INSTALL.md
File ${ANTARES_SRC_DIR}\..\README.md

${SetOutPath} "$INSTDIR\Sources\docs"
File /r ${ANTARES_SRC_DIR}\..\docs\*.*

${SetOutPath} "$INSTDIR\Sources\resources"
File /r ${ANTARES_SRC_DIR}\..\resources\*.*
File /nonfatal /r ${ANTARES_SRC_DIR}\..\resources\*.*

; TODO For now build_deps source are not provided

;${SetOutPath} "$INSTDIR\Sources\src\build_deps\wxWidgets\source"
;File /nonfatal /r /x .git ${ANTARES_SRC_DIR}\..\src\build_deps\wxWidgets\source\*.*
;File /nonfatal /r /x .git ${ANTARES_SRC_DIR}\..\src\build_deps\wxWidgets\source\*.*
2 changes: 0 additions & 2 deletions src/distrib/win32/uninstall-folders.inc.nsh
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
rmdir /r "$INSTDIR\Examples"
rmdir /r "$INSTDIR\Documentation"
rmdir /r "$INSTDIR\Sources"

0 comments on commit 8629393

Please sign in to comment.