We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aa6136c + f2a32b4 commit fa569a3Copy full SHA for fa569a3
src/Setup/MachineInstaller.cpp
@@ -22,13 +22,14 @@ bool directoryExists(wchar_t* path) {
22
bool MachineInstaller::ShouldSilentInstall()
23
{
24
// Figure out the package name from our own EXE name
25
+ // The name consist of [$pkgName]DeploymentTool.exe
26
wchar_t ourFile[MAX_PATH];
27
HMODULE hMod = GetModuleHandle(NULL);
28
GetModuleFileName(hMod, ourFile, _countof(ourFile));
29
30
CString fullPath = CString(ourFile);
31
CString pkgName = CString(ourFile + fullPath.ReverseFind(L'\\'));
- pkgName.Replace(L".exe", L"");
32
+ pkgName.Replace(L"DeploymentTool.exe", L"");
33
34
wchar_t installFolder[MAX_PATH];
35
0 commit comments