Kaydet (Commit) 4042d9e0 authored tarafından Tor Lillqvist's avatar Tor Lillqvist Kaydeden (comit) Tor Lillqvist

Drop requirements needed only for Win9x support

Don't require and distribute unicows.dll and instmsia.exe (Windows
Installer 2.0 installer for Win9x). Drop the Win9x-specific code in
setup.exe. Do still require and distribute gdiplus.dll for Win2k
support (bnc#522833).
üst 91291b26
......@@ -58,7 +58,6 @@ ULFDIR:=.
.ENDIF # "$(WITH_LANG)"!=""
OBJFILES= $(OBJ)$/setup_main.obj \
$(OBJ)$/setup_a.obj \
$(OBJ)$/setup_w.obj
# --- Targets ------------------------------------------------------
......
......@@ -1321,9 +1321,7 @@ boolean SetupAppX::AlreadyRunning() const
const TCHAR sGUniqueName[] = TEXT( "Global\\_MSISETUP_{EA8130C1-8D3D-4338-9309-1A52D530D846}" );
const TCHAR sUniqueName[] = TEXT( "_MSISETUP_{EA8130C1-8D3D-4338-9309-1A52D530D846}" );
if ( IsWin9x() )
sMutexName = sUniqueName;
else if ( ( GetOSVersion() < 5 ) && ! IsTerminalServerInstalled() )
if ( ( GetOSVersion() < 5 ) && ! IsTerminalServerInstalled() )
sMutexName = sUniqueName;
else
sMutexName = sGUniqueName;
......@@ -1394,8 +1392,7 @@ void SetupAppX::Log( LPCTSTR pMessage, LPCTSTR pText ) const
if ( !bInit )
{
bInit = true;
if ( ! IsWin9x() )
_ftprintf( m_pLogFile, TEXT("%c"), 0xfeff );
_ftprintf( m_pLogFile, TEXT("%c"), 0xfeff );
_tsetlocale( LC_ALL, TEXT("") );
_ftprintf( m_pLogFile, TEXT("\nCodepage=%s\nMultiByte Codepage=[%d]\n"),
......@@ -1653,9 +1650,6 @@ boolean SetupAppX::GetCmdLineParameters( LPTSTR *pCmdLine )
//--------------------------------------------------------------------------
boolean SetupAppX::IsAdmin()
{
if ( IsWin9x() )
return true;
PSID aPsidAdmin;
SID_IDENTIFIER_AUTHORITY aAuthority = SECURITY_NT_AUTHORITY;
......
......@@ -63,7 +63,6 @@ SetupApp::SetupApp()
m_nOSVersion = sInfoOS.dwMajorVersion;
m_nMinorVersion = sInfoOS.dwMinorVersion;
m_bIsWin9x = ( VER_PLATFORM_WIN32_NT != sInfoOS.dwPlatformId );
m_bNeedReboot = false;
m_bAdministrative = false;
}
......@@ -88,14 +87,9 @@ extern "C" int __stdcall WinMain( HINSTANCE hInst, HINSTANCE, LPSTR, int )
GetVersionEx( &sInfoOS );
boolean bIsWin9x = ( VER_PLATFORM_WIN32_NT != sInfoOS.dwPlatformId );
SetupApp *pSetup;
if ( bIsWin9x )
pSetup = Create_SetupAppA();
else
pSetup = Create_SetupAppW();
pSetup = Create_SetupAppW();
try
{
......
......@@ -33,7 +33,6 @@ class SetupApp
{
DWORD m_nOSVersion;
DWORD m_nMinorVersion;
boolean m_bIsWin9x : 1;
boolean m_bNeedReboot : 1;
boolean m_bAdministrative : 1;
......@@ -57,7 +56,6 @@ public:
virtual void DisplayError( UINT nErr ) const = 0;
void SetError( UINT nErr ) { m_uiRet = nErr; }
boolean IsWin9x() const { return m_bIsWin9x; }
DWORD GetOSVersion() const { return m_nOSVersion; }
DWORD GetMinorVersion() const { return m_nMinorVersion; }
......@@ -68,7 +66,6 @@ public:
boolean NeedReboot() const { return m_bNeedReboot; }
};
SetupApp* Create_SetupAppA();
SetupApp* Create_SetupAppW();
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment