Détails du package smp-fix-mstsc-with-high-dpi_5_all.wapt
retour Revenir à la liste des packages

smp-fix-mstsc-with-high-dpi

ATTENTION CE DÉPÔT n'est plus compatible 1.3 vous devez migrer en 1.5.1.21 !

Fichier control :

package           : smp-fix-mstsc-with-high-dpi
version           : 5
architecture      : all
section           : base
priority          : optional
maintainer        : Les fourmis du web
description       : Fix mstsc pour fonctionner avec des dpi élevé
depends           : 
conflicts         : 
maturity          : 
locale            : 
min_os_version    : 
max_os_version    : 
min_wapt_version  : 
sources           : 
installed_size    : 
signer            : wapt.lesfourmisduweb.org
signer_fingerprint: 8da83ebdac1a25e820b186510d049f47407b11835b0664fdc5bacd3595b1671d
signature         : RWSCLUyN1exLdsZPl5SGt9C3BDcQ1Uyj/hFJQPYbeRBq3Sb4f61Mz8w0pKJSG/c/UbXySeLYRXjjSWzlXjp8glix8AUAaAMAAQM5qe7W/CpD4mBxNU1LuJ51g6d7kBYkGOfo8aXJoIPPN575dVP1zqTPynV3HRy/dh6BJU0m5+v3W84qRac8ILwA/nLPNVDSOasFrMUKJrZF5Sg6ijbbbdRoHmKRQUiMN+l3LXqNOZn+oKwfV6TI17KnGYgzSkZsa+sqN+DbPDpCOSwS0IUQqzKq+kI2dIptNBR2Heg1JHoKafzbjlMovIVVL48GYggTDi9Cz+Jpc1mbGy/XLIEVzg==
signature_date    : 20171122-013535
signed_attributes : package,version,architecture,section,priority,maintainer,description,depends,conflicts,maturity,locale,min_os_version,max_os_version,min_wapt_version,sources,installed_size,signer,signer_fingerprint,signature_date,signed_attributes






Fichier setup.py :

#!/usr/bin/python
# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []


def install():
    registry_setstring(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\SideBySide",'PreferExternalManifest',1, type=REG_DWORD)
    manifest = ur"""<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">

<dependency>
  <dependentAssembly>
    <assemblyIdentity
      type="win32"
      name="Microsoft.Windows.Common-Controls"
      version="6.0.0.0" processorArchitecture="*"
      publicKeyToken="6595b64144ccf1df"
      language="*">
    </assemblyIdentity>
  </dependentAssembly>
</dependency>

<dependency>
  <dependentAssembly>
    <assemblyIdentity
      type="win32"
      name="Microsoft.VC90.CRT"
      version="9.0.21022.8"
      processorArchitecture="amd64"
      publicKeyToken="1fc8b3b9a1e18e3b">
    </assemblyIdentity>
  </dependentAssembly>
</dependency>

<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
  <security>
    <requestedPrivileges>
      <requestedExecutionLevel
        level="asInvoker"
        uiAccess="false"/>
    </requestedPrivileges>
  </security>
</trustInfo>

<asmv3:application>
  <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
    <ms_windowsSettings:dpiAware xmlns:ms_windowsSettings="http://schemas.microsoft.com/SMI/2005/WindowsSettings">false</ms_windowsSettings:dpiAware>
  </asmv3:windowsSettings>
</asmv3:application>

</assembly>"""
    with disable_file_system_redirection():
        fichier = open(makepath(system32(),"mstsc.exe.manifest"), "w")
        fichier.write(manifest)
        fichier.close()

def uninstall():
    with disable_file_system_redirection():
        remove_file(makepath(system32(),"mstsc.exe.manifest"))
    registry_deletekey(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\SideBySide",'PreferExternalManifest')