Détails du package

smp-fix-mstsc-with-high-dpi

retour Revenir à la liste des packages

smp-fix-mstsc-with-high-dpi

Fichier control :

package           : smp-fix-mstsc-with-high-dpi
version           : 6
architecture      : all
section           : base
priority          : optional
name              : 
categories        : 
maintainer        : Les fourmis du web
description       : Fix mstsc pour fonctionner avec des dpi élevé
depends           : 
conflicts         : 
maturity          : 
locale            : 
target_os         : windows
min_os_version    : 
max_os_version    : 
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : 
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : 1c8e7fe7-b849-45c7-b611-f844e8d87062
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
signer            : wapt.lesfourmisduweb.org
signer_fingerprint: 1e54425be03a2a3ea1a264b40d984c31f17a6a489a3b722acb993cbf6561e903
signature         : CPXZkQB4bv8pXOyxKbIyz1USqRiAijH/z0UAEUxIo8xIVsajXJryjFD0xH+WoVz3yLUnq9PVXIkXvepg/mtVlaeSzAwlJ5UFBlwwErk/JFnTze/Lfk9e014Ge6To3h5LwFTvA9uhGKBQFmjP8D3DC4CjwYeAuMd0PxkytCY4hRaNKordB0HZARxm4dU27VyfaZtT84GXAcMRyo13mHtkoJJPvQhhVq4R9PtLiPc78i/PsaaqZsDGYDvKcaYXjCfoNljz42S3dVMCY0/KR7nqodcTcATrWXNQ02551aiLMHSf02n4VAzHDsQDDpgz8xmslEqzpYs9Gry/U5CvCQiYEw==
signature_date    : 2020-07-04T01:19:09.860932
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_os_version,max_os_version,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,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 = r"""<?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')