SkinInstaller: Remove [Rainmeter] entirely in installed layouts

This commit is contained in:
Birunthan Mohanathas 2013-03-08 18:10:23 +02:00
parent e4bc729a42
commit bb88e61682

View File

@ -814,17 +814,8 @@ bool CDialogInstall::InstallPackage()
error = !ExtractCurrentFile(targetPath); error = !ExtractCurrentFile(targetPath);
if (!error) if (!error)
{ {
// Remove user specific options // Clear the [Rainmeter] section.
const WCHAR* layout = targetPath.c_str(); WritePrivateProfileSection(L"Rainmeter", L"", targetPath.c_str());
WritePrivateProfileString(L"Rainmeter", L"SkinPath", NULL, layout);
WritePrivateProfileString(L"Rainmeter", L"Language", NULL, layout);
WritePrivateProfileString(L"Rainmeter", L"Logging", NULL, layout);
WritePrivateProfileString(L"Rainmeter", L"ConfigEditor", NULL, layout);
WritePrivateProfileString(L"Rainmeter", L"LogViewer", NULL, layout);
WritePrivateProfileString(L"Rainmeter", L"DisableDragging", NULL, layout);
WritePrivateProfileString(L"Rainmeter", L"DisableRDP", NULL, layout);
WritePrivateProfileString(L"Rainmeter", L"DisableVersionCheck", NULL, layout);
WritePrivateProfileString(L"Rainmeter", L"Debug", NULL, layout);
} }
} }
} }