summaryrefslogtreecommitdiff
path: root/setup_native
diff options
context:
space:
mode:
Diffstat (limited to 'setup_native')
-rw-r--r--setup_native/source/win32/customactions/quickstarter/remove_quickstart_link.cxx10
-rw-r--r--setup_native/source/win32/customactions/shellextensions/checkdirectory.cxx8
2 files changed, 9 insertions, 9 deletions
diff --git a/setup_native/source/win32/customactions/quickstarter/remove_quickstart_link.cxx b/setup_native/source/win32/customactions/quickstarter/remove_quickstart_link.cxx
index 68faed45aac7..c600329ee659 100644
--- a/setup_native/source/win32/customactions/quickstarter/remove_quickstart_link.cxx
+++ b/setup_native/source/win32/customactions/quickstarter/remove_quickstart_link.cxx
@@ -21,19 +21,19 @@
#include <shlobj.h>
-extern "C" __declspec(dllexport) UINT __stdcall RemoveQuickstarterLink( MSIHANDLE hMSI )
+extern "C" __declspec(dllexport) UINT __stdcall RemoveQuickstarterLink(MSIHANDLE hMSI)
{
- WCHAR szStartupPath[MAX_PATH];
+ WCHAR szStartupPath[MAX_PATH];
- if ( SHGetSpecialFolderPathW( nullptr, szStartupPath, CSIDL_STARTUP, FALSE ) )
+ if (SHGetSpecialFolderPathW(nullptr, szStartupPath, CSIDL_STARTUP, FALSE))
{
std::wstring sQuickstartLinkPath = szStartupPath;
sQuickstartLinkPath += L"\\";
- sQuickstartLinkPath += GetQuickstarterLinkNameW( hMSI );
+ sQuickstartLinkPath += GetQuickstarterLinkNameW(hMSI);
sQuickstartLinkPath += L".lnk";
- DeleteFileW( sQuickstartLinkPath.c_str() );
+ DeleteFileW(sQuickstartLinkPath.c_str());
}
return ERROR_SUCCESS;
diff --git a/setup_native/source/win32/customactions/shellextensions/checkdirectory.cxx b/setup_native/source/win32/customactions/shellextensions/checkdirectory.cxx
index 5c68659950ef..8e4166b0d95d 100644
--- a/setup_native/source/win32/customactions/shellextensions/checkdirectory.cxx
+++ b/setup_native/source/win32/customactions/shellextensions/checkdirectory.cxx
@@ -37,7 +37,7 @@ extern "C" __declspec(dllexport) UINT __stdcall CheckInstallDirectory(MSIHANDLE
// unsetting all properties
- UnsetMsiPropertyW( handle, L"DIRECTORY_NOT_EMPTY" );
+ UnsetMsiPropertyW(handle, L"DIRECTORY_NOT_EMPTY");
// 1. Searching for file setup.ini
@@ -49,11 +49,11 @@ extern "C" __declspec(dllexport) UINT __stdcall CheckInstallDirectory(MSIHANDLE
// std::wstring mystr = L"Searching for " + sSetupIniPath;
// MessageBoxW(NULL, mystr.c_str(), L"DEBUG", MB_OK);
- if ( IsValidHandle(hdl) )
+ if (IsValidHandle(hdl))
{
// setup.ini found -> directory cannot be used for installation.
- SetMsiPropertyW( handle, L"DIRECTORY_NOT_EMPTY", L"1" );
- SetMsiErrorCode( MSI_ERROR_DIRECTORY_NOT_EMPTY );
+ SetMsiPropertyW(handle, L"DIRECTORY_NOT_EMPTY", L"1");
+ SetMsiErrorCode(MSI_ERROR_DIRECTORY_NOT_EMPTY);
// std::wstring notEmptyStr = L"Directory is not empty. Please choose another installation directory.";
// std::wstring notEmptyTitle = L"Directory not empty";
// MessageBoxW(NULL, notEmptyStr.c_str(), notEmptyTitle.c_str(), MB_OK);