mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 16:25:16 +03:00
More renaming. Just for the life of me can't get the translations to be recognised. Also, while a clean install will use the new app folders, the nsi scripts are currently configured to retrieve the install folder from registry if present. Might want to think about whether we want to remove this or not.
This commit is contained in:
parent
0d189b87da
commit
d65b74269b
15 changed files with 453 additions and 453 deletions
|
@ -1,4 +1,4 @@
|
||||||
PROJECT( companion9x )
|
PROJECT( companion )
|
||||||
|
|
||||||
SET( C9X_VERSION_MAJOR "1" )
|
SET( C9X_VERSION_MAJOR "1" )
|
||||||
SET( C9X_VERSION_MINOR "51" )
|
SET( C9X_VERSION_MINOR "51" )
|
||||||
|
@ -109,7 +109,7 @@ add_custom_command(
|
||||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/firmwares/ersky9x/ersky9xsimulator.cpp
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/firmwares/ersky9x/ersky9xsimulator.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
SET( companion9x_SRCS
|
SET( companion_SRCS
|
||||||
eeprominterface.cpp
|
eeprominterface.cpp
|
||||||
hexinterface.cpp
|
hexinterface.cpp
|
||||||
flashinterface.cpp
|
flashinterface.cpp
|
||||||
|
@ -168,7 +168,7 @@ SET( companion9x_SRCS
|
||||||
qcustomplot.cpp
|
qcustomplot.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
SET( companion9x_MOC_HDRS
|
SET( companion_MOC_HDRS
|
||||||
avroutputdialog.h
|
avroutputdialog.h
|
||||||
preferencesdialog.h
|
preferencesdialog.h
|
||||||
burnconfigdialog.h
|
burnconfigdialog.h
|
||||||
|
@ -201,7 +201,7 @@ SET( companion9x_MOC_HDRS
|
||||||
qcustomplot.h
|
qcustomplot.h
|
||||||
)
|
)
|
||||||
|
|
||||||
SET( companion9x_UIS
|
SET( companion_UIS
|
||||||
mdichild.ui
|
mdichild.ui
|
||||||
avroutputdialog.ui
|
avroutputdialog.ui
|
||||||
comparedialog.ui
|
comparedialog.ui
|
||||||
|
@ -225,25 +225,25 @@ SET( companion9x_UIS
|
||||||
)
|
)
|
||||||
|
|
||||||
IF ( SDL_FOUND )
|
IF ( SDL_FOUND )
|
||||||
SET( companion9x_SRCS
|
SET( companion_SRCS
|
||||||
${companion9x_SRCS}
|
${companion_SRCS}
|
||||||
joystick.cpp
|
joystick.cpp
|
||||||
joystickdialog.cpp
|
joystickdialog.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
SET( companion9x_MOC_HDRS
|
SET( companion_MOC_HDRS
|
||||||
${companion9x_MOC_HDRS}
|
${companion_MOC_HDRS}
|
||||||
joystick.h
|
joystick.h
|
||||||
joystickdialog.h
|
joystickdialog.h
|
||||||
)
|
)
|
||||||
|
|
||||||
SET( companion9x_UIS
|
SET( companion_UIS
|
||||||
${companion9x_UIS}
|
${companion_UIS}
|
||||||
joystickdialog.ui
|
joystickdialog.ui
|
||||||
)
|
)
|
||||||
ENDIF( )
|
ENDIF( )
|
||||||
|
|
||||||
SET( companion9x_RCS
|
SET( companion_RCS
|
||||||
companion9x.qrc
|
companion9x.qrc
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/translations.qrc
|
${CMAKE_CURRENT_BINARY_DIR}/translations.qrc
|
||||||
)
|
)
|
||||||
|
@ -286,7 +286,7 @@ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/firmwares/opentx/stamp-opentx.h.in ${
|
||||||
SET( PATCH_FLAGS "--binary" )
|
SET( PATCH_FLAGS "--binary" )
|
||||||
|
|
||||||
IF( WIN32 )
|
IF( WIN32 )
|
||||||
SET( companion9x_SRCS ${companion9x_SRCS} icon.rc )
|
SET( companion_SRCS ${companion_SRCS} icon.rc )
|
||||||
IF ( NOT MSVC )
|
IF ( NOT MSVC )
|
||||||
SET(CMAKE_EXE_LINKER_FLAGS -mwindows)
|
SET(CMAKE_EXE_LINKER_FLAGS -mwindows)
|
||||||
ENDIF( )
|
ENDIF( )
|
||||||
|
@ -298,28 +298,28 @@ INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR} )
|
||||||
|
|
||||||
SET( LANGUAGES he pt ru de fr it sv cs )
|
SET( LANGUAGES he pt ru de fr it sv cs )
|
||||||
FOREACH( language ${LANGUAGES} )
|
FOREACH( language ${LANGUAGES} )
|
||||||
SET( companion9x_TS ${companion9x_TS} translations/companion9x_${language}.ts )
|
SET( companion_TS ${companion_TS} translations/companion_${language}.ts )
|
||||||
ENDFOREACH( language )
|
ENDFOREACH( language )
|
||||||
|
|
||||||
QT4_WRAP_UI( companion9x_SRCS ${companion9x_UIS} )
|
QT4_WRAP_UI( companion_SRCS ${companion_UIS} )
|
||||||
QT4_WRAP_CPP( companion9x_SRCS ${companion9x_MOC_HDRS} )
|
QT4_WRAP_CPP( companion_SRCS ${companion_MOC_HDRS} )
|
||||||
QT4_ADD_TRANSLATION( companion9x_QM ${companion9x_TS} )
|
QT4_ADD_TRANSLATION( companion_QM ${companion_TS} )
|
||||||
QT4_ADD_RESOURCES( companion9x_SRCS ${companion9x_RCS} )
|
QT4_ADD_RESOURCES( companion_SRCS ${companion_RCS} )
|
||||||
|
|
||||||
ADD_DEFINITIONS( -DQT_TRANSLATIONS_DIR="${QT_TRANSLATIONS_DIR}" )
|
ADD_DEFINITIONS( -DQT_TRANSLATIONS_DIR="${QT_TRANSLATIONS_DIR}" )
|
||||||
|
|
||||||
IF( APPLE )
|
IF( APPLE )
|
||||||
ADD_EXECUTABLE( ${PROJECT_NAME} MACOSX_BUNDLE ${companion9x_SRCS} ${companion9x_QM} )
|
ADD_EXECUTABLE( ${PROJECT_NAME} MACOSX_BUNDLE ${companion_SRCS} ${companion_QM} )
|
||||||
ELSE( )
|
ELSE( )
|
||||||
ADD_EXECUTABLE( ${PROJECT_NAME} WIN32 ${companion9x_SRCS} ${companion9x_QM} )
|
ADD_EXECUTABLE( ${PROJECT_NAME} WIN32 ${companion_SRCS} ${companion_QM} )
|
||||||
ENDIF( )
|
ENDIF( )
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES( ${PROJECT_NAME} ${QT_LIBRARIES} ${QT_QTMAIN_LIBRARY} ${XERCESC_LIBRARY} ${PTHREAD_LIBRARY} ${SDL_LIBRARY} ${PHONON_LIBS} )
|
TARGET_LINK_LIBRARIES( ${PROJECT_NAME} ${QT_LIBRARIES} ${QT_QTMAIN_LIBRARY} ${XERCESC_LIBRARY} ${PTHREAD_LIBRARY} ${SDL_LIBRARY} ${PHONON_LIBS} )
|
||||||
|
|
||||||
IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||||
INSTALL( TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_PREFIX}/bin )
|
INSTALL( TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_PREFIX}/bin )
|
||||||
INSTALL( FILES companion9x.desktop DESTINATION share/applications )
|
INSTALL( FILES companion.desktop DESTINATION share/applications )
|
||||||
INSTALL( FILES companion9x.png DESTINATION share/icons )
|
INSTALL( FILES companion.png DESTINATION share/icons )
|
||||||
INSTALL( FILES ../targets/linux/45-taranis.rules DESTINATION /etc/udev/rules.d/ )
|
INSTALL( FILES ../targets/linux/45-taranis.rules DESTINATION /etc/udev/rules.d/ )
|
||||||
# Linux specific code
|
# Linux specific code
|
||||||
SET(OperatingSystem "Linux")
|
SET(OperatingSystem "Linux")
|
||||||
|
@ -329,13 +329,13 @@ ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||||
|
|
||||||
IF( WIN32 )
|
IF( WIN32 )
|
||||||
IF( MSVC )
|
IF( MSVC )
|
||||||
SET( NSI_IN_FILE companion9x-vs.nsi.in )
|
SET( NSI_IN_FILE companion-vs.nsi.in )
|
||||||
ELSE( )
|
ELSE( )
|
||||||
SET( NSI_IN_FILE companion9x-msys.nsi.in )
|
SET( NSI_IN_FILE companion-msys.nsi.in )
|
||||||
ENDIF( )
|
ENDIF( )
|
||||||
|
|
||||||
SET( SYSDIR "$ENV{windir}/system32" )
|
SET( SYSDIR "$ENV{windir}/system32" )
|
||||||
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/../targets/windows/${NSI_IN_FILE} ${CMAKE_CURRENT_BINARY_DIR}/companion9x.nsi @ONLY)
|
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/../targets/windows/${NSI_IN_FILE} ${CMAKE_CURRENT_BINARY_DIR}/companion.nsi @ONLY)
|
||||||
|
|
||||||
FIND_PROGRAM(NSIS_EXE makensis.exe PATHS
|
FIND_PROGRAM(NSIS_EXE makensis.exe PATHS
|
||||||
"C:/Program Files/NSIS"
|
"C:/Program Files/NSIS"
|
||||||
|
@ -343,14 +343,14 @@ IF( WIN32 )
|
||||||
"C:/Programs/NSIS"
|
"C:/Programs/NSIS"
|
||||||
)
|
)
|
||||||
|
|
||||||
ADD_CUSTOM_COMMAND(OUTPUT ${PROJECT_BINARY_DIR}/companion9xInstall.exe
|
ADD_CUSTOM_COMMAND(OUTPUT ${PROJECT_BINARY_DIR}/companionInstall.exe
|
||||||
COMMAND "${NSIS_EXE}" ARGS companion9x.nsi
|
COMMAND "${NSIS_EXE}" ARGS companion.nsi
|
||||||
DEPENDS ${PROJECT_NAME} ${PROJECT_BINARY_DIR}/companion9x.nsi
|
DEPENDS ${PROJECT_NAME} ${PROJECT_BINARY_DIR}/companion.nsi
|
||||||
COMMENT "Windows NSIS Installer")
|
COMMENT "Windows NSIS Installer")
|
||||||
|
|
||||||
ADD_CUSTOM_TARGET( installer
|
ADD_CUSTOM_TARGET( installer
|
||||||
DEPENDS ${PROJECT_BINARY_DIR}/companion9xInstall.exe
|
DEPENDS ${PROJECT_BINARY_DIR}/companionInstall.exe
|
||||||
SOURCES ${PROJECT_BINARY_DIR}/companion9x.nsi)
|
SOURCES ${PROJECT_BINARY_DIR}/companion.nsi)
|
||||||
ENDIF( )
|
ENDIF( )
|
||||||
|
|
||||||
IF( APPLE )
|
IF( APPLE )
|
||||||
|
@ -362,35 +362,35 @@ IF( APPLE )
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
ADD_CUSTOM_TARGET( addframeworks ALL
|
ADD_CUSTOM_TARGET( addframeworks ALL
|
||||||
COMMAND mkdir -p companion9x.app/Contents/Frameworks
|
COMMAND mkdir -p companion.app/Contents/Frameworks
|
||||||
COMMAND mkdir -p companion9x.app/Contents/Resources
|
COMMAND mkdir -p companion.app/Contents/Resources
|
||||||
COMMAND mkdir -p companion9x.app/Contents/translations
|
COMMAND mkdir -p companion.app/Contents/translations
|
||||||
COMMAND rsync ${PROJECT_SOURCE_DIR}/images/${MACOSX_BUNDLE_ICON_FILE} companion9x.app/Contents/Resources/${MACOSX_BUNDLE_ICON_FILE} # Copy the icon files
|
COMMAND rsync ${PROJECT_SOURCE_DIR}/images/${MACOSX_BUNDLE_ICON_FILE} companion.app/Contents/Resources/${MACOSX_BUNDLE_ICON_FILE} # Copy the icon files
|
||||||
COMMAND rsync ${PROJECT_SOURCE_DIR}/../macbuild/lib* companion9x.app/Contents/Frameworks
|
COMMAND rsync ${PROJECT_SOURCE_DIR}/../macbuild/lib* companion.app/Contents/Frameworks
|
||||||
#COMMAND rsync ${PROJECT_SOURCE_DIR}/../macbuild/libcrypto.1.0.0.dylib companion9x.app/Contents/Frameworks
|
#COMMAND rsync ${PROJECT_SOURCE_DIR}/../macbuild/libcrypto.1.0.0.dylib companion.app/Contents/Frameworks
|
||||||
COMMAND rsync -r --exclude=.svn ${PROJECT_SOURCE_DIR}/../macbuild/qt_menu.nib companion9x.app/Contents/Resources/
|
COMMAND rsync -r --exclude=.svn ${PROJECT_SOURCE_DIR}/../macbuild/qt_menu.nib companion.app/Contents/Resources/
|
||||||
COMMAND rsync ${PROJECT_BINARY_DIR}/*.qm companion9x.app/Contents/translations
|
COMMAND rsync ${PROJECT_BINARY_DIR}/*.qm companion.app/Contents/translations
|
||||||
COMMAND ${QT_BINARY_DIR}/macdeployqt companion9x.app
|
COMMAND ${QT_BINARY_DIR}/macdeployqt companion.app
|
||||||
WORKING_DIRECTORY ${WORK_DIR}
|
WORKING_DIRECTORY ${WORK_DIR}
|
||||||
DEPENDS ${PROJECT_NAME} )
|
DEPENDS ${PROJECT_NAME} )
|
||||||
|
|
||||||
|
|
||||||
ADD_CUSTOM_TARGET( makedmg
|
ADD_CUSTOM_TARGET( makedmg
|
||||||
COMMAND ${QT_BINARY_DIR}/macdeployqt companion9x.app -dmg -no-plugins
|
COMMAND ${QT_BINARY_DIR}/macdeployqt companion.app -dmg -no-plugins
|
||||||
WORKING_DIRECTORY ${WORK_DIR}
|
WORKING_DIRECTORY ${WORK_DIR}
|
||||||
DEPENDS addframeworks )
|
DEPENDS addframeworks )
|
||||||
|
|
||||||
ENDIF( )
|
ENDIF( )
|
||||||
|
|
||||||
ADD_CUSTOM_TARGET( stamp
|
ADD_CUSTOM_TARGET( stamp
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/version.h ${CMAKE_SOURCE_DIR}/../companion9x.stamp
|
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/version.h ${CMAKE_SOURCE_DIR}/../companion.stamp
|
||||||
DEPENDS ${CMAKE_BINARY_DIR}/version.h )
|
DEPENDS ${CMAKE_BINARY_DIR}/version.h )
|
||||||
|
|
||||||
ADD_CUSTOM_TARGET( translations
|
ADD_CUSTOM_TARGET( translations
|
||||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||||
COMMAND lupdate-qt4 ${CMAKE_SOURCE_DIR} -ts ${companion9x_TS} )
|
COMMAND lupdate-qt4 ${CMAKE_SOURCE_DIR} -ts ${companion_TS} )
|
||||||
|
|
||||||
SET(CPACK_PACKAGE_NAME "COMPANION9X")
|
SET(CPACK_PACKAGE_NAME "COMPANION")
|
||||||
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Models and settings editor for the OpenTx open source firmware")
|
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Models and settings editor for the OpenTx open source firmware")
|
||||||
string(TOLOWER "${CPACK_PACKAGE_NAME}" CPACK_PACKAGE_NAME_LOWERCASE)
|
string(TOLOWER "${CPACK_PACKAGE_NAME}" CPACK_PACKAGE_NAME_LOWERCASE)
|
||||||
find_program(DPKG_PROGRAM dpkg DOC "dpkg program of Debian-based systems")
|
find_program(DPKG_PROGRAM dpkg DOC "dpkg program of Debian-based systems")
|
||||||
|
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
|
@ -89,13 +89,13 @@ int main(int argc, char *argv[])
|
||||||
QString locale = settings.value("locale",QLocale::system().name()).toString();
|
QString locale = settings.value("locale",QLocale::system().name()).toString();
|
||||||
bool showSplash = settings.value("show_splash", true).toBool();
|
bool showSplash = settings.value("show_splash", true).toBool();
|
||||||
|
|
||||||
QTranslator companion9xTranslator;
|
QTranslator companionTranslator;
|
||||||
companion9xTranslator.load(":/companion9x_" + locale);
|
companionTranslator.load(":/companion_" + locale);
|
||||||
QTranslator qtTranslator;
|
QTranslator qtTranslator;
|
||||||
qtTranslator.load((QString)"qt_" + locale.left(2), QLibraryInfo::location(QLibraryInfo::TranslationsPath));
|
qtTranslator.load((QString)"qt_" + locale.left(2), QLibraryInfo::location(QLibraryInfo::TranslationsPath));
|
||||||
// qDebug() << locale;
|
// qDebug() << locale;
|
||||||
// qtTranslator.load("qt_" + QLocale::system().name(), QLibraryInfo::location(QLibraryInfo::TranslationsPath));
|
// qtTranslator.load("qt_" + QLocale::system().name(), QLibraryInfo::location(QLibraryInfo::TranslationsPath));
|
||||||
app.installTranslator(&companion9xTranslator);
|
app.installTranslator(&companionTranslator);
|
||||||
app.installTranslator(&qtTranslator);
|
app.installTranslator(&qtTranslator);
|
||||||
|
|
||||||
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
|
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
<!DOCTYPE RCC><RCC version="1.0">
|
<!DOCTYPE RCC><RCC version="1.0">
|
||||||
<qresource prefix="/">
|
<qresource prefix="/">
|
||||||
<file>companion9x_fr.qm</file>
|
<file>companion_fr.qm</file>
|
||||||
<file>companion9x_de.qm</file>
|
<file>companion_de.qm</file>
|
||||||
<file>companion9x_he.qm</file>
|
<file>companion_he.qm</file>
|
||||||
<file>companion9x_it.qm</file>
|
<file>companion_it.qm</file>
|
||||||
<file>companion9x_pt.qm</file>
|
<file>companion_pt.qm</file>
|
||||||
<file>companion9x_ru.qm</file>
|
<file>companion_ru.qm</file>
|
||||||
<file>companion9x_sv.qm</file>
|
<file>companion_sv.qm</file>
|
||||||
<file>companion9x_cs.qm</file>
|
<file>companion_cs.qm</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|
|
@ -1,186 +1,186 @@
|
||||||
;NSIS Modern User Interface
|
;NSIS Modern User Interface
|
||||||
;Start Menu Folder Selection Example Script
|
;Start Menu Folder Selection Example Script
|
||||||
;Written by Joost Verburg
|
;Written by Joost Verburg
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Include Modern UI
|
;Include Modern UI
|
||||||
|
|
||||||
!include "MUI2.nsh"
|
!include "MUI2.nsh"
|
||||||
!include "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\FileAssociation.nsh"
|
!include "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\FileAssociation.nsh"
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;General
|
;General
|
||||||
|
|
||||||
;Name and file
|
;Name and file
|
||||||
Name "companion9x"
|
Name "openTx companion"
|
||||||
OutFile "companion9xInstall_v@C9X_VERSION@.exe"
|
OutFile "companionInstall_v@C9X_VERSION@.exe"
|
||||||
|
|
||||||
;Default installation folder
|
;Default installation folder
|
||||||
InstallDir "$PROGRAMFILES\companion9x"
|
InstallDir "$PROGRAMFILES\openTx companion"
|
||||||
|
|
||||||
;Get installation folder from registry if available
|
;Get installation folder from registry if available
|
||||||
InstallDirRegKey HKCU "Software\companion9x" ""
|
InstallDirRegKey HKCU "Software\companion9x" ""
|
||||||
|
|
||||||
;Compressor options
|
;Compressor options
|
||||||
SetCompressor /FINAL /SOLID lzma
|
SetCompressor /FINAL /SOLID lzma
|
||||||
SetCompressorDictSize 64
|
SetCompressorDictSize 64
|
||||||
|
|
||||||
;Request application privileges for Windows Vista
|
;Request application privileges for Windows Vista
|
||||||
RequestExecutionLevel admin
|
RequestExecutionLevel admin
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Variables
|
;Variables
|
||||||
|
|
||||||
Var StartMenuFolder
|
Var StartMenuFolder
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Interface Settings
|
;Interface Settings
|
||||||
|
|
||||||
!define MUI_ABORTWARNING
|
!define MUI_ABORTWARNING
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Pages
|
;Pages
|
||||||
|
|
||||||
!insertmacro MUI_PAGE_LICENSE "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\license.txt"
|
!insertmacro MUI_PAGE_LICENSE "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\license.txt"
|
||||||
!insertmacro MUI_PAGE_COMPONENTS
|
!insertmacro MUI_PAGE_COMPONENTS
|
||||||
!insertmacro MUI_PAGE_DIRECTORY
|
!insertmacro MUI_PAGE_DIRECTORY
|
||||||
|
|
||||||
;Start Menu Folder Page Configuration
|
;Start Menu Folder Page Configuration
|
||||||
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU"
|
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU"
|
||||||
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\companion9x"
|
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\companion9x"
|
||||||
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
|
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
|
||||||
|
|
||||||
!insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder
|
!insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder
|
||||||
|
|
||||||
!insertmacro MUI_PAGE_INSTFILES
|
!insertmacro MUI_PAGE_INSTFILES
|
||||||
|
|
||||||
# These indented statements modify settings for MUI_PAGE_FINISH
|
# These indented statements modify settings for MUI_PAGE_FINISH
|
||||||
!define MUI_FINISHPAGE_NOAUTOCLOSE
|
!define MUI_FINISHPAGE_NOAUTOCLOSE
|
||||||
!define MUI_FINISHPAGE_RUN
|
!define MUI_FINISHPAGE_RUN
|
||||||
!define MUI_FINISHPAGE_RUN_CHECKED
|
!define MUI_FINISHPAGE_RUN_CHECKED
|
||||||
!define MUI_FINISHPAGE_RUN_TEXT "Launch companion9x"
|
!define MUI_FINISHPAGE_RUN_TEXT "Launch companion"
|
||||||
!define MUI_FINISHPAGE_RUN_FUNCTION "LaunchLink"
|
!define MUI_FINISHPAGE_RUN_FUNCTION "LaunchLink"
|
||||||
# !define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
|
# !define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
|
||||||
# !define MUI_FINISHPAGE_SHOWREADME $INSTDIR\readme.txt
|
# !define MUI_FINISHPAGE_SHOWREADME $INSTDIR\readme.txt
|
||||||
!insertmacro MUI_PAGE_FINISH
|
!insertmacro MUI_PAGE_FINISH
|
||||||
|
|
||||||
!insertmacro MUI_UNPAGE_CONFIRM
|
!insertmacro MUI_UNPAGE_CONFIRM
|
||||||
!insertmacro MUI_UNPAGE_INSTFILES
|
!insertmacro MUI_UNPAGE_INSTFILES
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Languages
|
;Languages
|
||||||
|
|
||||||
!insertmacro MUI_LANGUAGE "English"
|
!insertmacro MUI_LANGUAGE "English"
|
||||||
!insertmacro MUI_LANGUAGE "French"
|
!insertmacro MUI_LANGUAGE "French"
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Installer Sections
|
;Installer Sections
|
||||||
|
|
||||||
Section "companion9x" SecDummy
|
Section "openTx companion" SecDummy
|
||||||
|
|
||||||
SetOutPath "$INSTDIR"
|
SetOutPath "$INSTDIR"
|
||||||
|
|
||||||
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\license.txt"
|
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\license.txt"
|
||||||
File "companion9x.exe"
|
File "companion.exe"
|
||||||
File "C:\Programs\xerces\src\.libs\libxerces-c-3-1.dll"
|
File "C:\Programs\xerces\src\.libs\libxerces-c-3-1.dll"
|
||||||
File "C:\MinGW\bin\libgcc_s_dw2-1.dll"
|
File "C:\MinGW\bin\libgcc_s_dw2-1.dll"
|
||||||
File "C:\MinGW\bin\mingwm10.dll"
|
File "C:\MinGW\bin\mingwm10.dll"
|
||||||
File "C:\MinGW\bin\libstdc++-6.dll"
|
File "C:\MinGW\bin\libstdc++-6.dll"
|
||||||
File "@QT_BINARY_DIR@\QtCore4.dll"
|
File "@QT_BINARY_DIR@\QtCore4.dll"
|
||||||
File "@QT_BINARY_DIR@\QtGui4.dll"
|
File "@QT_BINARY_DIR@\QtGui4.dll"
|
||||||
File "@QT_BINARY_DIR@\QtXml4.dll"
|
File "@QT_BINARY_DIR@\QtXml4.dll"
|
||||||
File "@QT_BINARY_DIR@\QtNetwork4.dll"
|
File "@QT_BINARY_DIR@\QtNetwork4.dll"
|
||||||
File "@QT_BINARY_DIR@\Phonon4.dll"
|
File "@QT_BINARY_DIR@\Phonon4.dll"
|
||||||
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\avrdude.exe"
|
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\avrdude.exe"
|
||||||
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\avrdude.conf"
|
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\avrdude.conf"
|
||||||
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\libusb0.dll"
|
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\libusb0.dll"
|
||||||
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\dfu-util.exe"
|
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\dfu-util.exe"
|
||||||
|
|
||||||
CreateDirectory "$INSTDIR\lang"
|
CreateDirectory "$INSTDIR\lang"
|
||||||
SetOutPath "$INSTDIR\lang"
|
SetOutPath "$INSTDIR\lang"
|
||||||
File "*.qm"
|
File "*.qm"
|
||||||
|
|
||||||
SetOutPath "$INSTDIR"
|
SetOutPath "$INSTDIR"
|
||||||
;Store installation folder
|
;Store installation folder
|
||||||
WriteRegStr HKCU "Software\companion9x" "" $INSTDIR
|
WriteRegStr HKCU "Software\companion9x" "" $INSTDIR
|
||||||
|
|
||||||
;Associate with extentions ,bin and .hex
|
;Associate with extentions ,bin and .hex
|
||||||
${registerExtension} "$INSTDIR\companion9x.exe" ".bin" "BIN_File"
|
${registerExtension} "$INSTDIR\companion.exe" ".bin" "BIN_File"
|
||||||
${registerExtension} "$INSTDIR\companion9x.exe" ".hex" "HEX_File"
|
${registerExtension} "$INSTDIR\companion.exe" ".hex" "HEX_File"
|
||||||
${registerExtension} "$INSTDIR\companion9x.exe" ".companion9x" "EEPE_File"
|
${registerExtension} "$INSTDIR\companion.exe" ".companion" "EEPE_File"
|
||||||
${registerExtension} "$INSTDIR\companion9x.exe" ".eepm" "EEPM_File"
|
${registerExtension} "$INSTDIR\companion.exe" ".eepm" "EEPM_File"
|
||||||
|
|
||||||
|
|
||||||
;Create uninstaller
|
;Create uninstaller
|
||||||
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
||||||
|
|
||||||
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
||||||
|
|
||||||
;Create shortcuts
|
;Create shortcuts
|
||||||
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
|
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
|
||||||
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\companion9x.lnk" "$INSTDIR\companion9x.exe"
|
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\companion.lnk" "$INSTDIR\companion.exe"
|
||||||
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
|
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
|
||||||
|
|
||||||
!insertmacro MUI_STARTMENU_WRITE_END
|
!insertmacro MUI_STARTMENU_WRITE_END
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Descriptions
|
;Descriptions
|
||||||
|
|
||||||
;Language strings
|
;Language strings
|
||||||
LangString DESC_SecDummy ${LANG_ENGLISH} "companion9x EEPROM editor."
|
LangString DESC_SecDummy ${LANG_ENGLISH} "Models and settings editor for openTx"
|
||||||
LangString DESC_SecDummy ${LANG_FRENCH} "companion9x editeur d'EEPROM"
|
LangString DESC_SecDummy ${LANG_FRENCH} "Editeur de réglages et modèles pour openTx"
|
||||||
|
|
||||||
;Assign language strings to sections
|
;Assign language strings to sections
|
||||||
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
|
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
|
||||||
!insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} $(DESC_SecDummy)
|
!insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} $(DESC_SecDummy)
|
||||||
!insertmacro MUI_FUNCTION_DESCRIPTION_END
|
!insertmacro MUI_FUNCTION_DESCRIPTION_END
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Uninstaller Section
|
;Uninstaller Section
|
||||||
|
|
||||||
Section "Uninstall"
|
Section "Uninstall"
|
||||||
|
|
||||||
;ADD YOUR OWN FILES HERE...
|
;ADD YOUR OWN FILES HERE...
|
||||||
|
|
||||||
Delete "$INSTDIR\license.txt"
|
Delete "$INSTDIR\license.txt"
|
||||||
Delete "$INSTDIR\companion9x.exe"
|
Delete "$INSTDIR\companion.exe"
|
||||||
Delete "$INSTDIR\libxerces-c-3-1.dll"
|
Delete "$INSTDIR\libxerces-c-3-1.dll"
|
||||||
Delete "$INSTDIR\libgcc_s_dw2-1.dll"
|
Delete "$INSTDIR\libgcc_s_dw2-1.dll"
|
||||||
Delete "$INSTDIR\mingwm10.dll"
|
Delete "$INSTDIR\mingwm10.dll"
|
||||||
Delete "$INSTDIR\libstdc++-6.dll"
|
Delete "$INSTDIR\libstdc++-6.dll"
|
||||||
Delete "$INSTDIR\QtCore4.dll"
|
Delete "$INSTDIR\QtCore4.dll"
|
||||||
Delete "$INSTDIR\QtGui4.dll"
|
Delete "$INSTDIR\QtGui4.dll"
|
||||||
Delete "$INSTDIR\QtNetwork4.dll"
|
Delete "$INSTDIR\QtNetwork4.dll"
|
||||||
Delete "$INSTDIR\Phonon4.dll"
|
Delete "$INSTDIR\Phonon4.dll"
|
||||||
Delete "$INSTDIR\QtXml4.dll"
|
Delete "$INSTDIR\QtXml4.dll"
|
||||||
Delete "$INSTDIR\avrdude.exe"
|
Delete "$INSTDIR\avrdude.exe"
|
||||||
Delete "$INSTDIR\avrdude.conf"
|
Delete "$INSTDIR\avrdude.conf"
|
||||||
Delete "$INSTDIR\libusb0.dll"
|
Delete "$INSTDIR\libusb0.dll"
|
||||||
Delete "$INSTDIR\dfu-util.exe"
|
Delete "$INSTDIR\dfu-util.exe"
|
||||||
Delete "$INSTDIR\Uninstall.exe"
|
Delete "$INSTDIR\Uninstall.exe"
|
||||||
|
|
||||||
Delete "$INSTDIR\lang\*.*"
|
Delete "$INSTDIR\lang\*.*"
|
||||||
|
|
||||||
RMDir "$INSTDIR\lang"
|
RMDir "$INSTDIR\lang"
|
||||||
RMDir "$INSTDIR"
|
RMDir "$INSTDIR"
|
||||||
|
|
||||||
${unregisterExtension} ".bin" "BIN File"
|
${unregisterExtension} ".bin" "BIN File"
|
||||||
${unregisterExtension} ".hex" "HEX File"
|
${unregisterExtension} ".hex" "HEX File"
|
||||||
${unregisterExtension} ".eepm" "EEPE File"
|
${unregisterExtension} ".eepm" "EEPE File"
|
||||||
${unregisterExtension} ".companion9x" "EEPM File"
|
${unregisterExtension} ".companion" "EEPM File"
|
||||||
|
|
||||||
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
|
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
|
||||||
|
|
||||||
Delete "$SMPROGRAMS\$StartMenuFolder\companion9x.lnk"
|
Delete "$SMPROGRAMS\$StartMenuFolder\companion.lnk"
|
||||||
Delete "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk"
|
Delete "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk"
|
||||||
RMDir "$SMPROGRAMS\$StartMenuFolder"
|
RMDir "$SMPROGRAMS\$StartMenuFolder"
|
||||||
|
|
||||||
DeleteRegKey /ifempty HKCU "Software\companion9x"
|
DeleteRegKey /ifempty HKCU "Software\companion9x"
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Function LaunchLink
|
Function LaunchLink
|
||||||
ExecShell "" "$INSTDIR\companion9x.exe"
|
ExecShell "" "$INSTDIR\companion.exe"
|
||||||
FunctionEnd
|
FunctionEnd
|
|
@ -1,214 +1,214 @@
|
||||||
;NSIS Modern User Interface
|
;NSIS Modern User Interface
|
||||||
;Start Menu Folder Selection Example Script
|
;Start Menu Folder Selection Example Script
|
||||||
;Written by Joost Verburg
|
;Written by Joost Verburg
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Include Modern UI
|
;Include Modern UI
|
||||||
|
|
||||||
!include "MUI2.nsh"
|
!include "MUI2.nsh"
|
||||||
!include "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\FileAssociation.nsh"
|
!include "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\FileAssociation.nsh"
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;General
|
;General
|
||||||
|
|
||||||
;Name and file
|
;Name and file
|
||||||
Name "companion9x"
|
Name "openTx companion"
|
||||||
OutFile "companion9xInstall_v@C9X_VERSION@.exe"
|
OutFile "companionInstall_v@C9X_VERSION@.exe"
|
||||||
|
|
||||||
;Default installation folder
|
;Default installation folder
|
||||||
InstallDir "$PROGRAMFILES\companion9x"
|
InstallDir "$PROGRAMFILES\openTx companion"
|
||||||
|
|
||||||
;Get installation folder from registry if available
|
;Get installation folder from registry if available
|
||||||
InstallDirRegKey HKCU "Software\companion9x" ""
|
InstallDirRegKey HKCU "Software\companion9x" ""
|
||||||
|
|
||||||
;Compressor options
|
;Compressor options
|
||||||
SetCompressor /FINAL /SOLID lzma
|
SetCompressor /FINAL /SOLID lzma
|
||||||
SetCompressorDictSize 64
|
SetCompressorDictSize 64
|
||||||
|
|
||||||
;Request application privileges for Windows Vista
|
;Request application privileges for Windows Vista
|
||||||
RequestExecutionLevel admin
|
RequestExecutionLevel admin
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Variables
|
;Variables
|
||||||
|
|
||||||
Var StartMenuFolder
|
Var StartMenuFolder
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Interface Settings
|
;Interface Settings
|
||||||
|
|
||||||
!define MUI_ABORTWARNING
|
!define MUI_ABORTWARNING
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;File Exists Macro
|
;File Exists Macro
|
||||||
|
|
||||||
; See http://nsis.sourceforge.net/Check_if_a_file_exists_at_compile_time for documentation
|
; See http://nsis.sourceforge.net/Check_if_a_file_exists_at_compile_time for documentation
|
||||||
!macro !defineifexist _VAR_NAME _FILE_NAME
|
!macro !defineifexist _VAR_NAME _FILE_NAME
|
||||||
!tempfile _TEMPFILE
|
!tempfile _TEMPFILE
|
||||||
!ifdef NSIS_WIN32_MAKENSIS
|
!ifdef NSIS_WIN32_MAKENSIS
|
||||||
; Windows - cmd.exe
|
; Windows - cmd.exe
|
||||||
!system 'if exist "${_FILE_NAME}" echo !define ${_VAR_NAME} > "${_TEMPFILE}"'
|
!system 'if exist "${_FILE_NAME}" echo !define ${_VAR_NAME} > "${_TEMPFILE}"'
|
||||||
!else
|
!else
|
||||||
; Posix - sh
|
; Posix - sh
|
||||||
!system 'if [ -e "${_FILE_NAME}" ]; then echo "!define ${_VAR_NAME}" > "${_TEMPFILE}"; fi'
|
!system 'if [ -e "${_FILE_NAME}" ]; then echo "!define ${_VAR_NAME}" > "${_TEMPFILE}"; fi'
|
||||||
!endif
|
!endif
|
||||||
!include '${_TEMPFILE}'
|
!include '${_TEMPFILE}'
|
||||||
!delfile '${_TEMPFILE}'
|
!delfile '${_TEMPFILE}'
|
||||||
!undef _TEMPFILE
|
!undef _TEMPFILE
|
||||||
!macroend
|
!macroend
|
||||||
!define !defineifexist "!insertmacro !defineifexist"
|
!define !defineifexist "!insertmacro !defineifexist"
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Pages
|
;Pages
|
||||||
|
|
||||||
!insertmacro MUI_PAGE_LICENSE "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\license.txt"
|
!insertmacro MUI_PAGE_LICENSE "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\license.txt"
|
||||||
!insertmacro MUI_PAGE_COMPONENTS
|
!insertmacro MUI_PAGE_COMPONENTS
|
||||||
!insertmacro MUI_PAGE_DIRECTORY
|
!insertmacro MUI_PAGE_DIRECTORY
|
||||||
|
|
||||||
;Start Menu Folder Page Configuration
|
;Start Menu Folder Page Configuration
|
||||||
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU"
|
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU"
|
||||||
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\companion9x"
|
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\companion9x"
|
||||||
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
|
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
|
||||||
|
|
||||||
!insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder
|
!insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder
|
||||||
|
|
||||||
!insertmacro MUI_PAGE_INSTFILES
|
!insertmacro MUI_PAGE_INSTFILES
|
||||||
|
|
||||||
# These indented statements modify settings for MUI_PAGE_FINISH
|
# These indented statements modify settings for MUI_PAGE_FINISH
|
||||||
!define MUI_FINISHPAGE_NOAUTOCLOSE
|
!define MUI_FINISHPAGE_NOAUTOCLOSE
|
||||||
!define MUI_FINISHPAGE_RUN
|
!define MUI_FINISHPAGE_RUN
|
||||||
!define MUI_FINISHPAGE_RUN_CHECKED
|
!define MUI_FINISHPAGE_RUN_CHECKED
|
||||||
!define MUI_FINISHPAGE_RUN_TEXT "Launch companion9x"
|
!define MUI_FINISHPAGE_RUN_TEXT "Launch companion"
|
||||||
!define MUI_FINISHPAGE_RUN_FUNCTION "LaunchLink"
|
!define MUI_FINISHPAGE_RUN_FUNCTION "LaunchLink"
|
||||||
# !define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
|
# !define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
|
||||||
# !define MUI_FINISHPAGE_SHOWREADME $INSTDIR\readme.txt
|
# !define MUI_FINISHPAGE_SHOWREADME $INSTDIR\readme.txt
|
||||||
!insertmacro MUI_PAGE_FINISH
|
!insertmacro MUI_PAGE_FINISH
|
||||||
|
|
||||||
!insertmacro MUI_UNPAGE_CONFIRM
|
!insertmacro MUI_UNPAGE_CONFIRM
|
||||||
!insertmacro MUI_UNPAGE_INSTFILES
|
!insertmacro MUI_UNPAGE_INSTFILES
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Languages
|
;Languages
|
||||||
|
|
||||||
!insertmacro MUI_LANGUAGE "English"
|
!insertmacro MUI_LANGUAGE "English"
|
||||||
!insertmacro MUI_LANGUAGE "French"
|
!insertmacro MUI_LANGUAGE "French"
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Installer Sections
|
;Installer Sections
|
||||||
|
|
||||||
Section "companion9x" SecDummy
|
Section "openTx companion" SecDummy
|
||||||
|
|
||||||
SetOutPath "$INSTDIR"
|
SetOutPath "$INSTDIR"
|
||||||
|
|
||||||
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\license.txt"
|
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\license.txt"
|
||||||
File "Release\companion9x.exe"
|
File "Release\companion.exe"
|
||||||
${!defineifexist} PTHREAD_WINDIR "C:\Programs\pthreads\Pre-built.2\lib\pthreadVC2.dll"
|
${!defineifexist} PTHREAD_WINDIR "C:\Programs\pthreads\Pre-built.2\lib\pthreadVC2.dll"
|
||||||
!ifdef PTHREAD_WINDIR
|
!ifdef PTHREAD_WINDIR
|
||||||
File "C:\Programs\pthreads\Pre-built.2\lib\pthreadVC2.dll"
|
File "C:\Programs\pthreads\Pre-built.2\lib\pthreadVC2.dll"
|
||||||
!else
|
!else
|
||||||
File "@SYSDIR@\system32\pthreadVC2.dll"
|
File "@SYSDIR@\system32\pthreadVC2.dll"
|
||||||
!endif
|
!endif
|
||||||
File "C:\Programs\xerces-vc\bin\xerces-c_3_1.dll"
|
File "C:\Programs\xerces-vc\bin\xerces-c_3_1.dll"
|
||||||
File "C:\Programs\SDL\lib\SDL.dll"
|
File "C:\Programs\SDL\lib\SDL.dll"
|
||||||
File "@SYSDIR@\msvcp100.dll"
|
File "@SYSDIR@\msvcp100.dll"
|
||||||
File "@SYSDIR@\msvcr100.dll"
|
File "@SYSDIR@\msvcr100.dll"
|
||||||
File "@QT_BINARY_DIR@\QtCore4.dll"
|
File "@QT_BINARY_DIR@\QtCore4.dll"
|
||||||
File "@QT_BINARY_DIR@\QtGui4.dll"
|
File "@QT_BINARY_DIR@\QtGui4.dll"
|
||||||
File "@QT_BINARY_DIR@\QtNetwork4.dll"
|
File "@QT_BINARY_DIR@\QtNetwork4.dll"
|
||||||
File "@QT_BINARY_DIR@\Phonon4.dll"
|
File "@QT_BINARY_DIR@\Phonon4.dll"
|
||||||
File "@QT_BINARY_DIR@\QtXml4.dll"
|
File "@QT_BINARY_DIR@\QtXml4.dll"
|
||||||
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\avrdude.exe"
|
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\avrdude.exe"
|
||||||
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\avrdude.conf"
|
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\avrdude.conf"
|
||||||
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\libusb0.dll"
|
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\libusb0.dll"
|
||||||
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\dfu-util.exe"
|
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\dfu-util.exe"
|
||||||
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\libusb-1.0.dll"
|
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\libusb-1.0.dll"
|
||||||
|
|
||||||
CreateDirectory "$INSTDIR\lang"
|
CreateDirectory "$INSTDIR\lang"
|
||||||
SetOutPath "$INSTDIR\lang"
|
SetOutPath "$INSTDIR\lang"
|
||||||
File "*.qm"
|
File "*.qm"
|
||||||
|
|
||||||
SetOutPath "$INSTDIR"
|
SetOutPath "$INSTDIR"
|
||||||
;Store installation folder
|
;Store installation folder
|
||||||
WriteRegStr HKCU "Software\companion9x" "" $INSTDIR
|
WriteRegStr HKCU "Software\companion9x" "" $INSTDIR
|
||||||
|
|
||||||
;Associate with extentions ,bin and .hex
|
;Associate with extentions ,bin and .hex
|
||||||
${registerExtension} "$INSTDIR\companion9x.exe" ".bin" "BIN_File"
|
${registerExtension} "$INSTDIR\companion.exe" ".bin" "BIN_File"
|
||||||
${registerExtension} "$INSTDIR\companion9x.exe" ".hex" "HEX_File"
|
${registerExtension} "$INSTDIR\companion.exe" ".hex" "HEX_File"
|
||||||
${registerExtension} "$INSTDIR\companion9x.exe" ".companion9x" "EEPE_File"
|
${registerExtension} "$INSTDIR\companion.exe" ".companion" "EEPE_File"
|
||||||
${registerExtension} "$INSTDIR\companion9x.exe" ".eepm" "EEPM_File"
|
${registerExtension} "$INSTDIR\companion.exe" ".eepm" "EEPM_File"
|
||||||
|
|
||||||
|
|
||||||
;Create uninstaller
|
;Create uninstaller
|
||||||
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
||||||
|
|
||||||
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
||||||
|
|
||||||
;Create shortcuts
|
;Create shortcuts
|
||||||
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
|
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
|
||||||
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\companion9x.lnk" "$INSTDIR\companion9x.exe"
|
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\companion.lnk" "$INSTDIR\companion.exe"
|
||||||
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
|
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
|
||||||
|
|
||||||
!insertmacro MUI_STARTMENU_WRITE_END
|
!insertmacro MUI_STARTMENU_WRITE_END
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Descriptions
|
;Descriptions
|
||||||
|
|
||||||
;Language strings
|
;Language strings
|
||||||
LangString DESC_SecDummy ${LANG_ENGLISH} "companion9x EEPROM editor."
|
LangString DESC_SecDummy ${LANG_ENGLISH} "Models and settings editor for openTx"
|
||||||
LangString DESC_SecDummy ${LANG_FRENCH} "companion9x editeur d'EEPROM"
|
LangString DESC_SecDummy ${LANG_FRENCH} "Editeur de réglages et modèles pour openTx"
|
||||||
|
|
||||||
;Assign language strings to sections
|
;Assign language strings to sections
|
||||||
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
|
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
|
||||||
!insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} $(DESC_SecDummy)
|
!insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} $(DESC_SecDummy)
|
||||||
!insertmacro MUI_FUNCTION_DESCRIPTION_END
|
!insertmacro MUI_FUNCTION_DESCRIPTION_END
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Uninstaller Section
|
;Uninstaller Section
|
||||||
|
|
||||||
Section "Uninstall"
|
Section "Uninstall"
|
||||||
|
|
||||||
;ADD YOUR OWN FILES HERE...
|
;ADD YOUR OWN FILES HERE...
|
||||||
|
|
||||||
Delete "$INSTDIR\license.txt"
|
Delete "$INSTDIR\license.txt"
|
||||||
Delete "$INSTDIR\companion9x.exe"
|
Delete "$INSTDIR\companion.exe"
|
||||||
Delete "$INSTDIR\pthreadVC2.dll"
|
Delete "$INSTDIR\pthreadVC2.dll"
|
||||||
Delete "$INSTDIR\xerces-c_3_1.dll"
|
Delete "$INSTDIR\xerces-c_3_1.dll"
|
||||||
Delete "$INSTDIR\SDL.dll"
|
Delete "$INSTDIR\SDL.dll"
|
||||||
Delete "$INSTDIR\msvcp100.dll"
|
Delete "$INSTDIR\msvcp100.dll"
|
||||||
Delete "$INSTDIR\msvcr100.dll"
|
Delete "$INSTDIR\msvcr100.dll"
|
||||||
Delete "$INSTDIR\QtCore4.dll"
|
Delete "$INSTDIR\QtCore4.dll"
|
||||||
Delete "$INSTDIR\QtGui4.dll"
|
Delete "$INSTDIR\QtGui4.dll"
|
||||||
Delete "$INSTDIR\QtXml4.dll"
|
Delete "$INSTDIR\QtXml4.dll"
|
||||||
Delete "$INSTDIR\QtNetwork4.dll"
|
Delete "$INSTDIR\QtNetwork4.dll"
|
||||||
Delete "$INSTDIR\Phonon4.dll"
|
Delete "$INSTDIR\Phonon4.dll"
|
||||||
Delete "$INSTDIR\avrdude.exe"
|
Delete "$INSTDIR\avrdude.exe"
|
||||||
Delete "$INSTDIR\avrdude.conf"
|
Delete "$INSTDIR\avrdude.conf"
|
||||||
Delete "$INSTDIR\libusb0.dll"
|
Delete "$INSTDIR\libusb0.dll"
|
||||||
Delete "$INSTDIR\dfu-util.exe"
|
Delete "$INSTDIR\dfu-util.exe"
|
||||||
Delete "$INSTDIR\libusb-1.0.dll"
|
Delete "$INSTDIR\libusb-1.0.dll"
|
||||||
Delete "$INSTDIR\Uninstall.exe"
|
Delete "$INSTDIR\Uninstall.exe"
|
||||||
|
|
||||||
Delete "$INSTDIR\lang\*.*"
|
Delete "$INSTDIR\lang\*.*"
|
||||||
|
|
||||||
RMDir "$INSTDIR\lang"
|
RMDir "$INSTDIR\lang"
|
||||||
RMDir "$INSTDIR"
|
RMDir "$INSTDIR"
|
||||||
|
|
||||||
${unregisterExtension} ".bin" "BIN File"
|
${unregisterExtension} ".bin" "BIN File"
|
||||||
${unregisterExtension} ".hex" "HEX File"
|
${unregisterExtension} ".hex" "HEX File"
|
||||||
${unregisterExtension} ".eepm" "EEPE File"
|
${unregisterExtension} ".eepm" "EEPE File"
|
||||||
${unregisterExtension} ".companion9x" "EEPM File"
|
${unregisterExtension} ".companion" "EEPM File"
|
||||||
|
|
||||||
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
|
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
|
||||||
|
|
||||||
Delete "$SMPROGRAMS\$StartMenuFolder\companion9x.lnk"
|
Delete "$SMPROGRAMS\$StartMenuFolder\companion.lnk"
|
||||||
Delete "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk"
|
Delete "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk"
|
||||||
RMDir "$SMPROGRAMS\$StartMenuFolder"
|
RMDir "$SMPROGRAMS\$StartMenuFolder"
|
||||||
|
|
||||||
DeleteRegKey /ifempty HKCU "Software\companion9x"
|
DeleteRegKey /ifempty HKCU "Software\companion9x"
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Function LaunchLink
|
Function LaunchLink
|
||||||
ExecShell "" "$INSTDIR\companion9x.exe"
|
ExecShell "" "$INSTDIR\companion.exe"
|
||||||
FunctionEnd
|
FunctionEnd
|
Loading…
Add table
Add a link
Reference in a new issue