added test code for auto run on Windows
This commit is contained in:
parent
9c78e71358
commit
03e39405de
3 changed files with 28 additions and 12 deletions
|
@ -37,6 +37,17 @@ CLlconServerDlg::CLlconServerDlg ( CServer* pNServP,
|
||||||
setupUi ( this );
|
setupUi ( this );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// TEST
|
||||||
|
#ifdef _WIN32
|
||||||
|
/*
|
||||||
|
QSettings RegSettings ( "HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",
|
||||||
|
QSettings::NativeFormat );
|
||||||
|
RegSettings.setValue ( "llcon server", QCoreApplication::applicationFilePath() );
|
||||||
|
*/
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// Add help text to controls -----------------------------------------------
|
// Add help text to controls -----------------------------------------------
|
||||||
// client list
|
// client list
|
||||||
ListViewClients->setWhatsThis ( tr ( "<b>Client List:</b> The client list "
|
ListViewClients->setWhatsThis ( tr ( "<b>Client List:</b> The client list "
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
#include <qmenubar.h>
|
#include <qmenubar.h>
|
||||||
#include <qlayout.h>
|
#include <qlayout.h>
|
||||||
#include <qsystemtrayicon.h>
|
#include <qsystemtrayicon.h>
|
||||||
|
#include <qsettings.h>
|
||||||
#include "global.h"
|
#include "global.h"
|
||||||
#include "server.h"
|
#include "server.h"
|
||||||
#include "multicolorled.h"
|
#include "multicolorled.h"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
; llcon NSIS installer script
|
; llcon NSIS installer script
|
||||||
|
|
||||||
!define APP_NAME "Llcon"
|
!define APP_NAME "Llcon"
|
||||||
|
!define REG_AUTO_RUN_NAME "llcon server"
|
||||||
!define APP_EXE "llcon.exe"
|
!define APP_EXE "llcon.exe"
|
||||||
!define UNINSTALL_EXE "Uninstall.exe"
|
!define UNINSTALL_EXE "Uninstall.exe"
|
||||||
!define INSTALLER_NAME "llconinstaller.exe"
|
!define INSTALLER_NAME "llconinstaller.exe"
|
||||||
|
@ -73,6 +74,9 @@ Section "Uninstall"
|
||||||
|
|
||||||
DeleteRegKey HKLM "${UNINST_KEY}"
|
DeleteRegKey HKLM "${UNINST_KEY}"
|
||||||
|
|
||||||
|
; the software may have written an auto run entry in the registry, remove it
|
||||||
|
DeleteRegKey HKEY_CURRENT_USER "Software\Microsoft\Windows\CurrentVersion\Run\${REG_AUTO_RUN_NAME}"
|
||||||
|
|
||||||
Delete "$DESKTOP\${APP_NAME}.lnk"
|
Delete "$DESKTOP\${APP_NAME}.lnk"
|
||||||
Delete "$SMPROGRAMS\${APP_NAME}\${APP_NAME}.lnk"
|
Delete "$SMPROGRAMS\${APP_NAME}\${APP_NAME}.lnk"
|
||||||
Delete "$SMPROGRAMS\${APP_NAME}\${APP_NAME} server.lnk"
|
Delete "$SMPROGRAMS\${APP_NAME}\${APP_NAME} server.lnk"
|
||||||
|
|
Loading…
Reference in a new issue