Skip to content

Commit fa569a3

Browse files
authored
Merge pull request #1535 from Squirrel/fix_deployment_tool_install_check
Fix deployment tool install check
2 parents aa6136c + f2a32b4 commit fa569a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Setup/MachineInstaller.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ bool directoryExists(wchar_t* path) {
2222
bool MachineInstaller::ShouldSilentInstall()
2323
{
2424
// Figure out the package name from our own EXE name
25+
// The name consist of [$pkgName]DeploymentTool.exe
2526
wchar_t ourFile[MAX_PATH];
2627
HMODULE hMod = GetModuleHandle(NULL);
2728
GetModuleFileName(hMod, ourFile, _countof(ourFile));
2829

2930
CString fullPath = CString(ourFile);
3031
CString pkgName = CString(ourFile + fullPath.ReverseFind(L'\\'));
31-
pkgName.Replace(L".exe", L"");
32+
pkgName.Replace(L"DeploymentTool.exe", L"");
3233

3334
wchar_t installFolder[MAX_PATH];
3435

0 commit comments

Comments
 (0)