ZRCOLA_ >> PRODUCT_
This commit is contained in:
parent
5f339d0d51
commit
8d9af61d5e
BIN
ZRCola/ZRCola.rc
BIN
ZRCola/ZRCola.rc
Binary file not shown.
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
wxZRColaAbout::wxZRColaAbout(wxWindow* parent) : wxZRColaAboutBase(parent)
|
wxZRColaAbout::wxZRColaAbout(wxWindow* parent) : wxZRColaAboutBase(parent)
|
||||||
{
|
{
|
||||||
m_staticTextVersion->SetLabelText(wxT(ZRCOLA_VERSION_STR));
|
m_staticTextVersion->SetLabelText(wxT(PRODUCT_VERSION_STR));
|
||||||
|
|
||||||
m_staticTextCopyright->SetLabelText(wxString::Format(_("© 2004-%s ZRC SAZU"), wxT(ZRCOLA_BUILD_YEAR_STR)));
|
m_staticTextCopyright->SetLabelText(wxString::Format(_("© 2004-%s ZRC SAZU"), wxT(PRODUCT_BUILD_YEAR_STR)));
|
||||||
}
|
}
|
||||||
|
@ -43,12 +43,12 @@ bool ZRColaApp::OnInit()
|
|||||||
// To compensate migration to non-advertised shortcut, do the Microsoft Installer's feature completeness check manually.
|
// To compensate migration to non-advertised shortcut, do the Microsoft Installer's feature completeness check manually.
|
||||||
// If execution got this far in the first place (EXE and dependent DLLs are present and loadable).
|
// If execution got this far in the first place (EXE and dependent DLLs are present and loadable).
|
||||||
// Furthermore, this increments program usage counter.
|
// Furthermore, this increments program usage counter.
|
||||||
if (::MsiQueryFeatureState(_T(ZRCOLA_VERSION_GUID), _T("featZRCola")) != INSTALLSTATE_UNKNOWN)
|
if (::MsiQueryFeatureState(_T(PRODUCT_VERSION_GUID), _T("featZRCola")) != INSTALLSTATE_UNKNOWN)
|
||||||
::MsiUseFeature(_T(ZRCOLA_VERSION_GUID), _T("featZRCola"));
|
::MsiUseFeature(_T(PRODUCT_VERSION_GUID), _T("featZRCola"));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Initialize configuration.
|
// Initialize configuration.
|
||||||
wxConfigBase *cfgPrev = wxConfigBase::Set(new wxConfig(wxT(ZRCOLA_CFG_APPLICATION), wxT(ZRCOLA_CFG_VENDOR)));
|
wxConfigBase *cfgPrev = wxConfigBase::Set(new wxConfig(wxT(PRODUCT_CFG_APPLICATION), wxT(PRODUCT_CFG_VENDOR)));
|
||||||
if (cfgPrev) wxDELETE(cfgPrev);
|
if (cfgPrev) wxDELETE(cfgPrev);
|
||||||
|
|
||||||
if (!wxApp::OnInit())
|
if (!wxApp::OnInit())
|
||||||
@ -65,7 +65,7 @@ bool ZRColaApp::OnInit()
|
|||||||
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
// Create global event.
|
// Create global event.
|
||||||
m_running.attach(::CreateEvent(NULL, FALSE, FALSE, _T(ZRCOLA_CFG_APPLICATION) _T("{BBDE7AAD-29B6-4B83-ADA1-92AFA81A0883}")));
|
m_running.attach(::CreateEvent(NULL, FALSE, FALSE, _T(PRODUCT_CFG_APPLICATION) _T("{BBDE7AAD-29B6-4B83-ADA1-92AFA81A0883}")));
|
||||||
if (::GetLastError() == ERROR_ALREADY_EXISTS) {
|
if (::GetLastError() == ERROR_ALREADY_EXISTS) {
|
||||||
// ZRCola is already running. Find its window.
|
// ZRCola is already running. Find its window.
|
||||||
HWND okno = ::FindWindow(_T("wxWindowNR"), _("ZRCola"));
|
HWND okno = ::FindWindow(_T("wxWindowNR"), _("ZRCola"));
|
||||||
|
@ -358,7 +358,7 @@ void wxZRColaFrame::OnHelpShortcuts(wxCommandEvent& event)
|
|||||||
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
// Search and try to launch installed PDF.
|
// Search and try to launch installed PDF.
|
||||||
INSTALLSTATE pdf_is = ::MsiGetComponentPath(_T(ZRCOLA_VERSION_GUID), _T("{68AC2C38-10E2-41A3-B92C-844C03FFDF6A}"), pdf_path);
|
INSTALLSTATE pdf_is = ::MsiGetComponentPath(_T(PRODUCT_VERSION_GUID), _T("{68AC2C38-10E2-41A3-B92C-844C03FFDF6A}"), pdf_path);
|
||||||
if ((pdf_is == INSTALLSTATE_LOCAL || pdf_is == INSTALLSTATE_SOURCE) &&
|
if ((pdf_is == INSTALLSTATE_LOCAL || pdf_is == INSTALLSTATE_SOURCE) &&
|
||||||
wxFileExists(pdf_path) &&
|
wxFileExists(pdf_path) &&
|
||||||
(int)::ShellExecute(GetHWND(), NULL, pdf_path.c_str(), NULL, NULL, SW_SHOWNORMAL) > 32) return;
|
(int)::ShellExecute(GetHWND(), NULL, pdf_path.c_str(), NULL, NULL, SW_SHOWNORMAL) > 32) return;
|
||||||
|
Binary file not shown.
@ -88,7 +88,7 @@ int _tmain(int argc, _TCHAR *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Initialize configuration.
|
// Initialize configuration.
|
||||||
wxConfigBase *cfgPrev = wxConfigBase::Set(new wxConfig(wxT(ZRCOLA_CFG_APPLICATION), wxT(ZRCOLA_CFG_VENDOR)));
|
wxConfigBase *cfgPrev = wxConfigBase::Set(new wxConfig(wxT(PRODUCT_CFG_APPLICATION), wxT(PRODUCT_CFG_VENDOR)));
|
||||||
if (cfgPrev) wxDELETE(cfgPrev);
|
if (cfgPrev) wxDELETE(cfgPrev);
|
||||||
|
|
||||||
// Initialize locale.
|
// Initialize locale.
|
||||||
|
Binary file not shown.
@ -28,9 +28,9 @@
|
|||||||
// Product version as a single DWORD
|
// Product version as a single DWORD
|
||||||
// Note: Used for version comparison within C/C++ code.
|
// Note: Used for version comparison within C/C++ code.
|
||||||
//
|
//
|
||||||
#define UPDATER_PRODUCT_VERSION ZRCOLA_VERSION
|
#define UPDATER_PRODUCT_VERSION PRODUCT_VERSION
|
||||||
|
|
||||||
//
|
//
|
||||||
// Human readable product version and build year for UI
|
// Human readable product version and build year for UI
|
||||||
//
|
//
|
||||||
#define UPDATER_PRODUCT_VERSION_STR ZRCOLA_VERSION_STR
|
#define UPDATER_PRODUCT_VERSION_STR PRODUCT_VERSION_STR
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
// Product version as a single DWORD
|
// Product version as a single DWORD
|
||||||
// Note: Used for version comparison within C/C++ code.
|
// Note: Used for version comparison within C/C++ code.
|
||||||
//
|
//
|
||||||
#define ZRCOLA_VERSION 0x01ff1400
|
#define PRODUCT_VERSION 0x01ff1400
|
||||||
|
|
||||||
//
|
//
|
||||||
// Product version by components
|
// Product version by components
|
||||||
@ -31,31 +31,31 @@
|
|||||||
// thus we need to specify major, minor and other version components
|
// thus we need to specify major, minor and other version components
|
||||||
// separately.
|
// separately.
|
||||||
//
|
//
|
||||||
#define ZRCOLA_VERSION_MAJ 1
|
#define PRODUCT_VERSION_MAJ 1
|
||||||
#define ZRCOLA_VERSION_MIN 255
|
#define PRODUCT_VERSION_MIN 255
|
||||||
#define ZRCOLA_VERSION_REV 20
|
#define PRODUCT_VERSION_REV 20
|
||||||
#define ZRCOLA_VERSION_BUILD 0
|
#define PRODUCT_VERSION_BUILD 0
|
||||||
|
|
||||||
//
|
//
|
||||||
// Human readable product version and build year for UI
|
// Human readable product version and build year for UI
|
||||||
//
|
//
|
||||||
#define ZRCOLA_VERSION_STR "2.0-beta11"
|
#define PRODUCT_VERSION_STR "2.0-beta11"
|
||||||
#define ZRCOLA_BUILD_YEAR_STR "2016"
|
#define PRODUCT_BUILD_YEAR_STR "2016"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Numerical version presentation for ProductVersion propery in
|
// Numerical version presentation for ProductVersion propery in
|
||||||
// MSI packages (syntax: N.N[.N[.N]])
|
// MSI packages (syntax: N.N[.N[.N]])
|
||||||
//
|
//
|
||||||
#define ZRCOLA_VERSION_INST "1.255.20"
|
#define PRODUCT_VERSION_INST "1.255.20"
|
||||||
|
|
||||||
//
|
//
|
||||||
// The product code for ProductCode property in MSI packages
|
// The product code for ProductCode property in MSI packages
|
||||||
// Replace with new on every version change, regardless how minor it is.
|
// Replace with new on every version change, regardless how minor it is.
|
||||||
//
|
//
|
||||||
#define ZRCOLA_VERSION_GUID "{C949BB90-B6B2-4268-95DA-0C4533595E1A}"
|
#define PRODUCT_VERSION_GUID "{C949BB90-B6B2-4268-95DA-0C4533595E1A}"
|
||||||
|
|
||||||
//
|
//
|
||||||
// The product vendor and application name for configuration keeping.
|
// The product vendor and application name for configuration keeping.
|
||||||
//
|
//
|
||||||
#define ZRCOLA_CFG_VENDOR "Amebis"
|
#define PRODUCT_CFG_VENDOR "Amebis"
|
||||||
#define ZRCOLA_CFG_APPLICATION "ZRCola"
|
#define PRODUCT_CFG_APPLICATION "ZRCola"
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user