Usposobil sem nastavljanje sistemskih servisov med namestitvijo.
Uredil sem nomenklaturo akcij po meri.
This commit is contained in:
parent
e83264f11d
commit
93ed14df64
@ -2,7 +2,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: MSICALib\n"
|
"Project-Id-Version: MSICALib\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2014-03-14 11:11+0100\n"
|
"POT-Creation-Date: 2014-03-20 18:56+0100\n"
|
||||||
"PO-Revision-Date: \n"
|
"PO-Revision-Date: \n"
|
||||||
"Last-Translator: Simon Rozman <simon.rozman@amebis.si>\n"
|
"Last-Translator: Simon Rozman <simon.rozman@amebis.si>\n"
|
||||||
"Language-Team: Amebis, d. o. o., Kamnik <simon.rozman@amebis.si>\n"
|
"Language-Team: Amebis, d. o. o., Kamnik <simon.rozman@amebis.si>\n"
|
||||||
@ -17,15 +17,11 @@ msgstr ""
|
|||||||
"X-Poedit-SearchPath-0: MSIBuild\n"
|
"X-Poedit-SearchPath-0: MSIBuild\n"
|
||||||
|
|
||||||
# Windows charset for this language (decimal)
|
# Windows charset for this language (decimal)
|
||||||
#: MSIBuild/En.Win32.Debug.Error-2.idtx:3
|
#: MSIBuild/En.Win32.Debug.Error-2.idtx:3 MSIBuild/En.x64.Debug.Error-2.idtx:3
|
||||||
#: MSIBuild/En.Win32.Release.Error-2.idtx:3
|
|
||||||
#: MSIBuild/En.x64.Debug.Error-2.idtx:3 MSIBuild/En.x64.Release.Error-2.idtx:3
|
|
||||||
msgid "1252"
|
msgid "1252"
|
||||||
msgstr "1250"
|
msgstr "1250"
|
||||||
|
|
||||||
#: MSIBuild/En.Win32.Debug.Error-2.idtx:5
|
#: MSIBuild/En.Win32.Debug.Error-2.idtx:5 MSIBuild/En.x64.Debug.Error-2.idtx:5
|
||||||
#: MSIBuild/En.Win32.Release.Error-2.idtx:5
|
|
||||||
#: MSIBuild/En.x64.Debug.Error-2.idtx:5 MSIBuild/En.x64.Release.Error-2.idtx:5
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"Error [2] creating scheduled task list. Please, contact your support "
|
"Error [2] creating scheduled task list. Please, contact your support "
|
||||||
"personnel."
|
"personnel."
|
||||||
@ -33,10 +29,17 @@ msgstr ""
|
|||||||
"Pri pripravi seznama razvrščenih opravil je prišlo do napake [2]. Obrnite se "
|
"Pri pripravi seznama razvrščenih opravil je prišlo do napake [2]. Obrnite se "
|
||||||
"na svojo tehnično službo."
|
"na svojo tehnično službo."
|
||||||
|
|
||||||
|
#: MSIBuild/En.Win32.Debug.Error-2.idtx:17
|
||||||
|
#: MSIBuild/En.x64.Debug.Error-2.idtx:17
|
||||||
|
msgid ""
|
||||||
|
"Error [3] changing service \"[2]\" start type. Please, contact your support "
|
||||||
|
"personnel."
|
||||||
|
msgstr ""
|
||||||
|
"Pri nastavljanju servisa »[2]« je prišlo do napake [3]. Obrnite se na svojo "
|
||||||
|
"tehnično službo."
|
||||||
|
|
||||||
#: MSIBuild/En.Win32.Debug.Error-2.idtx:11
|
#: MSIBuild/En.Win32.Debug.Error-2.idtx:11
|
||||||
#: MSIBuild/En.Win32.Release.Error-2.idtx:11
|
|
||||||
#: MSIBuild/En.x64.Debug.Error-2.idtx:11
|
#: MSIBuild/En.x64.Debug.Error-2.idtx:11
|
||||||
#: MSIBuild/En.x64.Release.Error-2.idtx:11
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"Error [3] creating \"[2]\" scheduled task. Please, contact your support "
|
"Error [3] creating \"[2]\" scheduled task. Please, contact your support "
|
||||||
"personnel."
|
"personnel."
|
||||||
@ -44,9 +47,7 @@ msgstr ""
|
|||||||
"Pri stvaritvi razporejenega opravila »[2]« je prišlo do napake [3]. Obrnite "
|
"Pri stvaritvi razporejenega opravila »[2]« je prišlo do napake [3]. Obrnite "
|
||||||
"se na svojo tehnično službo."
|
"se na svojo tehnično službo."
|
||||||
|
|
||||||
#: MSIBuild/En.Win32.Debug.Error-2.idtx:9
|
#: MSIBuild/En.Win32.Debug.Error-2.idtx:9 MSIBuild/En.x64.Debug.Error-2.idtx:9
|
||||||
#: MSIBuild/En.Win32.Release.Error-2.idtx:9
|
|
||||||
#: MSIBuild/En.x64.Debug.Error-2.idtx:9 MSIBuild/En.x64.Release.Error-2.idtx:9
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"Error [3] deleting \"[2]\" file. Please, contact your support personnel."
|
"Error [3] deleting \"[2]\" file. Please, contact your support personnel."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -54,9 +55,7 @@ msgstr ""
|
|||||||
"tehnično službo."
|
"tehnično službo."
|
||||||
|
|
||||||
#: MSIBuild/En.Win32.Debug.Error-2.idtx:12
|
#: MSIBuild/En.Win32.Debug.Error-2.idtx:12
|
||||||
#: MSIBuild/En.Win32.Release.Error-2.idtx:12
|
|
||||||
#: MSIBuild/En.x64.Debug.Error-2.idtx:12
|
#: MSIBuild/En.x64.Debug.Error-2.idtx:12
|
||||||
#: MSIBuild/En.x64.Release.Error-2.idtx:12
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"Error [3] deleting \"[2]\" scheduled task. Please, contact your support "
|
"Error [3] deleting \"[2]\" scheduled task. Please, contact your support "
|
||||||
"personnel."
|
"personnel."
|
||||||
@ -65,9 +64,7 @@ msgstr ""
|
|||||||
"se na svojo tehnično službo."
|
"se na svojo tehnično službo."
|
||||||
|
|
||||||
#: MSIBuild/En.Win32.Debug.Error-2.idtx:13
|
#: MSIBuild/En.Win32.Debug.Error-2.idtx:13
|
||||||
#: MSIBuild/En.Win32.Release.Error-2.idtx:13
|
|
||||||
#: MSIBuild/En.x64.Debug.Error-2.idtx:13
|
#: MSIBuild/En.x64.Debug.Error-2.idtx:13
|
||||||
#: MSIBuild/En.x64.Release.Error-2.idtx:13
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"Error [3] enabling/disabling \"[2]\" scheduled task. Please, contact your "
|
"Error [3] enabling/disabling \"[2]\" scheduled task. Please, contact your "
|
||||||
"support personnel."
|
"support personnel."
|
||||||
@ -76,9 +73,7 @@ msgstr ""
|
|||||||
"Obrnite se na svojo tehnično službo."
|
"Obrnite se na svojo tehnično službo."
|
||||||
|
|
||||||
#: MSIBuild/En.Win32.Debug.Error-2.idtx:15
|
#: MSIBuild/En.Win32.Debug.Error-2.idtx:15
|
||||||
#: MSIBuild/En.Win32.Release.Error-2.idtx:15
|
|
||||||
#: MSIBuild/En.x64.Debug.Error-2.idtx:15
|
#: MSIBuild/En.x64.Debug.Error-2.idtx:15
|
||||||
#: MSIBuild/En.x64.Release.Error-2.idtx:15
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"Error [3] installing certificate to certificate store \"[2]\". Please, "
|
"Error [3] installing certificate to certificate store \"[2]\". Please, "
|
||||||
"contact your support personnel."
|
"contact your support personnel."
|
||||||
@ -86,9 +81,7 @@ msgstr ""
|
|||||||
"Pri nameščanju digitalnega potrdila v shrambo »[2]« je prišlo do napake [3]. "
|
"Pri nameščanju digitalnega potrdila v shrambo »[2]« je prišlo do napake [3]. "
|
||||||
"Obrnite se na svojo tehnično službo."
|
"Obrnite se na svojo tehnično službo."
|
||||||
|
|
||||||
#: MSIBuild/En.Win32.Debug.Error-2.idtx:7
|
#: MSIBuild/En.Win32.Debug.Error-2.idtx:7 MSIBuild/En.x64.Debug.Error-2.idtx:7
|
||||||
#: MSIBuild/En.Win32.Release.Error-2.idtx:7
|
|
||||||
#: MSIBuild/En.x64.Debug.Error-2.idtx:7 MSIBuild/En.x64.Release.Error-2.idtx:7
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"Error [3] reading from \"[2]\" task list file. Please, contact your support "
|
"Error [3] reading from \"[2]\" task list file. Please, contact your support "
|
||||||
"personnel."
|
"personnel."
|
||||||
@ -97,9 +90,7 @@ msgstr ""
|
|||||||
"Obrnite se na svojo tehnično službo."
|
"Obrnite se na svojo tehnično službo."
|
||||||
|
|
||||||
#: MSIBuild/En.Win32.Debug.Error-2.idtx:16
|
#: MSIBuild/En.Win32.Debug.Error-2.idtx:16
|
||||||
#: MSIBuild/En.Win32.Release.Error-2.idtx:16
|
|
||||||
#: MSIBuild/En.x64.Debug.Error-2.idtx:16
|
#: MSIBuild/En.x64.Debug.Error-2.idtx:16
|
||||||
#: MSIBuild/En.x64.Release.Error-2.idtx:16
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"Error [3] removing certificate from certificate store \"[2]\". Please, "
|
"Error [3] removing certificate from certificate store \"[2]\". Please, "
|
||||||
"contact your support personnel."
|
"contact your support personnel."
|
||||||
@ -107,18 +98,30 @@ msgstr ""
|
|||||||
"Pri odstranjevanju digitalnega potrdila iz shrambe »[2]« je prišlo do napake "
|
"Pri odstranjevanju digitalnega potrdila iz shrambe »[2]« je prišlo do napake "
|
||||||
"[3]. Obrnite se na svojo tehnično službo."
|
"[3]. Obrnite se na svojo tehnično službo."
|
||||||
|
|
||||||
#: MSIBuild/En.Win32.Debug.Error-2.idtx:8
|
#: MSIBuild/En.Win32.Debug.Error-2.idtx:8 MSIBuild/En.x64.Debug.Error-2.idtx:8
|
||||||
#: MSIBuild/En.Win32.Release.Error-2.idtx:8
|
|
||||||
#: MSIBuild/En.x64.Debug.Error-2.idtx:8 MSIBuild/En.x64.Release.Error-2.idtx:8
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"Error [3] setting \"[2]\" parameter. Please, contact your support personnel."
|
"Error [3] setting \"[2]\" parameter. Please, contact your support personnel."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Pri nastavljanju parametra »[2]« je prišlo do napake [3]. Obrnite se na "
|
"Pri nastavljanju parametra »[2]« je prišlo do napake [3]. Obrnite se na "
|
||||||
"svojo tehnično službo."
|
"svojo tehnično službo."
|
||||||
|
|
||||||
#: MSIBuild/En.Win32.Debug.Error-2.idtx:6
|
#: MSIBuild/En.Win32.Debug.Error-2.idtx:18
|
||||||
#: MSIBuild/En.Win32.Release.Error-2.idtx:6
|
#: MSIBuild/En.x64.Debug.Error-2.idtx:18
|
||||||
#: MSIBuild/En.x64.Debug.Error-2.idtx:6 MSIBuild/En.x64.Release.Error-2.idtx:6
|
msgid ""
|
||||||
|
"Error [3] starting service \"[2]\". Please, contact your support personnel."
|
||||||
|
msgstr ""
|
||||||
|
"Pri zagonu servisa »[2]« je prišlo do napake [3]. Obrnite se na svojo "
|
||||||
|
"tehnično službo."
|
||||||
|
|
||||||
|
#: MSIBuild/En.Win32.Debug.Error-2.idtx:19
|
||||||
|
#: MSIBuild/En.x64.Debug.Error-2.idtx:19
|
||||||
|
msgid ""
|
||||||
|
"Error [3] stopping service \"[2]\". Please, contact your support personnel."
|
||||||
|
msgstr ""
|
||||||
|
"Pri zaustavitvi servisa »[2]« je prišlo do napake [3]. Obrnite se na svojo "
|
||||||
|
"tehnično službo."
|
||||||
|
|
||||||
|
#: MSIBuild/En.Win32.Debug.Error-2.idtx:6 MSIBuild/En.x64.Debug.Error-2.idtx:6
|
||||||
msgid ""
|
msgid ""
|
||||||
"Error [3] writing to \"[2]\" task list file. Please, contact your support "
|
"Error [3] writing to \"[2]\" task list file. Please, contact your support "
|
||||||
"personnel."
|
"personnel."
|
||||||
@ -127,9 +130,7 @@ msgstr ""
|
|||||||
"Obrnite se na svojo tehnično službo."
|
"Obrnite se na svojo tehnično službo."
|
||||||
|
|
||||||
#: MSIBuild/En.Win32.Debug.Error-2.idtx:14
|
#: MSIBuild/En.Win32.Debug.Error-2.idtx:14
|
||||||
#: MSIBuild/En.Win32.Release.Error-2.idtx:14
|
|
||||||
#: MSIBuild/En.x64.Debug.Error-2.idtx:14
|
#: MSIBuild/En.x64.Debug.Error-2.idtx:14
|
||||||
#: MSIBuild/En.x64.Release.Error-2.idtx:14
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"Error [4] copying \"[2]\" scheduled task to \"[3]\". Please, contact your "
|
"Error [4] copying \"[2]\" scheduled task to \"[3]\". Please, contact your "
|
||||||
"support personnel."
|
"support personnel."
|
||||||
@ -138,9 +139,7 @@ msgstr ""
|
|||||||
"Obrnite se na svojo tehnično službo."
|
"Obrnite se na svojo tehnično službo."
|
||||||
|
|
||||||
#: MSIBuild/En.Win32.Debug.Error-2.idtx:10
|
#: MSIBuild/En.Win32.Debug.Error-2.idtx:10
|
||||||
#: MSIBuild/En.Win32.Release.Error-2.idtx:10
|
|
||||||
#: MSIBuild/En.x64.Debug.Error-2.idtx:10
|
#: MSIBuild/En.x64.Debug.Error-2.idtx:10
|
||||||
#: MSIBuild/En.x64.Release.Error-2.idtx:10
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"Error [4] moving \"[2]\" file to \"[3]\". Please, contact your support "
|
"Error [4] moving \"[2]\" file to \"[3]\". Please, contact your support "
|
||||||
"personnel."
|
"personnel."
|
||||||
@ -148,9 +147,7 @@ msgstr ""
|
|||||||
"Pri premikanju datoteke »[2]« v »[3]« je prišlo do napake [4]. Obrnite se na "
|
"Pri premikanju datoteke »[2]« v »[3]« je prišlo do napake [4]. Obrnite se na "
|
||||||
"svojo tehnično službo."
|
"svojo tehnično službo."
|
||||||
|
|
||||||
#: MSIBuild/En.Win32.Debug.Error-2.idtx:4
|
#: MSIBuild/En.Win32.Debug.Error-2.idtx:4 MSIBuild/En.x64.Debug.Error-2.idtx:4
|
||||||
#: MSIBuild/En.Win32.Release.Error-2.idtx:4
|
|
||||||
#: MSIBuild/En.x64.Debug.Error-2.idtx:4 MSIBuild/En.x64.Release.Error-2.idtx:4
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"Error opening installation package. Please, contact your support personnel."
|
"Error opening installation package. Please, contact your support personnel."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
42
OpSvc.cpp
42
OpSvc.cpp
@ -29,27 +29,35 @@ HRESULT COpSvcSetStart::Execute(CSession *pSession)
|
|||||||
// Open the specified service.
|
// Open the specified service.
|
||||||
hService = ::OpenServiceW(hSCM, m_sValue, SERVICE_QUERY_CONFIG | SERVICE_CHANGE_CONFIG);
|
hService = ::OpenServiceW(hSCM, m_sValue, SERVICE_QUERY_CONFIG | SERVICE_CHANGE_CONFIG);
|
||||||
if (hService) {
|
if (hService) {
|
||||||
QUERY_SERVICE_CONFIG sc;
|
QUERY_SERVICE_CONFIG *sc;
|
||||||
DWORD dwSize;
|
DWORD dwSize;
|
||||||
|
HANDLE hHeap = ::GetProcessHeap();
|
||||||
|
|
||||||
// Query current service config.
|
::QueryServiceConfig(hService, NULL, 0, &dwSize);
|
||||||
if (::QueryServiceConfig(hService, &sc, sizeof(sc), &dwSize)) {
|
sc = (QUERY_SERVICE_CONFIG*)::HeapAlloc(hHeap, 0, dwSize);
|
||||||
if (sc.dwStartType != m_dwStartType) {
|
if (sc) {
|
||||||
// Set requested service start.
|
// Query current service config.
|
||||||
if (::ChangeServiceConfig(hService, SERVICE_NO_CHANGE, m_dwStartType, SERVICE_NO_CHANGE, NULL, NULL, NULL, NULL, NULL, NULL, NULL)) {
|
if (::QueryServiceConfig(hService, sc, dwSize, &dwSize)) {
|
||||||
if (pSession->m_bRollbackEnabled) {
|
if (sc->dwStartType != m_dwStartType) {
|
||||||
// Order rollback action to revert the service start change.
|
// Set requested service start.
|
||||||
pSession->m_olRollback.AddHead(new COpSvcSetStart(m_sValue, sc.dwStartType));
|
if (::ChangeServiceConfig(hService, SERVICE_NO_CHANGE, m_dwStartType, SERVICE_NO_CHANGE, NULL, NULL, NULL, NULL, NULL, NULL, NULL)) {
|
||||||
}
|
if (pSession->m_bRollbackEnabled) {
|
||||||
|
// Order rollback action to revert the service start change.
|
||||||
|
pSession->m_olRollback.AddHead(new COpSvcSetStart(m_sValue, sc->dwStartType));
|
||||||
|
}
|
||||||
|
dwError = NO_ERROR;
|
||||||
|
} else
|
||||||
|
dwError = ::GetLastError();
|
||||||
|
} else {
|
||||||
|
// Service is already configured to start the requested way.
|
||||||
dwError = NO_ERROR;
|
dwError = NO_ERROR;
|
||||||
} else
|
}
|
||||||
dwError = ::GetLastError();
|
} else
|
||||||
} else {
|
dwError = ::GetLastError();
|
||||||
// Service is already configured to start the requested way.
|
|
||||||
dwError = NO_ERROR;
|
::HeapFree(hHeap, 0, sc);
|
||||||
}
|
|
||||||
} else
|
} else
|
||||||
dwError = ::GetLastError();
|
dwError = ERROR_OUTOFMEMORY;
|
||||||
} else
|
} else
|
||||||
dwError = ::GetLastError();
|
dwError = ::GetLastError();
|
||||||
} else
|
} else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user