Re: Workaround: C&C Remastered - Failed to launch, start as administrator

by 968783a78cde33e3
Reply

Original Post

Re: Workaround: C&C Remastered - Failed to launch, start as administrator

★★★ Newbie

I am a win11 pro user

I too had this issue and none of the suggestions worked. I then noticed in the taskbar another window was running for EA App. I was able to open it by clicking on it and it was the "provide permissions" I clicked yes and the game launched.

The window does not make itself apparent and should not be coded to be minimized or behind the EA app window. This is obviously poorly written code on behalf of the developer.

The window needs to be apparent and set to be "on top" and or just automatically go into the game.

 

Message 21 of 25 (1,383 Views)

Re: Workaround: C&C Remastered - Failed to launch, start as administrator

★★★★★ Newbie
@Lucia_Stardust Thanks will try in the AM!
Message 22 of 25 (1,231 Views)

Re: Workaround: C&C Remastered - Failed to launch, start as administrator

★★★★★ Newbie

Thank you, I never thought to look on the taskbar!! I used to play this on my old Windows 10 pc but the permissions window always popped up. I half guessed that it was a amin permission thing. Thank God you have sharp eyes!!! Definitely solved my problem, thank you once again!!

Message 23 of 25 (1,032 Views)

Re: Workaround: C&C Remastered - Failed to launch, start as administrator

★★★ Newbie

Literally did it your way and it didnt work.  Hers did.

Message 24 of 25 (1,014 Views)

Re: Workaround: C&C Remastered - Failed to launch, start as administrator

★★★ Newbie

With that batch code in the first post from WTF_DOC, you'll want to add all this code which runs the batch file as Admin. Otherwise some of those processes may not end like the EABackgroundService.exe process.

 

So save all this in a text editor and name it something.bat Make sure it has the .bat file extension. You may need to show file extensions from the Windows Control Panel | File Explorer Options.

 

 

 

@echo off

:: BatchGotAdmin
:-------------------------------------
REM --> Check for permissions
IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" (
>nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system"
) ELSE (
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
)

REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt
) else ( goto gotAdmin )

:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
set params= %*
echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params:"=""%", "", "runas", 1 >> "%temp%\getadmin.vbs"

"%temp%\getadmin.vbs"
del "%temp%\getadmin.vbs"
exit /B

:gotAdmin
pushd "%CD%"
CD /D "%~dp0"
:--------------------------------------
taskkill /IM EABackgroundService.exe /F
taskkill /IM EADesktop.exe /F
taskkill /IM EAGEP.exe /F
taskkill /IM EALocalHostSvc.exe /F

Message 25 of 25 (275 Views)