Skip to content

Instantly share code, notes, and snippets.

@Orochimarufan
Created March 31, 2015 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Orochimarufan/d56cec3eb058bb8dacb8 to your computer and use it in GitHub Desktop.
Save Orochimarufan/d56cec3eb058bb8dacb8 to your computer and use it in GitHub Desktop.
BodySlide UAC remover
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level='asInvoker' uiAccess='false' />
</requestedPrivileges>
</security>
</trustInfo>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*' />
</dependentAssembly>
</dependency>
</assembly>
@ECHO Remove UAC from BodySlide.exe
@ECHO Steam folder is outside Program Files and MO doesn't like UAC executables
@ECHO This requires mt.exe from the Windows (7) SDK
@ECHO --
@ECHO First, backing up original BodySlide.exe to BodySlideAdmin.exe
COPY BodySlide.exe BodySlideAdmin.exe
@ECHO --
@ECHO Then, Injecting UAC asInvoker manifest (manifest.xml)
"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin\mt.exe" -manifest manifest.xml -outputresource:BodySlide.exe;#1
@ECHO --
@ECHO All done!
@PAUSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment