1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

Merge pull request #14 from parched/remove_openpilot_hardcoding_part_3

Remove some more openpilot hardcoding
This commit is contained in:
James Duley 2015-07-12 20:42:14 +01:00
commit c57ca08911
11 changed files with 59 additions and 58 deletions

View File

@ -59,10 +59,10 @@ SPACE := $(EMPTY) $(EMPTY)
smallify = $(subst $(SPACE),-,$(call lc,$1)) smallify = $(subst $(SPACE),-,$(call lc,$1))
# Naming for binaries and packaging etc,. # Naming for binaries and packaging etc,.
OP_BIG_NAME := LibrePilot ORG_BIG_NAME := LibrePilot
GCS_BIG_NAME := ${OP_BIG_NAME} GCS GCS_BIG_NAME := ${ORG_BIG_NAME} GCS
# These should be lowercase with no spaces # These should be lowercase with no spaces
OP_SMALL_NAME := $(call smallify,$(OP_BIG_NAME)) ORG_SMALL_NAME := $(call smallify,$(ORG_BIG_NAME))
GCS_SMALL_NAME := $(call smallify,$(GCS_BIG_NAME)) GCS_SMALL_NAME := $(call smallify,$(GCS_BIG_NAME))
# Set up default build configurations (debug | release) # Set up default build configurations (debug | release)
@ -480,7 +480,9 @@ openpilotgcs_qmake $(OPENPILOTGCS_MAKEFILE): | $(OPENPILOTGCS_DIR)
$(V1) cd $(OPENPILOTGCS_DIR) && \ $(V1) cd $(OPENPILOTGCS_DIR) && \
$(QMAKE) $(ROOT_DIR)/ground/openpilotgcs/openpilotgcs.pro \ $(QMAKE) $(ROOT_DIR)/ground/openpilotgcs/openpilotgcs.pro \
-spec $(QT_SPEC) -r CONFIG+=$(GCS_BUILD_CONF) CONFIG+=$(GCS_SILENT) \ -spec $(QT_SPEC) -r CONFIG+=$(GCS_BUILD_CONF) CONFIG+=$(GCS_SILENT) \
'GCS_BIG_NAME="$(GCS_BIG_NAME)"' GCS_SMALL_NAME=$(GCS_SMALL_NAME) $(GCS_QMAKE_OPTS) 'GCS_BIG_NAME="$(GCS_BIG_NAME)"' GCS_SMALL_NAME=$(GCS_SMALL_NAME) \
'ORG_BIG_NAME="$(ORG_BIG_NAME)"' ORG_SMALL_NAME=$(ORG_SMALL_NAME) \
$(GCS_QMAKE_OPTS)
.PHONY: openpilotgcs .PHONY: openpilotgcs
openpilotgcs: uavobjgenerator $(OPENPILOTGCS_MAKEFILE) openpilotgcs: uavobjgenerator $(OPENPILOTGCS_MAKEFILE)
@ -732,7 +734,7 @@ endif
# Define some variables # Define some variables
PACKAGE_LBL := $(shell $(VERSION_INFO) --format=\$${LABEL}) PACKAGE_LBL := $(shell $(VERSION_INFO) --format=\$${LABEL})
PACKAGE_NAME := $(subst $(SPACE),,$(OP_BIG_NAME)) PACKAGE_NAME := $(subst $(SPACE),,$(ORG_BIG_NAME))
PACKAGE_SEP := - PACKAGE_SEP := -
PACKAGE_FULL_NAME := $(PACKAGE_NAME)$(PACKAGE_SEP)$(PACKAGE_LBL) PACKAGE_FULL_NAME := $(PACKAGE_NAME)$(PACKAGE_SEP)$(PACKAGE_LBL)

View File

@ -127,15 +127,24 @@ isEmpty(TOOLS_DIR) {
} }
# Set the default name of the application # Set the default name of the application
isEmpty(GCS_SMALL_NAME):GCS_SMALL_NAME = openpilotgcs isEmpty(GCS_SMALL_NAME):GCS_SMALL_NAME = gcs
isEmpty(GCS_BIG_NAME) { isEmpty(GCS_BIG_NAME) {
GCS_BIG_NAME = "OpenPilot GCS" GCS_BIG_NAME = GCS
} else { } else {
# Requote for safety and because of QTBUG-46224 # Requote for safety and because of QTBUG-46224
GCS_BIG_NAME = "$$GCS_BIG_NAME" GCS_BIG_NAME = "$$GCS_BIG_NAME"
} }
isEmpty(ORG_SMALL_NAME):ORG_SMALL_NAME = unknown
isEmpty(ORG_BIG_NAME) {
ORG_BIG_NAME = Unknown
} else {
# Requote for safety and because of QTBUG-46224
ORG_BIG_NAME = "$$ORG_BIG_NAME"
}
macx { macx {
GCS_APP_TARGET = $$GCS_BIG_NAME GCS_APP_TARGET = $$GCS_BIG_NAME
GCS_PATH = $$GCS_BUILD_TREE/$${GCS_APP_TARGET}.app/Contents GCS_PATH = $$GCS_BUILD_TREE/$${GCS_APP_TARGET}.app/Contents

View File

@ -22,6 +22,7 @@ LIBS *= -l$$qtLibraryName(ExtensionSystem) -l$$qtLibraryName(Aggregation)
DEFINES += PLUGIN_REL_PATH=$$shell_quote(\"$$relative_path($$GCS_PLUGIN_PATH, $$GCS_APP_PATH)\") DEFINES += PLUGIN_REL_PATH=$$shell_quote(\"$$relative_path($$GCS_PLUGIN_PATH, $$GCS_APP_PATH)\")
DEFINES += GCS_NAME=$$shell_quote(\"$$GCS_BIG_NAME\") DEFINES += GCS_NAME=$$shell_quote(\"$$GCS_BIG_NAME\")
DEFINES += ORG_BIG_NAME=$$shell_quote(\"$$ORG_BIG_NAME\")
win32 { win32 {
RC_FILE = librepilotgcs.rc RC_FILE = librepilotgcs.rc

View File

@ -45,7 +45,7 @@
openpilotgcs -reset -config-file ./MyOpenPilotGCS.xml openpilotgcs -reset -config-file ./MyOpenPilotGCS.xml
[/code] [/code]
Relative paths are relative to <install dir>/share/openpilotgcs/default_configurations/ Relative paths are relative to <install dir>/share/openpilotgcs/configurations/
The specified file will be used to load the factory defaults from but only when the user settings are empty. The specified file will be used to load the factory defaults from but only when the user settings are empty.
If the user settings are not empty the file will not be used. If the user settings are not empty the file will not be used.
@ -112,11 +112,11 @@ const int OptionIndent = 4;
const int DescriptionIndent = 24; const int DescriptionIndent = 24;
const QLatin1String APP_NAME(GCS_NAME); const QLatin1String APP_NAME(GCS_NAME);
const QLatin1String ORG_NAME("OpenPilot"); const QLatin1String ORG_NAME(ORG_BIG_NAME);
const QLatin1String CORE_PLUGIN_NAME("Core"); const QLatin1String CORE_PLUGIN_NAME("Core");
const char *DEFAULT_CONFIG_FILENAME = "OpenPilotGCS.xml"; const char *DEFAULT_CONFIG_FILENAME = "default.xml";
const char *fixedOptionsC = " [OPTION]... [FILE]...\n" const char *fixedOptionsC = " [OPTION]... [FILE]...\n"
"Options:\n" "Options:\n"
@ -342,7 +342,7 @@ AppOptionValues parseCommandLine(SharedTools::QtSingleApplication &app,
void loadFactoryDefaults(QSettings &settings, AppOptionValues &appOptionValues) void loadFactoryDefaults(QSettings &settings, AppOptionValues &appOptionValues)
{ {
QDir directory(Utils::GetDataPath() + QString("default_configurations")); QDir directory(Utils::GetDataPath() + QString("configurations"));
qDebug() << "Looking for factory defaults configuration files in:" << directory.absolutePath(); qDebug() << "Looking for factory defaults configuration files in:" << directory.absolutePath();

View File

@ -63,6 +63,7 @@
#include <extensionsystem/pluginmanager.h> #include <extensionsystem/pluginmanager.h>
#include "dialogs/iwizard.h" #include "dialogs/iwizard.h"
#include <utils/pathchooser.h> #include <utils/pathchooser.h>
#include <utils/pathutils.h>
#include <utils/stylehelper.h> #include <utils/stylehelper.h>
#include <utils/xmlconfig.h> #include <utils/xmlconfig.h>
#include "version_info/version_info.h" #include "version_info/version_info.h"
@ -285,21 +286,9 @@ void MainWindow::extensionsInitialized()
QString MainWindow::loadStyleSheet(QString fileName) QString MainWindow::loadStyleSheet(QString fileName)
{ {
// Let's use QFile and point to a resource...
QDir dir(QCoreApplication::applicationDirPath());
#ifdef Q_OS_MAC
dir.cdUp();
dir.cd("Resources");
#else
dir.cdUp();
dir.cd("share");
dir.cd("openpilotgcs");
#endif
dir.cd("stylesheets");
QString style; QString style;
// ...to open the file // ...to open the file
QFile file(dir.absolutePath() + QDir::separator() + fileName); QFile file(Utils::GetDataPath() + QString("stylesheets/") + fileName);
qDebug() << "Loading style sheet file" << file.fileName(); qDebug() << "Loading style sheet file" << file.fileName();
if (file.open(QFile::ReadOnly)) { if (file.open(QFile::ReadOnly)) {
// QTextStream... // QTextStream...

View File

@ -2,7 +2,7 @@ include(../../openpilotgcs.pri)
TEMPLATE = aux TEMPLATE = aux
DATACOLLECTIONS = cloudconfig default_configurations dials models pfd sounds diagrams mapicons stylesheets DATACOLLECTIONS = cloudconfig configurations dials models pfd sounds diagrams mapicons stylesheets
equals(copydata, 1) { equals(copydata, 1) {
for(dir, DATACOLLECTIONS) { for(dir, DATACOLLECTIONS) {

View File

@ -16,7 +16,7 @@ DEB_REV := 1
ifeq ($(DEB_DIST), trusty) ifeq ($(DEB_DIST), trusty)
DEB_REV := $(DEB_REV)$(DEB_DIST)1 DEB_REV := $(DEB_REV)$(DEB_DIST)1
endif endif
DEB_NAME := $(OP_SMALL_NAME) DEB_NAME := $(ORG_SMALL_NAME)
DEB_ORIG_SRC := $(PACKAGE_DIR)/$(DEB_NAME)_$(UPSTREAM_VER).orig.tar.gz DEB_ORIG_SRC := $(PACKAGE_DIR)/$(DEB_NAME)_$(UPSTREAM_VER).orig.tar.gz
DEB_PACKAGE_DIR := $(PACKAGE_DIR)/$(DEB_NAME)-$(UPSTREAM_VER) DEB_PACKAGE_DIR := $(PACKAGE_DIR)/$(DEB_NAME)-$(UPSTREAM_VER)
DEB_ARCH := $(shell dpkg --print-architecture) DEB_ARCH := $(shell dpkg --print-architecture)
@ -102,8 +102,8 @@ install:
$(V1) $(INSTALL) $(BUILD_DIR)/$(GCS_SMALL_NAME)_$(GCS_BUILD_CONF)/bin/$(GCS_SMALL_NAME) $(DESTDIR)$(bindir) $(V1) $(INSTALL) $(BUILD_DIR)/$(GCS_SMALL_NAME)_$(GCS_BUILD_CONF)/bin/$(GCS_SMALL_NAME) $(DESTDIR)$(bindir)
$(V1) $(INSTALL) $(BUILD_DIR)/$(GCS_SMALL_NAME)_$(GCS_BUILD_CONF)/lib/$(GCS_SMALL_NAME) $(DESTDIR)$(libdir) $(V1) $(INSTALL) $(BUILD_DIR)/$(GCS_SMALL_NAME)_$(GCS_BUILD_CONF)/lib/$(GCS_SMALL_NAME) $(DESTDIR)$(libdir)
$(V1) $(INSTALL) $(BUILD_DIR)/$(GCS_SMALL_NAME)_$(GCS_BUILD_CONF)/share/$(GCS_SMALL_NAME) $(DESTDIR)$(datadir) $(V1) $(INSTALL) $(BUILD_DIR)/$(GCS_SMALL_NAME)_$(GCS_BUILD_CONF)/share/$(GCS_SMALL_NAME) $(DESTDIR)$(datadir)
$(V1) $(INSTALL) -T $(ROOT_DIR)/package/linux/openpilot.desktop $(DESTDIR)$(datadir)/applications/$(OP_SMALL_NAME).desktop $(V1) $(INSTALL) -T $(ROOT_DIR)/package/linux/openpilot.desktop $(DESTDIR)$(datadir)/applications/$(ORG_SMALL_NAME).desktop
$(V1) sed -i -e 's/openpilotgcs/$(GCS_SMALL_NAME)/g;s/OpenPilot GCS/$(GCS_BIG_NAME)/g' $(DESTDIR)$(datadir)/applications/$(OP_SMALL_NAME).desktop $(V1) sed -i -e 's/openpilotgcs/$(GCS_SMALL_NAME)/g;s/OpenPilot GCS/$(GCS_BIG_NAME)/g' $(DESTDIR)$(datadir)/applications/$(ORG_SMALL_NAME).desktop
$(V1) $(INSTALL) -T $(ROOT_DIR)/package/linux/openpilot.png $(DESTDIR)$(datadir)/pixmaps/$(OP_SMALL_NAME).png $(V1) $(INSTALL) -T $(ROOT_DIR)/package/linux/openpilot.png $(DESTDIR)$(datadir)/pixmaps/$(ORG_SMALL_NAME).png

View File

@ -24,7 +24,7 @@ endif
$(VERSION_CMD) \ $(VERSION_CMD) \
--template='$(NSIS_TEMPLATE)' \ --template='$(NSIS_TEMPLATE)' \
--outfile='$(NSIS_HEADER)' \ --outfile='$(NSIS_HEADER)' \
OP_BIG_NAME='$(OP_BIG_NAME)' \ ORG_BIG_NAME='$(ORG_BIG_NAME)' \
GCS_BIG_NAME='$(GCS_BIG_NAME)' \ GCS_BIG_NAME='$(GCS_BIG_NAME)' \
GCS_SMALL_NAME='$(GCS_SMALL_NAME)' \ GCS_SMALL_NAME='$(GCS_SMALL_NAME)' \
PACKAGE_LBL='$(PACKAGE_LBL)' \ PACKAGE_LBL='$(PACKAGE_LBL)' \

View File

@ -42,10 +42,10 @@
!define AEROSIMRC_TREE "${GCS_BUILD_TREE}\misc\AeroSIM-RC" !define AEROSIMRC_TREE "${GCS_BUILD_TREE}\misc\AeroSIM-RC"
; Default installation folder ; Default installation folder
InstallDir "$PROGRAMFILES\${OP_BIG_NAME}" InstallDir "$PROGRAMFILES\${ORG_BIG_NAME}"
; Get installation folder from registry if available ; Get installation folder from registry if available
InstallDirRegKey HKLM "Software\${OP_BIG_NAME}" "Install Location" InstallDirRegKey HKLM "Software\${ORG_BIG_NAME}" "Install Location"
;-------------------------------- ;--------------------------------
; Version information ; Version information
@ -114,7 +114,7 @@
; Remember the installer language ; Remember the installer language
!define MUI_LANGDLL_REGISTRY_ROOT "HKCU" !define MUI_LANGDLL_REGISTRY_ROOT "HKCU"
!define MUI_LANGDLL_REGISTRY_KEY "Software\${OP_BIG_NAME}" !define MUI_LANGDLL_REGISTRY_KEY "Software\${ORG_BIG_NAME}"
!define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language" !define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"
!define MUI_LANGDLL_ALWAYSSHOW !define MUI_LANGDLL_ALWAYSSHOW
@ -255,28 +255,28 @@ SectionEnd
Section "Shortcuts" InSecShortcuts Section "Shortcuts" InSecShortcuts
; Create desktop and start menu shortcuts ; Create desktop and start menu shortcuts
SetOutPath "$INSTDIR" SetOutPath "$INSTDIR"
CreateDirectory "$SMPROGRAMS\${OP_BIG_NAME}" CreateDirectory "$SMPROGRAMS\${ORG_BIG_NAME}"
CreateShortCut "$SMPROGRAMS\${OP_BIG_NAME}\${GCS_BIG_NAME}.lnk" "$INSTDIR\bin\${GCS_SMALL_NAME}.exe" \ CreateShortCut "$SMPROGRAMS\${ORG_BIG_NAME}\${GCS_BIG_NAME}.lnk" "$INSTDIR\bin\${GCS_SMALL_NAME}.exe" \
"" "$INSTDIR\bin\${GCS_SMALL_NAME}.exe" 0 "" "" "${PRODUCT_NAME} ${PRODUCT_VERSION}. ${BUILD_DESCRIPTION}" "" "$INSTDIR\bin\${GCS_SMALL_NAME}.exe" 0 "" "" "${PRODUCT_NAME} ${PRODUCT_VERSION}. ${BUILD_DESCRIPTION}"
CreateShortCut "$SMPROGRAMS\${OP_BIG_NAME}\${GCS_BIG_NAME} (clean configuration).lnk" "$INSTDIR\bin\${GCS_SMALL_NAME}.exe" \ CreateShortCut "$SMPROGRAMS\${ORG_BIG_NAME}\${GCS_BIG_NAME} (clean configuration).lnk" "$INSTDIR\bin\${GCS_SMALL_NAME}.exe" \
"-reset" "$INSTDIR\bin\${GCS_SMALL_NAME}.exe" 0 "" "" "${PRODUCT_NAME} ${PRODUCT_VERSION}. ${BUILD_DESCRIPTION}" "-reset" "$INSTDIR\bin\${GCS_SMALL_NAME}.exe" 0 "" "" "${PRODUCT_NAME} ${PRODUCT_VERSION}. ${BUILD_DESCRIPTION}"
CreateShortCut "$SMPROGRAMS\${OP_BIG_NAME}\OpenPilot License.lnk" "$INSTDIR\LICENSE.txt" \ CreateShortCut "$SMPROGRAMS\${ORG_BIG_NAME}\OpenPilot License.lnk" "$INSTDIR\LICENSE.txt" \
"" "$INSTDIR\bin\${GCS_SMALL_NAME}.exe" 0 "" "$INSTDIR\bin\${GCS_SMALL_NAME}.exe" 0
CreateShortCut "$SMPROGRAMS\${OP_BIG_NAME}\OpenPilot ReadMe.lnk" "$INSTDIR\README.txt" \ CreateShortCut "$SMPROGRAMS\${ORG_BIG_NAME}\OpenPilot ReadMe.lnk" "$INSTDIR\README.txt" \
"" "$INSTDIR\bin\${GCS_SMALL_NAME}.exe" 0 "" "$INSTDIR\bin\${GCS_SMALL_NAME}.exe" 0
CreateShortCut "$SMPROGRAMS\${OP_BIG_NAME}\OpenPilot ReleaseNotes.lnk" "$INSTDIR\WHATSNEW.txt" \ CreateShortCut "$SMPROGRAMS\${ORG_BIG_NAME}\OpenPilot ReleaseNotes.lnk" "$INSTDIR\WHATSNEW.txt" \
"" "$INSTDIR\bin\${GCS_SMALL_NAME}.exe" 0 "" "$INSTDIR\bin\${GCS_SMALL_NAME}.exe" 0
CreateShortCut "$SMPROGRAMS\${OP_BIG_NAME}\OpenPilot Milestones.lnk" "$INSTDIR\MILESTONES.txt" \ CreateShortCut "$SMPROGRAMS\${ORG_BIG_NAME}\OpenPilot Milestones.lnk" "$INSTDIR\MILESTONES.txt" \
"" "$INSTDIR\bin\${GCS_SMALL_NAME}.exe" 0 "" "$INSTDIR\bin\${GCS_SMALL_NAME}.exe" 0
CreateShortCut "$SMPROGRAMS\${OP_BIG_NAME}\OpenPilot Website.lnk" "http://www.librepilot.org" \ CreateShortCut "$SMPROGRAMS\${ORG_BIG_NAME}\OpenPilot Website.lnk" "http://www.librepilot.org" \
"" "$INSTDIR\bin\${GCS_SMALL_NAME}.exe" 0 "" "$INSTDIR\bin\${GCS_SMALL_NAME}.exe" 0
CreateShortCut "$SMPROGRAMS\${OP_BIG_NAME}\OpenPilot Wiki.lnk" "http://wiki.openpilot.org" \ CreateShortCut "$SMPROGRAMS\${ORG_BIG_NAME}\OpenPilot Wiki.lnk" "http://wiki.openpilot.org" \
"" "$INSTDIR\bin\${GCS_SMALL_NAME}.exe" 0 "" "$INSTDIR\bin\${GCS_SMALL_NAME}.exe" 0
CreateShortCut "$SMPROGRAMS\${OP_BIG_NAME}\OpenPilot Forums.lnk" "http://forums.librepilot.org" \ CreateShortCut "$SMPROGRAMS\${ORG_BIG_NAME}\OpenPilot Forums.lnk" "http://forums.librepilot.org" \
"" "$INSTDIR\bin\${GCS_SMALL_NAME}.exe" 0 "" "$INSTDIR\bin\${GCS_SMALL_NAME}.exe" 0
CreateShortCut "$DESKTOP\${GCS_BIG_NAME}.lnk" "$INSTDIR\bin\${GCS_SMALL_NAME}.exe" \ CreateShortCut "$DESKTOP\${GCS_BIG_NAME}.lnk" "$INSTDIR\bin\${GCS_SMALL_NAME}.exe" \
"" "$INSTDIR\bin\${GCS_SMALL_NAME}.exe" 0 "" "" "${PRODUCT_NAME} ${PRODUCT_VERSION}. ${BUILD_DESCRIPTION}" "" "$INSTDIR\bin\${GCS_SMALL_NAME}.exe" 0 "" "" "${PRODUCT_NAME} ${PRODUCT_VERSION}. ${BUILD_DESCRIPTION}"
CreateShortCut "$SMPROGRAMS\${OP_BIG_NAME}\Uninstall.lnk" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\Uninstall.exe" 0 CreateShortCut "$SMPROGRAMS\${ORG_BIG_NAME}\Uninstall.lnk" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\Uninstall.exe" 0
SectionEnd SectionEnd
Section ; create uninstall info Section ; create uninstall info
@ -284,15 +284,15 @@ Section ; create uninstall info
WriteRegStr HKCU "Software\OpenPilot" "Install Location" $INSTDIR WriteRegStr HKCU "Software\OpenPilot" "Install Location" $INSTDIR
; Write the uninstall keys for Windows ; Write the uninstall keys for Windows
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${OP_BIG_NAME}" "DisplayName" "${GCS_BIG_NAME}" WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${ORG_BIG_NAME}" "DisplayName" "${GCS_BIG_NAME}"
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${OP_BIG_NAME}" "UninstallString" '"$INSTDIR\Uninstall.exe"' WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${ORG_BIG_NAME}" "UninstallString" '"$INSTDIR\Uninstall.exe"'
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${OP_BIG_NAME}" "DisplayIcon" '"$INSTDIR\bin\${GCS_SMALL_NAME}.exe"' WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${ORG_BIG_NAME}" "DisplayIcon" '"$INSTDIR\bin\${GCS_SMALL_NAME}.exe"'
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${OP_BIG_NAME}" "Publisher" "LibrePilot Team" WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${ORG_BIG_NAME}" "Publisher" "LibrePilot Team"
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${OP_BIG_NAME}" "URLInfoAbout" "http://www.librepilot.org" WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${ORG_BIG_NAME}" "URLInfoAbout" "http://www.librepilot.org"
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${OP_BIG_NAME}" "HelpLink" "http://wiki.openpilot.org" WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${ORG_BIG_NAME}" "HelpLink" "http://wiki.openpilot.org"
WriteRegDWORD HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${OP_BIG_NAME}" "EstimatedSize" 100600 WriteRegDWORD HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${ORG_BIG_NAME}" "EstimatedSize" 100600
WriteRegDWORD HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${OP_BIG_NAME}" "NoModify" 1 WriteRegDWORD HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${ORG_BIG_NAME}" "NoModify" 1
WriteRegDWORD HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${OP_BIG_NAME}" "NoRepair" 1 WriteRegDWORD HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${ORG_BIG_NAME}" "NoRepair" 1
; Create uninstaller ; Create uninstaller
WriteUninstaller "$INSTDIR\Uninstall.exe" WriteUninstaller "$INSTDIR\Uninstall.exe"
@ -344,14 +344,14 @@ Section "un.${GCS_BIG_NAME}" UnSecProgram
RMDir /rebootok "$INSTDIR" RMDir /rebootok "$INSTDIR"
; Remove registry keys ; Remove registry keys
DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${OP_BIG_NAME}" DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${ORG_BIG_NAME}"
DeleteRegKey HKCU "Software\${OP_BIG_NAME}" DeleteRegKey HKCU "Software\${ORG_BIG_NAME}"
; Remove shortcuts, if any ; Remove shortcuts, if any
SetShellVarContext all SetShellVarContext all
Delete /rebootok "$DESKTOP\${GCS_BIG_NAME}.lnk" Delete /rebootok "$DESKTOP\${GCS_BIG_NAME}.lnk"
Delete /rebootok "$SMPROGRAMS\${OP_BIG_NAME}\*" Delete /rebootok "$SMPROGRAMS\${ORG_BIG_NAME}\*"
RMDir /rebootok "$SMPROGRAMS\${OP_BIG_NAME}" RMDir /rebootok "$SMPROGRAMS\${ORG_BIG_NAME}"
SectionEnd SectionEnd
Section "un.Maps cache" UnSecCache Section "un.Maps cache" UnSecCache

View File

@ -12,7 +12,7 @@
# #
; Some names, paths and constants ; Some names, paths and constants
!define OP_BIG_NAME "${OP_BIG_NAME}" !define ORG_BIG_NAME "${ORG_BIG_NAME}"
!define GCS_BIG_NAME "${GCS_BIG_NAME}" !define GCS_BIG_NAME "${GCS_BIG_NAME}"
!define GCS_SMALL_NAME "${GCS_SMALL_NAME}" !define GCS_SMALL_NAME "${GCS_SMALL_NAME}"
!define PACKAGE_LBL "${PACKAGE_LBL}" !define PACKAGE_LBL "${PACKAGE_LBL}"