diff options
| author | Rob Mensching <rob@firegiant.com> | 2022-12-21 23:06:05 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2022-12-22 15:12:23 -0800 |
| commit | 8aafcc72550d89cc43dfcb81012abe8576709660 (patch) | |
| tree | f4417f9691b3df02ecd2ed237bbb60db91b14974 /src/burn/test/BurnUnitTest/RegistrationTest.cpp | |
| parent | 34692d57dcc693ec017dda1711f25adbc7759a1c (diff) | |
| download | wix-8aafcc72550d89cc43dfcb81012abe8576709660.tar.gz wix-8aafcc72550d89cc43dfcb81012abe8576709660.tar.bz2 wix-8aafcc72550d89cc43dfcb81012abe8576709660.zip | |
Register the InstallDate in Burn
Closes 7068
Diffstat (limited to 'src/burn/test/BurnUnitTest/RegistrationTest.cpp')
| -rw-r--r-- | src/burn/test/BurnUnitTest/RegistrationTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/burn/test/BurnUnitTest/RegistrationTest.cpp b/src/burn/test/BurnUnitTest/RegistrationTest.cpp index f95c011f..fc84511d 100644 --- a/src/burn/test/BurnUnitTest/RegistrationTest.cpp +++ b/src/burn/test/BurnUnitTest/RegistrationTest.cpp | |||
| @@ -111,6 +111,7 @@ namespace Bootstrapper | |||
| 111 | Assert::True(Directory::Exists(cacheDirectory), "Cache directory didn't exist."); | 111 | Assert::True(Directory::Exists(cacheDirectory), "Cache directory didn't exist."); |
| 112 | Assert::True(File::Exists(Path::Combine(cacheDirectory, gcnew String(L"setup.exe"))), "Bundle exe wasn't cached."); | 112 | Assert::True(File::Exists(Path::Combine(cacheDirectory, gcnew String(L"setup.exe"))), "Bundle exe wasn't cached."); |
| 113 | 113 | ||
| 114 | this->ValidateUninstallKeyString(L"InstallDate", DateTime::Now.ToString("yyyyMMdd")); | ||
| 114 | this->ValidateUninstallKeyResume(Int32(BURN_RESUME_MODE_ACTIVE)); | 115 | this->ValidateUninstallKeyResume(Int32(BURN_RESUME_MODE_ACTIVE)); |
| 115 | this->ValidateRunOnceKeyEntry(cacheExePath); | 116 | this->ValidateRunOnceKeyEntry(cacheExePath); |
| 116 | 117 | ||
| @@ -121,6 +122,7 @@ namespace Bootstrapper | |||
| 121 | // verify that registration was removed | 122 | // verify that registration was removed |
| 122 | Assert::False(Directory::Exists(cacheDirectory), "Cache directory wasn't removed."); | 123 | Assert::False(Directory::Exists(cacheDirectory), "Cache directory wasn't removed."); |
| 123 | 124 | ||
| 125 | this->ValidateUninstallKeyNull(L"InstallDate"); | ||
| 124 | this->ValidateUninstallKeyNull(L"Resume"); | 126 | this->ValidateUninstallKeyNull(L"Resume"); |
| 125 | this->ValidateRunOnceKeyString(TEST_BUNDLE_ID, nullptr); | 127 | this->ValidateRunOnceKeyString(TEST_BUNDLE_ID, nullptr); |
| 126 | } | 128 | } |
