ReadRegStr $R0 HKLM "${MyRegPath}" "ExecutableName"
${IfThen} "$R0" == "" ${|} StrCpy $R0 "LameXP.exe" ${|}
+ ExecWait '"$INSTDIR\$R0" --uninstall'
Delete /REBOOTOK "$INSTDIR\$R0"
!insertmacro CleanUpFiles /REBOOTOK
RMDir "$INSTDIR"
-
+
; --------------
; Registry
; --------------
#define VER_LAMEXP_MINOR_LO 2
#define VER_LAMEXP_TYPE RC
#define VER_LAMEXP_PATCH 4
-#define VER_LAMEXP_BUILD 1812
+#define VER_LAMEXP_BUILD 1815
#define VER_LAMEXP_CONFG 1700
///////////////////////////////////////////////////////////////////////////////
#include "Model_FileList.h"
#include "Model_AudioFile.h"
#include "Encoder_Abstract.h"
+#include "ShellIntegration.h"
//MUitls
#include <MUtils/Global.h>
qDebug(" ");
}
+ //Uninstall?
+ if(arguments.contains("uninstall"))
+ {
+ qWarning("Un-install: Removing LameXP shell integration...");
+ ShellIntegration::remove(false);
+ return EXIT_SUCCESS;
+ }
+
//Detect CPU capabilities
const MUtils::CPUFetaures::cpu_info_t cpuFeatures = MUtils::CPUFetaures::detect();
qDebug(" CPU vendor id : %s (Intel=%s)", cpuFeatures.vendor, MUTILS_BOOL2STR(cpuFeatures.intel));
}
//Kill application?
- for(int i = 0; i < argc; i++)
+ if(arguments.contains("kill") || arguments.contains("force-kill"))
{
- if(arguments.contains("kill") || arguments.contains("force-kill"))
- {
- return EXIT_SUCCESS;
- }
+ return EXIT_SUCCESS;
}
//Self-test