Register .otx files on Win
This commit is contained in:
@@ -122,11 +122,7 @@ MainWindow::MainWindow():
|
|||||||
if (!str.isEmpty()) {
|
if (!str.isEmpty()) {
|
||||||
int fileType = getStorageType(str);
|
int fileType = getStorageType(str);
|
||||||
|
|
||||||
if (fileType==STORAGE_TYPE_HEX) {
|
if (fileType==STORAGE_TYPE_EEPE || fileType==STORAGE_TYPE_EEPM || fileType==STORAGE_TYPE_BIN || fileType==STORAGE_TYPE_OTX) {
|
||||||
writeFlash(str);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (fileType==STORAGE_TYPE_EEPE || fileType==STORAGE_TYPE_EEPM || fileType==STORAGE_TYPE_BIN) {
|
|
||||||
MdiChild * child = createMdiChild();
|
MdiChild * child = createMdiChild();
|
||||||
if (child->loadFile(str)) {
|
if (child->loadFile(str)) {
|
||||||
if (!(printing && model >= 0 && (getCurrentFirmware()->getCapability(Models) == 0 || model<getCurrentFirmware()->getCapability(Models)) && !printfilename.isEmpty())) {
|
if (!(printing && model >= 0 && (getCurrentFirmware()->getCapability(Models) == 0 || model<getCurrentFirmware()->getCapability(Models)) && !printfilename.isEmpty())) {
|
||||||
|
|||||||
@@ -147,11 +147,9 @@ Section "OpenTX Companion" SecDummy
|
|||||||
;Store installation folder
|
;Store installation folder
|
||||||
WriteRegStr HKCU "Software\OpenTX\Companion @VERSION_FAMILY@" "" $INSTDIR
|
WriteRegStr HKCU "Software\OpenTX\Companion @VERSION_FAMILY@" "" $INSTDIR
|
||||||
|
|
||||||
;Associate with extentions ,bin and .hex
|
;Associate with extentions .otx, .bin (TODO: remove .bin)
|
||||||
${registerExtension} "$INSTDIR\companion.exe" ".bin" "BIN_File"
|
${registerExtension} "$INSTDIR\companion.exe" ".bin" "BIN File"
|
||||||
${registerExtension} "$INSTDIR\companion.exe" ".hex" "HEX_File"
|
${registerExtension} "$INSTDIR\companion.exe" ".otx" "OpenTX Settings File"
|
||||||
${registerExtension} "$INSTDIR\companion.exe" ".companion" "EEPE_File"
|
|
||||||
${registerExtension} "$INSTDIR\companion.exe" ".eepm" "EEPM_File"
|
|
||||||
|
|
||||||
;Create uninstaller
|
;Create uninstaller
|
||||||
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
||||||
@@ -235,7 +233,7 @@ Section "Uninstall"
|
|||||||
${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} ".otx" "OpenTX Archive"
|
${unregisterExtension} ".otx" "OpenTX Settings File"
|
||||||
|
|
||||||
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
|
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user