Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools/binstall Create a manifest on windows if the filename ...
details: https://anonhg.NetBSD.org/src/rev/caf0022b0aa9
branches: trunk
changeset: 784995:caf0022b0aa9
user: christos <christos%NetBSD.org@localhost>
date: Sun Feb 17 00:36:40 2013 +0000
description:
Create a manifest on windows if the filename requires it, so that it does
not need UAC to execute.
diffstat:
tools/binstall/mkmanifest | 33 +++++++++++++++++++++++++++++++++
1 files changed, 33 insertions(+), 0 deletions(-)
diffs (37 lines):
diff -r d184fb3511b9 -r caf0022b0aa9 tools/binstall/mkmanifest
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/binstall/mkmanifest Sun Feb 17 00:36:40 2013 +0000
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+makeone() {
+ local name="$(basename "$1" .exe)"
+ case $name in
+ *instal*|*patch*|*update*|*setup*)
+ ;;
+ *)
+ return;;
+ esac
+cat << _EOF > ${1%.exe}.exe.manifest
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<!-- $NetBSD: mkmanifest,v 1.1 2013/02/17 00:36:40 christos Exp $ -->
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
+ <assemblyIdentity version="1.0.0.0"
+ processorArchitecture="X86"
+ name="$name"
+ type="win32"/>
+ <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
+ <security>
+ <requestedPrivileges>
+ <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
+ </requestedPrivileges>
+ </security>
+ </trustInfo>
+</assembly>
+_EOF
+}
+
+for i
+do
+ makeone "$i"
+done
Home |
Main Index |
Thread Index |
Old Index