tis-crystaldiskinfo icon

CrystalDiskInfo

Paquet d’installation silencieuse pour CrystalDiskInfo

9.6.1-1

  • package: tis-crystaldiskinfo
  • name: CrystalDiskInfo
  • version: 9.6.1-1
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Clément Baziret
  • editor: Crystal Dew World
  • licence: opensource_free,wapt_public
  • locale: all
  • target_os: windows
  • impacted_process: DiskInfo32,DiskInfo64
  • architecture: all
  • signature_date:
  • size: 5.43 Mo
  • installed_size: 17.30 Mo
  • homepage : https://crystalmark.info/en/software/crystaldiskinfo/
  • depends:

package           : tis-crystaldiskinfo
version           : 9.6.1-1
architecture      : all
section           : base
priority          : optional
name              : CrystalDiskInfo
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Clément Baziret
description       : CrystalDiskInfo is an MIT-licensed S.M.A.R.T. utility for reading and monitoring disk drive status
depends           : tis-dotnetfx
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : https://crystalmark.info/en/software/crystaldiskinfo/
installed_size    : 17300095
impacted_process  : DiskInfo32,DiskInfo64
description_fr    : CrystalDiskInfo est un utilitaire S.M.A.R.T. sous licence MIT qui permet de lire et de contrôler l'état des lecteurs de disques
description_pl    : CrystalDiskInfo to licencjonowane przez MIT narzędzie S.M.A.R.T. do odczytu i monitorowania stanu dysków
description_de    : CrystalDiskInfo ist ein MIT-lizenziertes S.M.A.R.T.-Programm zum Lesen und Überwachen des Laufwerkstatus
description_es    : CrystalDiskInfo es una utilidad S.M.A.R.T. con licencia MIT para leer y monitorizar el estado de las unidades de disco
description_pt    : O CrystalDiskInfo é um utilitário S.M.A.R.T. licenciado pelo MIT para ler e monitorizar o estado da unidade de disco
description_it    : CrystalDiskInfo è un'utility S.M.A.R.T. con licenza MIT per la lettura e il monitoraggio dello stato delle unità disco
description_nl    : CrystalDiskInfo is een S.M.A.R.T. hulpprogramma met een SIT-licentie voor het lezen en controleren van de status van schijfstations
description_ru    : CrystalDiskInfo - лицензированная MIT утилита S.M.A.R.T. для чтения и мониторинга состояния дисковых накопителей
audit_schedule    : 24h
editor            : Crystal Dew World
keywords          : crystaldiskinfo,s.m.a.r.t.,smart,utility,monitoring,disk,drive,status
licence           : opensource_free,wapt_public
homepage          : https://crystalmark.info/en/software/crystaldiskinfo/
package_uuid      : 03df8ea4-06a5-424d-a0f7-7f026a6716d7
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://crystalmark.info/en/software/crystaldiskinfo/crystaldiskinfo-history/
min_os_version    : 5.1
max_os_version    : 
icon_sha256sum    : 6e1989215c0946c9bb4166f91153644817dd3d18ab634c94cec2ea1777925504
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-03-06T01:29:34.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         : kE3usk+IKSxAsj+DPofTq4Q88KKPJo6P2b8Da69VRJH1utjVXliICYaZt3xd4st2erQKsIjDAL9/a4FEPKZu4In6LLK/guFFw+5yAFg1PtfBsKIgxZf8MFkoBppOFagG+55GyMVDQ5SMThRjycjzOql3xZNVLSCik8wumt/RqUGiAMlguy19KQmNUA9dSDZYZX9YHpDw2dwd1NHJBIa6McBbutdhTeXSbYLfWSqKhsKLdDJ67aphWzfoE35amr3MveIeHm7rwDzzK6A1LVsgNvgi2gbHeF6dJQh70WSGs+GObqwMN5dzhvbKlEypZcWCLQhgcTP8SX5SYKnM+VPQlw==

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


def install():
    bin_name = glob.glob("CrystalDiskInfo*.exe")[0]

    install_exe_if_needed(
        bin_name,
        silentflags="/silent /verysilent",
        key="CrystalDiskInfo_is1",
        min_version=control.get_software_version(),
    )


def audit():
    audit_status = "OK"
    app_path = ""

    if is64():
        app_path = makepath(programfiles, "CrystalDiskInfo", "DiskInfo64.exe")
    else:
        app_path = makepath(programfiles, "CrystalDiskInfo", "DiskInfo32.exe")
    run('"%s" /CopyExit' % app_path)

    with open("C:/Program Files/CrystalDiskInfo/DiskInfo.txt", "r") as f:
        for ligne in f:
            if "Health Status" in ligne:
                ligne = ligne[19:22]
                if ligne != "Bon":
                    audit_status = "ERROR"
    # remove_file(r"C:/Program Files/CrystalDiskInfo/DiskInfo.txt")

    return audit_status

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


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    url = "https://sourceforge.net/projects/crystaldiskinfo/files/"

    # Getting latest version from download url
    print("URL used is: %s" % url)
    for bs_search in bs_find_all(url, "a", "title",proxies=proxies):
        if ".zip" in bs_search["title"]:
            download_url = url + bs_search["title"]
            version = download_url.split("/")[-2]
            latest_bin = download_url.split("/")[-1].replace(".zip", ".exe").rsplit(": ",1)[0]
            download_url = download_url.replace(".zip", ".exe").rsplit(": ",1)[0] + "/download"
            break


    # Downloading latest binaries
    print("Latest %s version is: %s" % (app_name, version))
    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)

    # Checking version from file
    version_from_file = get_version_from_binary(latest_bin)
    if Version(version_from_file, 4) != Version(version, 4) and version_from_file != "":
        print("Changing version to the version number of the binary (from: %s to: %s)" % (version, version_from_file))
        version = version_from_file
    else:
        print("Binary file version corresponds to online version")

    # 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))

    # Deleting binaries
    for f in glob.glob("*.exe"):
        if f != latest_bin:
            remove_file(f)


    control.set_software_version(version)
    control.save_control_to_wapt()

    # Validating or not update-package-sources
    return package_updated

caf8f60d73b6713f58d95f886a97a35838b2e73dce8ad8f742e33806a5b0d05e : CrystalDiskInfo9_6_1.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
19eefa14ee8d7569e3303310e823242e6ccaebfa4324a9184b5bdb69d550ffd0 : WAPT/control
6e1989215c0946c9bb4166f91153644817dd3d18ab634c94cec2ea1777925504 : WAPT/icon.png
2e35e2d5ae54d37602e0a769df2f244400c27275cda1afa7ed6d92a7424fe1fd : luti.json
86a9546f42d7260d409621b55f2424b08eac62ee17066bc087c6c5b3759e38f1 : setup.py
8400cd5595248bb79f8c893f0bef980a8b41f489bc7f6878276272c4511264a0 : update_package.py