Skip to content

Commit

Permalink
Merge pull request #1535 from Squirrel/fix_deployment_tool_install_check
Browse files Browse the repository at this point in the history
Fix deployment tool install check
  • Loading branch information
anaisbetts committed Aug 24, 2020
2 parents aa6136c + f2a32b4 commit fa569a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Setup/MachineInstaller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ bool directoryExists(wchar_t* path) {
bool MachineInstaller::ShouldSilentInstall()
{
// Figure out the package name from our own EXE name
// The name consist of [$pkgName]DeploymentTool.exe
wchar_t ourFile[MAX_PATH];
HMODULE hMod = GetModuleHandle(NULL);
GetModuleFileName(hMod, ourFile, _countof(ourFile));

CString fullPath = CString(ourFile);
CString pkgName = CString(ourFile + fullPath.ReverseFind(L'\\'));
pkgName.Replace(L".exe", L"");
pkgName.Replace(L"DeploymentTool.exe", L"");

wchar_t installFolder[MAX_PATH];

Expand Down

0 comments on commit fa569a3

Please sign in to comment.