Changes to Rainstaller and RainThemes to support new version checking method.

Minor fix to a couple of typos in the version checking code
Changed "Update Available" to "New Version Available"
This commit is contained in:
jsmorley 2010-06-21 17:14:56 +00:00
parent 8785516c09
commit 8a47a191d7
7 changed files with 9 additions and 10 deletions

View File

@ -28,8 +28,8 @@ LANGUAGE LANG_FINNISH, SUBLANG_DEFAULT
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,3,0,443
PRODUCTVERSION 1,3,0,443
FILEVERSION 1,3,0,444
PRODUCTVERSION 1,3,0,444
FILEFLAGSMASK 0x17L
#ifdef _DEBUG
FILEFLAGS 0x1L

View File

@ -2278,7 +2278,7 @@ void CRainmeter::ShowContextMenu(POINT pos, CMeterWindow* meterWindow)
if (m_NewVersion)
{
configPos += 1;
InsertMenu(subMenu, 2, MF_BYPOSITION | MF_ENABLED, ID_CONTEXT_NEW_VERSION, L"Update Available");
InsertMenu(subMenu, 2, MF_BYPOSITION | MF_ENABLED, ID_CONTEXT_NEW_VERSION, L"New Version Available");
}
// Create a menu for all active configs

View File

@ -32,13 +32,13 @@
#define MAKE_VER(major, minor1, minor2) major * 1000000 + minor1 * 1000 + minor2
#define APPNAME L"Rainmeter"
#define APPVERSION L"1.2"
#define APPVERSION L"1.3"
#ifdef _WIN64
#define APPBITS L"(64-bit)"
#else
#define APPBITS L"(32-bit)"
#endif
#define RAINMETER_VERSION MAKE_VER(1, 2, 0) //newvercheck
#define RAINMETER_VERSION MAKE_VER(1, 3, 0)
enum PLATFORM
{

View File

@ -467,7 +467,7 @@ LRESULT CALLBACK CTrayWindow::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
command += L"\\Addons\\RainThemes\\RainThemes.exe\"";
LSExecute(tray->GetWindow(), command.c_str(), SW_SHOWNORMAL);
}
else if(wParam == ID_CONTEXT_NEW_VERSION) //newvercheck
else if(wParam == ID_CONTEXT_NEW_VERSION)
{
LSExecute(NULL, L"http://rainmeter.net/RainCMS/", SW_SHOWNORMAL);
}

View File

@ -28,7 +28,7 @@ extern CRainmeter* Rainmeter;
void CheckVersion(void* dummy)
{
double version = 0.0;
int version = 0;
HINTERNET hRootHandle = InternetOpen(L"Rainmeter",
INTERNET_OPEN_TYPE_PRECONFIG,
@ -65,7 +65,6 @@ void CheckVersion(void* dummy)
version += atoi(verMinor1.c_str()) * 1000;
version += atoi(verMinor2.c_str());
}
else
{

View File

@ -58,7 +58,7 @@
#define ID_CONTEXT_MANAGESKINS 4047
#define ID_CONTEXT_SKINMENU_MONITOR_PRIMARY 4048
#define ID_CONTEXT_SKINMENU_MONITOR_AUTOSELECT 4049
#define ID_CONTEXT_NEW_VERSION 4050 //newvercheck
#define ID_CONTEXT_NEW_VERSION 4050
#define WM_QUERY_RAINMETER WM_APP + 1000

View File

@ -1,2 +1,2 @@
#pragma once
const int revision_number = 443;
const int revision_number = 444;