BUG: Fix issue #7800. Enable CPack to find the NSIS installer on Windows 2000.
This commit is contained in:
parent
5a82a0b108
commit
c3976b0283
|
@ -348,13 +348,17 @@ int cmCPackNSISGenerator::InitializeInternal()
|
||||||
"HKEY_LOCAL_MACHINE\\SOFTWARE\\NSIS", nsisPath,
|
"HKEY_LOCAL_MACHINE\\SOFTWARE\\NSIS", nsisPath,
|
||||||
cmsys::SystemTools::KeyWOW64_32) )
|
cmsys::SystemTools::KeyWOW64_32) )
|
||||||
{
|
{
|
||||||
cmCPackLogger
|
if ( !cmsys::SystemTools::ReadRegistryValue(
|
||||||
(cmCPackLog::LOG_ERROR,
|
"HKEY_LOCAL_MACHINE\\SOFTWARE\\NSIS", nsisPath) )
|
||||||
"Cannot find NSIS registry value. This is usually caused by NSIS "
|
{
|
||||||
"not being installed. Please install NSIS from "
|
cmCPackLogger
|
||||||
"http://nsis.sourceforge.net"
|
(cmCPackLog::LOG_ERROR,
|
||||||
<< std::endl);
|
"Cannot find NSIS registry value. This is usually caused by NSIS "
|
||||||
return 0;
|
"not being installed. Please install NSIS from "
|
||||||
|
"http://nsis.sourceforge.net"
|
||||||
|
<< std::endl);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
path.push_back(nsisPath);
|
path.push_back(nsisPath);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue