Skip to content

Commit

Permalink
more installer/uninstaller refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
kjk committed Dec 29, 2018
1 parent 148a44a commit 435c17a
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 130 deletions.
14 changes: 12 additions & 2 deletions src/installer/InstUninstCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,22 @@ Color COLOR_MSG_OK(gCol5);
Color COLOR_MSG_INSTALLATION(gCol5);
Color COLOR_MSG_FAILED(gCol1);

InstUninstGlobals gInstUninstGlobals = {
false, /* bool silent */
false, /* bool showUsageAndQuit */
nullptr, /* WCHAR *installDir */
nullptr, /* WCHAR *firstError */
nullptr, /* HANDLE hThread */
false, /* bool success */
};


WCHAR* GetInstalledExePath() {
return path::Join(gGlobalData.installDir, EXENAME);
return path::Join(gInstUninstGlobals.installDir, EXENAME);
}

WCHAR* GetUninstallerPath() {
return path::Join(gGlobalData.installDir, L"uninstall.exe");
return path::Join(gInstUninstGlobals.installDir, L"uninstall.exe");
}

WCHAR* GetInstalledBrowserPluginPath() {
Expand Down
Loading

0 comments on commit 435c17a

Please sign in to comment.