Lines Matching refs:TEXT

60 #define SECTION_SETUP       TEXT( "Setup" )
61 #define SECTION_LANGUAGE TEXT( "Languages" )
62 #define PRODUCT_NAME_VAR TEXT( "%PRODUCTNAME" )
63 #define PRODUCT_VERSION TEXT( "ProductVersion" )
68 #define PARAM_SETUP_USED TEXT( " SETUP_USED=1 " )
69 #define PARAM_PACKAGE TEXT( "/I " )
70 #define PARAM_MINOR_UPGRADE TEXT( "/FVOMUS " )
71 #define PARAM_ADMIN TEXT( "/A " )
72 #define PARAM_TRANSFORM TEXT( " TRANSFORMS=" )
73 #define PARAM_REBOOT TEXT( " REBOOT=Force" )
74 #define PARAM_PATCH TEXT( " /update " )
75 #define PARAM_REG_ALL_MSO_TYPES TEXT( "REGISTER_ALL_MSO_TYPES=1 " )
76 #define PARAM_REG_NO_MSO_TYPES TEXT( "REGISTER_NO_MSO_TYPES=1 " )
77 #define PARAM_SILENTINSTALL TEXT( " /Q" )
79 #define PARAM_RUNNING TEXT( "ignore_running" )
80 #define CMDLN_REG_ALL_MSO_TYPES TEXT( "msoreg=1" )
81 #define CMDLN_REG_NO_MSO_TYPES TEXT( "msoreg=0" )
83 #define ADVAPI32_DLL TEXT( "advapi32.dll" )
84 #define PROFILE_NAME TEXT( "setup.ini" )
86 #define RUNTIME_X64_NAME TEXT( "redist\\vcredist_x64.exe" )
87 #define RUNTIME_X86_NAME TEXT( "redist\\vcredist_x86.exe" )
89 #define PRODUCTCODE_X86 TEXT( "{9BE518E6-ECC6-35A9-88E4-87755C07200F}" )
91 #define PRODUCTCODE_X64 TEXT( "{5FCE6D76-F5DC-37AB-B2B8-22AB8CEDB1D4}" )
115 const TCHAR sMsiExe[] = TEXT( "\\msiexec.exe" );
116 const TCHAR sDelayReboot[] = TEXT( " /c:\"msiinst /delayreboot\"" );
117 const TCHAR sMsiQuiet[] = TEXT( " /q" );
118 const TCHAR sMemMapName[] = TEXT( "Global\\MsiErrorObject" );
187 Log( TEXT( "End: %s\n\r\n\r\n" ), _tasctime( pTime ) ); in ~SetupApp()
254 OutputDebugStringFormat( TEXT("Could not map view of file (%d).\n"), GetLastError() ); in Initialize()
257 … OutputDebugStringFormat( TEXT("Could not create file mapping object (%d).\n"), GetLastError() ); in Initialize()
259 Log( TEXT("Starting: %s\r\n"), m_pModuleFile ); in Initialize()
260 Log( TEXT(" CommandLine=<%s>\r\n"), m_pCmdLine ); in Initialize()
263 Log( TEXT(" Using quiet install mode\r\n") ); in Initialize()
268 Log( TEXT(" Begin: %s\n"), _tasctime( pTime ) ); in Initialize()
302 …StringCchPrintf( sBuf, 80, TEXT("ERROR: GetPrivateProfileSection(): GetLastError returned %u\r\n")… in GetProfileSection()
309 Log( TEXT( "ERROR: GetPrivateProfileSection() out of memory\r\n" ) ); in GetProfileSection()
313 Log( TEXT( " GetProfileSection read %s\r\n" ), pSection ); in GetProfileSection()
329 Log( TEXT( " Open ini file: <%s>\r\n" ), sProfilePath ); in ReadProfile()
343 … Log( TEXT( " Could not open inifile, copied ini file to: <%s>\r\n" ), sProfilePath ); in ReadProfile()
358 if ( lstrcmpi( TEXT( "database" ), pName ) == 0 ) in ReadProfile()
361 Log( TEXT( " Database = %s\r\n" ), pValue ); in ReadProfile()
363 else if ( lstrcmpi( TEXT( "msiversion" ), pName ) == 0 ) in ReadProfile()
366 Log( TEXT( " msiversion = %s\r\n" ), pValue ); in ReadProfile()
368 else if ( lstrcmpi( TEXT( "productname" ), pName ) == 0 ) in ReadProfile()
371 Log( TEXT( " productname = %s\r\n" ), pValue ); in ReadProfile()
374 else if ( lstrcmpi( TEXT( "upgradekey" ), pName ) == 0 ) in ReadProfile()
377 Log( TEXT( " upgradekey = %s\r\n" ), pValue ); in ReadProfile()
379 else if ( lstrcmpi( TEXT( "productversion" ), pName ) == 0 ) in ReadProfile()
382 Log( TEXT( " productversion = %s\r\n" ), pValue ); in ReadProfile()
384 else if ( lstrcmpi( TEXT( "productcode" ), pName ) == 0 ) in ReadProfile()
390 Log( TEXT( "Warning: unknown entry in profile <%s>\r\n" ), pName ); in ReadProfile()
398 Log( TEXT( "ERROR: incomplete 'Setup' section in profile\r\n" ) ); in ReadProfile()
416 if ( lstrcmpi( TEXT( "count" ), pName ) == 0 ) in ReadProfile()
418 Log( TEXT( " Languages = %s\r\n" ), pValue ); in ReadProfile()
436 Log( TEXT( " Language = %s\r\n" ), pValue ); in ReadProfile()
439 Log( TEXT( " Transform = %s\r\n" ), m_ppLanguageList[ i ]->m_pTransform ); in ReadProfile()
461 StringCchCopy( m_pPatchFiles, MAX_STR_LENGTH, TEXT("\"") ); in AddFileToPatchList()
464 StringCchCat( m_pPatchFiles, MAX_STR_LENGTH, TEXT(";") ); in AddFileToPatchList()
491 StringCchCat( pPattern, nPatternLen, TEXT("*.msp") ); in GetPatches()
509 StringCchCat( m_pPatchFiles, MAX_STR_LENGTH, TEXT("\"") ); in GetPatches()
661 Log( TEXT( " Info: found Language: %s\r\n" ), sString ); in ChooseLanguage()
677 Log( TEXT( "Warning: Language chosen with parameter -lang not found.\r\n" ) ); in ChooseLanguage()
682 Log( TEXT( "Info: Found language chosen with parameter -lang.\r\n" ) ); in ChooseLanguage()
687 Log( TEXT( "Info: Found user default language.\r\n" ) ); in ChooseLanguage()
692 Log( TEXT( "Info: Found user default primary language.\r\n" ) ); in ChooseLanguage()
697 Log( TEXT( "Info: Found system default language.\r\n" ) ); in ChooseLanguage()
702 Log( TEXT( "Info: Found system default primary language.\r\n" ) ); in ChooseLanguage()
707 Log( TEXT( "Info: Use default language from ini file.\r\n" ) ); in ChooseLanguage()
727 Log( TEXT( " Could not find path to msiexec.exe in registry" ) ); in GetPathToMSI()
760 Log( TEXT( "ERROR: Can't build path to msiexec.exe!" ) ); in GetPathToMSI()
772 Log( TEXT( "ERROR: msiexec not found!" ) ); in LaunchInstaller()
780 Log( TEXT( " Will install using <%s>\r\n" ), sMsiPath ); in LaunchInstaller()
781 Log( TEXT( " Parameters are: %s\r\n" ), pParam ); in LaunchInstaller()
783 OutputDebugStringFormat( TEXT( " Will install using <%s>\r\n" ), sMsiPath ); in LaunchInstaller()
784 OutputDebugStringFormat( TEXT( " Parameters are: %s\r\n" ), pParam ); in LaunchInstaller()
797 FAILED( StringCchCat( sCmdLine, nCmdLineLength, TEXT( " " ) ) ) || in LaunchInstaller()
809 Log( TEXT( "ERROR: Could not create process %s.\r\n" ), sCmdLine ); in LaunchInstaller()
820 Log( TEXT( "ERROR: While waiting for %s.\r\n" ), sCmdLine ); in LaunchInstaller()
832 StringCchPrintf( sBuf, 80, TEXT("Warning: msiexec returned %u.\r\n"), nResult ); in LaunchInstaller()
836 Log( TEXT( " Installation completed successfully.\r\n" ) ); in LaunchInstaller()
862 … Log( TEXT( "ERROR: Could not find transform <%s\r\n" ), m_ppLanguageList[i]->m_pTransform ); in Install()
875 Log( TEXT( "ERROR: Could not find database <%s\r\n" ), m_pDatabase ); in Install()
933 StringCchCat( pParams, nParLen, TEXT( "\"" ) ); in Install()
935 StringCchCat( pParams, nParLen, TEXT( "\"" ) ); in Install()
949 StringCchCat( pParams, nParLen, TEXT( "\"" ) ); in Install()
951 StringCchCat( pParams, nParLen, TEXT( "\"" ) ); in Install()
956 StringCchCat( pParams, nParLen, TEXT( " " ) ); in Install()
975 OutputDebugStringFormat( TEXT("Setup will return error (%d).\n"), nErr ); in GetError()
1044 Log( TEXT( "ERROR: %s\r\n" ), sError ); in DisplayError()
1104 Log( TEXT( " Looking for installed MSI with version >= %s\r\n" ), m_pReqVersion ); in CheckVersion()
1112 StringCchPrintf( pMsiVersion, VERSION_SIZE, TEXT("%d.%d.%4d"), in CheckVersion()
1120 Log( TEXT( "Warning: Old MSI version found <%s>, update needed!\r\n" ), pMsiVersion ); in CheckVersion()
1124 Log( TEXT( " Found MSI version <%s>, no update needed\r\n" ), pMsiVersion ); in CheckVersion()
1130 Log( TEXT("Warning: Patching not supported! MSI-Version <%s>\r\n"), pMsiVersion ); in CheckVersion()
1144 Log( TEXT( " No Upgrade Key Found -> continue with standard installation!\r\n" ) ); in CheckForUpgrade()
1152 Log( TEXT( " Found Upgrade Key in Registry (HKLM) -> will try minor upgrade!\r\n" ) ); in CheckForUpgrade()
1157 Log( TEXT( " Found Upgrade Key in Registry (HKCU) -> will try minor upgrade!\r\n" ) ); in CheckForUpgrade()
1162 … Log( TEXT( " Didn't Find Upgrade Key in Registry -> continue with standard installation!\r\n" ) ); in CheckForUpgrade()
1178 Log( TEXT( " Same Product Version already installed, no minor upgrade!\r\n" ) ); in CheckForUpgrade()
1194 const TCHAR sSearchStr[] = TEXT("Terminal Server"); in IsTerminalServerInstalled()
1195 const TCHAR sKey[] = TEXT("System\\CurrentControlSet\\Control\\ProductOptions"); in IsTerminalServerInstalled()
1196 const TCHAR sValue[] = TEXT("ProductSuite"); in IsTerminalServerInstalled()
1243 Log( TEXT("Ignoring already running MSI instance!\r\n") ); in AlreadyRunning()
1248 const TCHAR sGUniqueName[] = TEXT( "Global\\_MSISETUP_{EA8130C1-8D3D-4338-9309-1A52D530D846}" ); in AlreadyRunning()
1249 const TCHAR sUniqueName[] = TEXT( "_MSISETUP_{EA8130C1-8D3D-4338-9309-1A52D530D846}" ); in AlreadyRunning()
1265 Log( TEXT( "ERROR: AlreadyRunning() could not create mutex!\r\n" ) ); in AlreadyRunning()
1267 Log( TEXT( "ERROR: There's already a setup running!\r\n" ) ); in AlreadyRunning()
1271 Log( TEXT( " No running Setup found\r\n" ) ); in AlreadyRunning()
1325 _ftprintf( m_pLogFile, TEXT("%c"), 0xfeff ); in Log()
1327 _tsetlocale( LC_ALL, TEXT("") ); in Log()
1328 _ftprintf( m_pLogFile, TEXT("\nCodepage=%s\nMultiByte Codepage=[%d]\n"), in Log()
1474 if ( !bAppend && FAILED( StringCchCat( pNewCmdLine, nSize, TEXT( "+" ) ) ) ) in GetCmdLineParameters()
1479 if ( FAILED( StringCchCat( pNewCmdLine, nSize, TEXT( " \"" ) ) ) || in GetCmdLineParameters()
1481 FAILED( StringCchCat( pNewCmdLine, nSize, TEXT( "\" " ) ) ) ) in GetCmdLineParameters()
1488 m_pLogFile = _tfopen( pFileName, TEXT( "ab" ) ); in GetCmdLineParameters()
1490 m_pLogFile = _tfopen( pFileName, TEXT( "wb" ) ); in GetCmdLineParameters()
1502 FAILED( StringCchCat( pNewCmdLine, nSize, TEXT( " " ) ) ) ) in GetCmdLineParameters()
1546 FAILED( StringCchCat( pNewCmdLine, nSize, TEXT( " " ) ) ) ) in GetCmdLineParameters()
1556 FAILED( StringCchCat( pNewCmdLine, nSize, TEXT( " " ) ) ) ) in GetCmdLineParameters()
1663 m_pTmpName = _ttempnam( TEXT( "C:\\" ), TEXT( "Setup" ) ); in CopyIniFile()
1667 Log( TEXT( "ERROR: Could not create temp file\n" ) ); in CopyIniFile()
1671 FILE *pOut = _tfopen( m_pTmpName, TEXT( "wb" ) ); in CopyIniFile()
1672 FILE *pIn = _tfopen( pIniFile, TEXT( "rb" ) ); in CopyIniFile()
1685 Log( TEXT( "ERROR: Could not write all bytes to temp file\n" ) ); in CopyIniFile()
1789 …StringCchPrintf( sBuf, 80, TEXT("ERROR: IsPatchInstalled: MsiGetSummaryInformation returned %u.\r\… in IsPatchInstalled()
1801 …StringCchPrintf( sBuf, 80, TEXT("ERROR: IsPatchInstalled: MsiSummaryInfoGetProperty returned %u.\r… in IsPatchInstalled()
1808 StringCchPrintf( sBuf, 80, TEXT(" GetPatchInfo for (%s) returned (%u)\r\n"), szPatchID, nRet ); in IsPatchInstalled()
1834 OutputDebugStringFormat( TEXT( "MsiQueryProductState returned <%d>\r\n" ), nRet ); in InstallRuntimes()
1838 Log( TEXT( " Will install runtime <%s>\r\n" ), sRuntimePath ); in InstallRuntimes()
1839 OutputDebugStringFormat( TEXT( " Will install runtime <%s>\r\n" ), sRuntimePath ); in InstallRuntimes()
1866 Log( TEXT( "ERROR: Could not create process %s.\r\n" ), sCmdLine ); in InstallRuntimes()
1877 Log( TEXT( "ERROR: While waiting for %s.\r\n" ), sCmdLine ); in InstallRuntimes()
1889 StringCchPrintf( sBuf, 80, TEXT("Warning: install runtime returned %u.\r\n"), nResult ); in InstallRuntimes()
1893 Log( TEXT( " Installation of runtime completed successfully.\r\n" ) ); in InstallRuntimes()
1934 … OutputDebugStringFormat( TEXT( "found architecture<%d>\r\n" ), siSysInfo.wProcessorArchitecture ); in InstallRuntimes()
1941 Log( TEXT( "ERROR: no installer for x64 runtime libraries found!" ) ); in InstallRuntimes()
1953 Log( TEXT( "ERROR: no installer for x86 runtime libraries found!" ) ); in InstallRuntimes()