aboutsummaryrefslogtreecommitdiff
path: root/src/ca/RemoveFoldersEx.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ca/RemoveFoldersEx.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ca/RemoveFoldersEx.cpp b/src/ca/RemoveFoldersEx.cpp
index 194c6662..ce64c2c2 100644
--- a/src/ca/RemoveFoldersEx.cpp
+++ b/src/ca/RemoveFoldersEx.cpp
@@ -2,7 +2,7 @@
2 2
3#include "precomp.h" 3#include "precomp.h"
4 4
5LPCWSTR vcsRemoveFolderExQuery = L"SELECT `WixRemoveFolderEx`, `Component_`, `Property`, `InstallMode` FROM `WixRemoveFolderEx`"; 5LPCWSTR vcsRemoveFolderExQuery = L"SELECT `Wix4RemoveFolderEx`, `Component_`, `Property`, `InstallMode` FROM `Wix4RemoveFolderEx`";
6enum eRemoveFolderExQuery { rfqId = 1, rfqComponent, rfqProperty, feqMode }; 6enum eRemoveFolderExQuery { rfqId = 1, rfqComponent, rfqProperty, feqMode };
7 7
8static HRESULT RecursePath( 8static HRESULT RecursePath(
@@ -81,10 +81,10 @@ static HRESULT RecursePath(
81 81
82 // Add the row to remove any files and another row to remove the folder. 82 // Add the row to remove any files and another row to remove the folder.
83 hr = WcaAddTempRecord(phTable, phColumns, L"RemoveFile", NULL, 1, 5, L"RfxFiles", wzComponent, L"*.*", sczProperty, iMode); 83 hr = WcaAddTempRecord(phTable, phColumns, L"RemoveFile", NULL, 1, 5, L"RfxFiles", wzComponent, L"*.*", sczProperty, iMode);
84 ExitOnFailure(hr, "Failed to add row to remove all files for WixRemoveFolderEx row: %S under path:", wzId, wzPath); 84 ExitOnFailure(hr, "Failed to add row to remove all files for Wix4RemoveFolderEx row: %S under path:", wzId, wzPath);
85 85
86 hr = WcaAddTempRecord(phTable, phColumns, L"RemoveFile", NULL, 1, 5, L"RfxFolder", wzComponent, NULL, sczProperty, iMode); 86 hr = WcaAddTempRecord(phTable, phColumns, L"RemoveFile", NULL, 1, 5, L"RfxFolder", wzComponent, NULL, sczProperty, iMode);
87 ExitOnFailure(hr, "Failed to add row to remove folder for WixRemoveFolderEx row: %S under path: %S", wzId, wzPath); 87 ExitOnFailure(hr, "Failed to add row to remove folder for Wix4RemoveFolderEx row: %S under path: %S", wzId, wzPath);
88 88
89LExit: 89LExit:
90 if (INVALID_HANDLE_VALUE != hFind) 90 if (INVALID_HANDLE_VALUE != hFind)
@@ -122,15 +122,15 @@ extern "C" UINT WINAPI WixRemoveFoldersEx(
122 ExitOnFailure(hr, "Failed to initialize WixRemoveFoldersEx."); 122 ExitOnFailure(hr, "Failed to initialize WixRemoveFoldersEx.");
123 123
124 // anything to do? 124 // anything to do?
125 if (S_OK != WcaTableExists(L"WixRemoveFolderEx")) 125 if (S_OK != WcaTableExists(L"Wix4RemoveFolderEx"))
126 { 126 {
127 WcaLog(LOGMSG_STANDARD, "WixRemoveFolderEx table doesn't exist, so there are no folders to remove."); 127 WcaLog(LOGMSG_STANDARD, "Wix4RemoveFolderEx table doesn't exist, so there are no folders to remove.");
128 ExitFunction(); 128 ExitFunction();
129 } 129 }
130 130
131 // query and loop through all the remove folders exceptions 131 // query and loop through all the remove folders exceptions
132 hr = WcaOpenExecuteView(vcsRemoveFolderExQuery, &hView); 132 hr = WcaOpenExecuteView(vcsRemoveFolderExQuery, &hView);
133 ExitOnFailure(hr, "Failed to open view on WixRemoveFolderEx table"); 133 ExitOnFailure(hr, "Failed to open view on Wix4RemoveFolderEx table");
134 134
135 while (S_OK == (hr = WcaFetchRecord(hView, &hRec))) 135 while (S_OK == (hr = WcaFetchRecord(hView, &hRec)))
136 { 136 {
@@ -173,7 +173,7 @@ extern "C" UINT WINAPI WixRemoveFoldersEx(
173 { 173 {
174 hr = S_OK; 174 hr = S_OK;
175 } 175 }
176 ExitOnFailure(hr, "Failure occured while processing WixRemoveFolderEx table"); 176 ExitOnFailure(hr, "Failure occured while processing Wix4RemoveFolderEx table");
177 177
178LExit: 178LExit:
179 if (hColumns) 179 if (hColumns)