Patch level :10.0 setup

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :
prova a riconoscere la versione di windows su cui sta installando ed eventualmente (win2000, win2003 termserv) usa come icona sul desktop quella a 256 colori


git-svn-id: svn://10.65.10.50/trunk@19597 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2009-11-10 10:22:16 +00:00
parent 2e7870b0ec
commit 3b7e08a64f

View File

@ -282,7 +282,7 @@ bool CampoSetup::CreateIcon(unsigned int csidl, const wxFileName& strExeFile, co
strPath += "/res/"; //se non trova l'icona del reseller prende quella standard in res
}
const int nPos = strIcon.Len()-4;
const int nPos = strIcon.Len() - 4;
switch (uInstallationType)
{
case it_server: strIcon.insert(nPos, "Srv"); break;
@ -291,6 +291,16 @@ bool CampoSetup::CreateIcon(unsigned int csidl, const wxFileName& strExeFile, co
}
strPath << strIcon;
//controlla se è in un sistema windows che richiede icone a 256 colori (win2000, win2003 termserv)
int nVersion = 0;
GetWinVer(NULL, 0, &nVersion);
if (nVersion == W2K || nVersion == W2003)
{
const int nPosCol = strIcon.Len() - 4;
strIcon.insert(nPosCol, "_256");
}
psl->SetIconLocation(strPath, 0);
// Query IShellLink for the IPersistFile interface for saving the