The Apache Haus Forum

Advanced search  

News:

Welcome to Apache Haus Distribution Forum

Pages: [1]   Go Down

Author Topic: Patch problems on Windows Vista and up  (Read 296 times)

youngpee0110

  • Newbie
  • *
  • Offline Offline
  • Posts: 1
Patch problems on Windows Vista and up
« on: May 23, 2020, 06:34:29 PM »

You know, patch.exe has given me hell since I started using it on Vista and beyond. It requires admin and I just don't run admin much when prepping source or building even.ข่าวฟุตบอลออนไลน์
Clicking OK on the UAC warning also doesn't work so this has been a thorn in my side for some time.

Administrator Edit: Removed link to a website not on topic.
« Last Edit: May 29, 2020, 01:12:51 PM by youngpee0110 »
Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 872
Re: Patch problems on Windows Vista and up
« Reply #1 on: May 23, 2020, 11:01:04 PM »

This is a good question, the problem is a pain in the back side. I have to credit mario for the answer.

1. Put a copy of your patch.exe file into a folder somewhere.
2. Create a text file named patch.exe.manifest and add the below code to it modifying the version to match yours. Save it in the folder you put patch.exe in.

Code: [Select]
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity
version="2.5.9.7"
processorArchitecture="X86"
name="Patch"
type="win32"
/>
<description> A tool for applying diff-generated patches. </description>
<!-- Identify the application security requirements. -->
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel
level="asInvoker"
uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>

3. Open a Visual Studio x86 command window and cd to the folder you put patch.exe and patch.exe.manifest in.
4. Run this command
Code: [Select]
  mt -manifest patch.exe.manifest -outputresource:patch.exe;1  5. Test it on something, it should never ask again or at least mine doesn't.

Logged

robincortez

  • Newbie
  • *
  • Offline Offline
  • Posts: 1
Re: Patch problems on Windows Vista and up
« Reply #2 on: May 26, 2020, 10:17:03 AM »

This is a good question, the problem is a pain in the back side. I have to credit mario for the answer.

1. Put a copy of your patch.exe file into a folder somewhere.
2. Create a text file named patch.exe.manifest and add the below and code to it modifying the version to match yours. Save it in the folder you put patch.exe in.

Code: [Select]
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity
version="2.5.9.7"
processorArchitecture="X86"
name="Patch"
type="win32"
/>
<description> A tool for applying diff-generated patches. </description>
<!-- Identify the application security requirements. -->
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel
level="asInvoker"
uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>

3. Open a Visual Studio x86 command window and cd to the folder you put patch.exe and patch.exe.manifest in.
4. Run this command
Code: [Select]
  mt -manifest patch.exe.manifest -outputresource:patch.exe;1  5. Test it on something, it should never ask again or at least mine doesn't.


Thanks. It works just fine now.
« Last Edit: May 27, 2020, 12:07:46 AM by Gregg »
Logged
Pages: [1]   Go Up
 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13