Hello,
I've created a package for the latest version of Klavaro 3.09.
However, the application seems to have issues under Windows 10 and requires running in Windows 7 compatibility mode (based on my tests). I'd like to know if it's possible to manage this directly within the package, either by creating a new shortcut for all users with Windows 7 compatibility mode, or through session setup on the application binary?
Thank you.
[RESOLVED] Klavaro Package
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
-
olaplanche
- Messages: 178
- Registration: January 26, 2017 - 11:11
Last edited by olaplanche on Oct 10, 2019 - 11:02, edited 1 time.
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
Hello,
An application's compatibility mode can be defined via the registry.
- For all users: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
- For the current user: HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
Each key corresponds to an application, with the executable's location as its name and the Windows version as a string value (REG_SZ).
- Windows Vista: ~ VISTARTM
- Windows Vista (Service Pack 1): ~ VISTASP1
- Windows Vista (Service Pack 2): ~ VISTASP2
- Windows 7: ~ WIN7RTM
- Windows 8: ~ WIN8RTM
In the install , you would simply need to use the registry_setstring to add a value to the registry.
Regards.
An application's compatibility mode can be defined via the registry.
- For all users: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
- For the current user: HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
Each key corresponds to an application, with the executable's location as its name and the Windows version as a string value (REG_SZ).
- Windows Vista: ~ VISTARTM
- Windows Vista (Service Pack 1): ~ VISTASP1
- Windows Vista (Service Pack 2): ~ VISTASP2
- Windows 7: ~ WIN7RTM
- Windows 8: ~ WIN8RTM
In the install , you would simply need to use the registry_setstring to add a value to the registry.
Regards.
WAPT Community 1.8
-
olaplanche
- Messages: 178
- Registration: January 26, 2017 - 11:11
Thank you! Compatibility issue solved!
Here is the final code:
Here is the final code:
Code: Select all
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = ['{F29D32EB-AC0D-4D2E-9A75-90A6C626CE6E}_is1']
def install():
print('installing wapt-klavaro')
install_exe_if_needed("klavaro-3.09-win-setup.exe",'/VERYSILENT /SUPPRESSMSGBOXES /NORESTART',key='',min_version='3.09')
if windows_version()>=Version('10.0'):
registry_set(HKEY_LOCAL_MACHINE,r'SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers',r'C:\Program Files (x86)\Klavaro\bin\klavaro.exe',r'~ WIN7RTM FaultTolerantHeap',type=REG_SZ)
remove_desktop_shortcut('Klavaro.lnk')
uninstallkey.remove('{F29D32EB-AC0D-4D2E-9A75-90A6C626CE6E}_is1')
def uninstall():
run(r'"%s\Klavaro\unins000.exe" /verysilent' % programfiles32)
remove_tree(r'%s\Klavaro' % programfiles32)- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
