mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Add a manifest to ipodpatcher.exe in order to make it request administrative rights on windows vista. This will cause a separate cmd window to pop up. The proper solution will be to implement a check for administrative rights in the executable, and tell the user to start from an elevated command prompt if not. This solution will still need a (changed) manifest.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14796 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c5d22bce6e
commit
4ce9368058
3 changed files with 20 additions and 2 deletions
|
@ -21,6 +21,7 @@ endif
|
|||
|
||||
NATIVECC = gcc
|
||||
CC = $(CROSS)gcc
|
||||
WINDRES = $(CROSS)windres
|
||||
|
||||
SRC = main.c ipodpatcher.c fat32format.c parttypes.h arc4.c
|
||||
|
||||
|
@ -30,10 +31,13 @@ ipodpatcher: $(SRC) ipodio-posix.c $(BOOTSRC)
|
|||
gcc $(CFLAGS) -o ipodpatcher $(SRC) ipodio-posix.c $(BOOTSRC)
|
||||
strip ipodpatcher
|
||||
|
||||
ipodpatcher.exe: $(SRC) ipodio-win32.c $(BOOTSRC)
|
||||
$(CC) $(CFLAGS) -o ipodpatcher.exe $(SRC) ipodio-win32.c $(BOOTSRC)
|
||||
ipodpatcher.exe: $(SRC) ipodio-win32.c ipodpatcher-rc.o $(BOOTSRC)
|
||||
$(CC) $(CFLAGS) -o ipodpatcher.exe $(SRC) ipodio-win32.c ipodpatcher-rc.o $(BOOTSRC)
|
||||
$(CROSS)strip ipodpatcher.exe
|
||||
|
||||
ipodpatcher-rc.o: ipodpatcher.rc ipodpatcher.manifest
|
||||
$(WINDRES) -i ipodpatcher.rc -o ipodpatcher-rc.o
|
||||
|
||||
ipodpatcher-mac: ipodpatcher-i386 ipodpatcher-ppc
|
||||
lipo -create ipodpatcher-ppc ipodpatcher-i386 -output ipodpatcher-mac
|
||||
|
||||
|
|
13
rbutil/ipodpatcher/ipodpatcher.manifest
Normal file
13
rbutil/ipodpatcher/ipodpatcher.manifest
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||
<assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="ipodpatcher.exe" type="win32"/>
|
||||
|
||||
<!-- Identify the application security requirements. -->
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<security>
|
||||
<requestedPrivileges>
|
||||
<requestedExecutionLevel level="requireAdministrator"/>
|
||||
</requestedPrivileges>
|
||||
</security>
|
||||
</trustInfo>
|
||||
</assembly>
|
1
rbutil/ipodpatcher/ipodpatcher.rc
Normal file
1
rbutil/ipodpatcher/ipodpatcher.rc
Normal file
|
@ -0,0 +1 @@
|
|||
1 24 MOVEABLE PURE "ipodpatcher.manifest"
|
Loading…
Add table
Add a link
Reference in a new issue