tis-crystaldiskmark icon

CrystalDiskMark

Silent install package for CrystalDiskMark

9.0.2-2
Utilities
Utilities

Preprod packages are packages built on LUTI. They remain in PREPROD usually for 5 days, after which a second VirusTotal scan is performed to verify that the status has not changed.
If the package passes this last check, it is promoted to PROD and published on the store.

  • package: tis-crystaldiskmark
  • name: CrystalDiskMark
  • version: 9.0.2-2
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ
  • licence: proprietary_free,wapt_public
  • target_os: windows
  • architecture: all
  • signature_date:
  • size: 3.96 Mo
  • homepage : https://crystalmark.info/en/software/crystaldiskmark/

package           : tis-crystaldiskmark
version           : 9.0.2-2
architecture      : all
section           : base
priority          : optional
name              : CrystalDiskMark
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ
description       : CrystalDiskMark is a small reference utility for your hard disks (HDDs) and solid-state disks (SSDs)
depends           : 
conflicts         : 
maturity          : PREPROD
locale            : 
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : CrystalDiskMark est un petit utilitaire de référence pour vos disques durs (HDD) et disques SSD (Solid State Disks)
description_pl    : CrystalDiskMark to niewielkie narzędzie referencyjne dla dysków twardych (HDD) i dysków półprzewodnikowych (SSD)
description_de    : CrystalDiskMark ist ein kleines Referenzprogramm für Ihre Festplatten (HDD) und Solid State Disks (SSD)
description_es    : CrystalDiskMark es una pequeña utilidad de referencia para sus discos duros (HDD) y unidades de estado sólido (SSD)
description_pt    : O CrystalDiskMark é um pequeno utilitário de referência para os seus discos rígidos (HDDs) e unidades de estado sólido (SSDs)
description_it    : CrystalDiskMark è una piccola utility di riferimento per i dischi rigidi (HDD) e le unità a stato solido (SSD)
description_nl    : CrystalDiskMark is een klein referentiehulpprogramma voor je harde schijven (HDD's) en solid state drives (SSD's)
description_ru    : CrystalDiskMark - небольшая справочная утилита для ваших жестких дисков (HDD) и твердотельных накопителей (SSD)
audit_schedule    : 
editor            : 
keywords          : 
licence           : proprietary_free,wapt_public
homepage          : https://crystalmark.info/en/software/crystaldiskmark/
package_uuid      : c4a58704-34ca-473c-ad0c-2a6739673e17
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : b38628f64aab49a429938731a96f4529323b0876c1f928d0bf426875958aa155
signer            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2026-02-16T16:15:46.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,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,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : PbA6Ab2WdeNW5hMlMxTciCFOEWUIp5Bo49IpuOXXIdA/Del3CwB4RkaVL4yz7yEYu8e5UmJXZSpQb06DDWHDJ+gz+TWWEwaFySLv5ow9tBP2YJjHSXG6vmx2m5l9kPsC0pX0+V5ouWUMJGaIglc/Pm6L2EEvmvKmRl9UqchMf01NHyCUcL3QOv/p6SdY6FDGNPv3pk6DHXJv9nwwNKZjzPL3fOT1q37FnrlrqgPgWxLoDiFIjNaC3EfjzSIF94njeer+MZo2WuwG7XYtzaXBdfPuoBMr8CfLktCgJPfedFM80RNWLUBZqaq9zNYI9bmPOKhbeFqSu2kDnBT5hRjkuw==

# -*- coding: utf-8 -*-
from setuphelpers import *

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def install():
    # Declaring local variables
    bin_name=glob.glob('CrystalDiskMark*.exe')[0]
    # Installing the software
    
    # Uninstalling older version of the software that can remains
    for to_uninstall in installed_softwares(name="^CrystalDiskMark"):
      if Version(to_uninstall["version"]) < Version(control.get_software_version()):
        print(f"Removing: {to_uninstall['name']} ({to_uninstall['version']})")
        killalltasks(ensure_list(control.impacted_process))
        run(uninstall_cmd(to_uninstall["key"]))
        wait_uninstallkey_absent(to_uninstall["key"])

    short_version = control.get_software_version().split(".")[0]
    
    install_exe_if_needed(bin_name,
        silentflags='/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-',
        key=f'CrystalDiskMark{short_version}_is1'
    )

# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import requests


def update_package():
    # Déclaration des variables locales
    package_updated = False
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()   

    url = "https://sourceforge.net/projects/crystaldiskmark/files/"
    headers = bs_find_all(url,"th","headers")
    
    if headers:
        first_header = headers[0]
        a_tag = first_header.find("a")
        if a_tag:
            url_version = "https://sourceforge.net" + a_tag['href']
            version = a_tag["href"].split('/')[-2]
            print(f"First version found: {version}")   

    for bs_search in bs_find_all(url_version, "tr", "class","file", proxies = proxies):
        if ".exe" in bs_search["title"] and "Shizuku" not in bs_search["title"] and "Aoi" not in bs_search["title"]:
            latest_bin = bs_search["title"]
            break
   
    download_url = url + version + "/" + latest_bin
   
    # Downloading latest binaries
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin,proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    # Changing version of the package
    if Version(version, 4) > Version(control.get_software_version(), 4):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        package_updated = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.set_software_version(version)
    control.save_control_to_wapt()

    # Validating update-package-sources
    return package_updated

    # # Changing version of the package and validating update-package-sources
    # return complete_control_version(control, version)

ac7bb07c02bf26786ce194d0455b65c194f743ff1e887cdaf03af4de88aa2567 : CrystalDiskMark9_0_2.exe
01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
10a220eb9f7a2933a6e914ebe3535139fdf1f4c971e5c467cf5abbb63c5f9e78 : WAPT/control
b38628f64aab49a429938731a96f4529323b0876c1f928d0bf426875958aa155 : WAPT/icon.png
a6cc313ed88e3e425e9c532c349f0fbbc405f944023de58495dc03d1e5dca1b2 : luti.json
ef2c57af01b1706374762d91ed419f435d916f750cc1d7bd84079d46c093c039 : setup.py
8122e4af32eeb925df01591b03b8391f4a1f084c2adb0fbafc471059f9ea118b : update_package.py