tis-disable-win-visualfx 1.0-8

  • package : tis-disable-win-visualfx
  • version : 1.0-8
  • architecture : all
  • locale :
  • description : disable Visual effects (optimize display for best performance)
  • maintainer : TIS <technique@tranquil-it-systems.fr>
  • date : 2018-02-27 18:58:39
  • min_wapt_version :
  • min_os_version :
  • max_os_version :
  • impacted_process :

setup.py


from setuphelpers import *
import platform
uninstallkey=['']

def install():
    #[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects]
    #"VisualFXSetting"=dword:00000002"

    registry_setstring(HKEY_USERS,r'.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects','VisualFXSetting',0x02,type=REG_DWORD)

    specific_list = ['AnimateMinMax','ComboBoxAnimation','ControlAnimations','CursorShadow','DragFullWindows','DropShadow',
                     'DWMAeroPeekEnabled','DWMEnabled','DWMSaveThumbnailEnabled','FontSmoothing','ListBoxSmoothScrolling','ListviewAlphaSelect',
                     'ListviewShadow','MenuAnimation','SelectionFade','TaskbarAnimations','Themes','ThumbnailsOrIcon','TooltipAnimation','TransparentGlass']
    for entry in specific_list:
        registry_setstring(HKEY_CURRENT_USER,r'.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\%s' % entry,'DefaultApplied',0x00,type=REG_DWORD)

    if platform.win32_ver()[0].lower() in ('7','8'):
        # service does not exist on win2k12 or on xp
        if service_is_running('uxsms'):
            service_stop('uxsms')
        run("sc config uxsms start= disabled")


    if service_is_running('themes'):
        service_stop('themes')

    run("sc config themes start= disabled")


def session_setup():
    registry_setstring(HKEY_CURRENT_USER,r'Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects','VisualFXSetting',0x02,type=REG_DWORD)



    specific_list = ['AnimateMinMax','ComboBoxAnimation','ControlAnimations','CursorShadow','DragFullWindows','DropShadow',
                     'DWMAeroPeekEnabled','DWMEnabled','DWMSaveThumbnailEnabled','FontSmoothing','ListBoxSmoothScrolling','ListviewAlphaSelect',
                     'ListviewShadow','MenuAnimation','SelectionFade','TaskbarAnimations','Themes','ThumbnailsOrIcon','TooltipAnimation','TransparentGlass']
    for entry in specific_list:
        registry_setstring(HKEY_CURRENT_USER,r'Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\%s' % entry,'DefaultApplied',0x00,type=REG_DWORD)

  #'"DefaultApplied"=dword:00000001'


def uninstall():
    registry_setstring(HKEY_USERS,r'.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects','VisualFXSetting',0x00,type=REG_DWORD)
    run("sc config uxsms start= auto")
    run("sc config themes start= auto")

    if platform.win32_ver()[0].lower() in ('xp','7','8'):
        if not service_is_running('uxsms'):
            service_start('uxsms')
    if not service_is_running('themes'):
        service_start('themes')
    

Changelog

No changelog
    

manifest.sha256

setup.py 035d495063397f12ce2d6a5331008d27cc06f4ad66d237fe2f5f21b2a0d8a4d2
WAPT/certificate.crt 79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4
WAPT/wapt.psproj df0b280a4dff05ccc3b6185cf1dd39ac9a0aeca883450cc1836a4004baee2567
WAPT/control 2df321dd68bc193ed761bb01b52186b49df02291579e537419ad3771b92e7213