tis-dropbox icon

Dropbox

Paquet d’installation silencieuse pour Dropbox

240.4.8493-30
Utilities
Utilities

Les paquets PREPROD sont des paquets construits via LUTI. Ils restent généralement 5 jours en PREPROD, après quoi un deuxième scan VirusTotal est effectué pour vérifier que le status n'a pas changé.
Si le paquet réussit ce dernier contrôle, il est promu en PROD et publié sur le store.

  • package: tis-dropbox
  • name: Dropbox
  • version: 240.4.8493-30
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
  • editor: Dropbox
  • licence: proprietary_free
  • locale: all
  • target_os: windows
  • impacted_process: Dropbox,DropboxNativeMessagingHost,DropboxThumbnailGenerator,DropboxUpdate,DropboxCrashHandler,DropboxUpdate,DropboxUpdateBroker,DropboxUpdateOnDemand,DropboxUpdateProxy32,dbxsvc
  • architecture: x64
  • signature_date:
  • size: 192.35 Mo
  • installed_size: 468.96 Mo
  • homepage : https://www.dropbox.com

package           : tis-dropbox
version           : 240.4.8493-30
architecture      : x64
section           : base
priority          : optional
name              : Dropbox
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ
description       : Dropbox is a file hosting service operated by the American company Dropbox, Inc.
depends           : 
conflicts         : 
maturity          : PREPROD
locale            : all
target_os         : windows
min_wapt_version  : 2.2
sources           : https://www.dropbox.com/install
installed_size    : 468956874
impacted_process  : Dropbox,DropboxNativeMessagingHost,DropboxThumbnailGenerator,DropboxUpdate,DropboxCrashHandler,DropboxUpdate,DropboxUpdateBroker,DropboxUpdateOnDemand,DropboxUpdateProxy32,dbxsvc
description_fr    : Dropbox est un service de stockage et de partage de copies de fichiers locaux en ligne proposé par Dropbox, Inc.
description_pl    : Dropbox to usługa hostingu plików prowadzona przez amerykańską firmę Dropbox, Inc
description_de    : Dropbox ist ein Datei-Hosting-Dienst, der von dem amerikanischen Unternehmen Dropbox, Inc. betrieben wird
description_es    : Dropbox es un servicio de alojamiento de archivos operado por la empresa estadounidense Dropbox, Inc
description_pt    : Dropbox é um serviço de alojamento de ficheiros operado pela empresa americana Dropbox, Inc
description_it    : Dropbox è un servizio di file hosting gestito dalla società americana Dropbox, Inc
description_nl    : Dropbox is een dienst voor het hosten van bestanden die wordt beheerd door het Amerikaanse bedrijf Dropbox, Inc
description_ru    : Dropbox - это служба хостинга файлов, управляемая американской компанией Dropbox, Inc
audit_schedule    : 
editor            : Dropbox
keywords          : Cloud
licence           : proprietary_free
homepage          : https://www.dropbox.com
package_uuid      : 30aa0c16-6fdb-4ff4-87e3-0cde6f7c4ef4
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://www.dropboxforum.com/t5/Desktop-client-builds/bd-p/101003016
min_os_version    : 6.1
max_os_version    : 
icon_sha256sum    : d7cf7b7a7280b72d585dd2b1a90a231b482b0a92be35d73080809414648565d9
signer            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2026-01-20T19:33:28.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         : SSABgtD0qIyeg6Z0dfj0PEZP3cOl+YI29ro3Ns1TDFQ81CED9hrpSr59lOqRbnkR0ZXLf7zNpbgx2DP0P9YG2NkxybeJvCSU9E3aTT5Z3RDUk5Pl9j20n2UjtfNDT5sjP3iWuuM5475gVkOZfewhoJHdKPW5mTP9uHpOV3JKQZHlh9QbyjVm3TOBXZfiKXHsLeq2ZL1SnAwacvO635AnA4JHOku+IcxHa3eiCgTOrw/YctR2ZwL5f4e4K02rG089CIkFoUDXx6O+wDNitvuw79VEzrCnx//n8kgz1NTLOjxFq95qvDs+bSJ0/JyQ7qXdhgbCdD6Y9Fqz1jk/aejBow==

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


def install():
    # Initializing variables
    package_version = control.version.split("-", 1)[0]
    bin_name = glob.glob("Dropbox*.exe")[0]
    app_uninstallkey = "Dropbox"

    # Installing the software
    if need_install(key=app_uninstallkey, min_version=package_version):
        install_exe_if_needed(
            bin_name,
            silentflags="/S",
            key=app_uninstallkey,
            min_version=package_version,
            timeout=600,
        )
        time.sleep(10)

    # Uninstalling Updater
    app_updater_key = "{099218A5-A723-43DC-8DB5-6173656A1E94}"
    wait_uninstallkey_present(app_updater_key, 10)
    if uninstall_key_exists(app_updater_key):
        run(uninstall_cmd(app_updater_key))
        wait_uninstallkey_absent(app_updater_key)
        time.sleep(10)

    # Disabling app autoupdater
    for task in ["DropboxUpdateTaskMachineCore", "DropboxUpdateTaskMachineUA"]:
        if task_exists(task):
            try:
                run_notfatal(r'schtasks /end /TN "%s"' % task)
                disable_task(task)
            except:
                print("Unable to disable the task: %s" % task)

    set_service_start_mode("dbupdate", "Disabled")
    set_service_start_mode("dbupdatem", "Disabled")

    # app_update_dir = makepath(programfiles32, "Dropbox", "Update")
    # if isdir(app_update_dir):
    #     run_notfatal("net stop DbxSvc")
    #     # PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Program Files (x86)\\Dropbox\\Update\\Install\\{60588C10-7A38-4A17-9D5F-41029BD94763}\\DropboxClient_172.4.7555.x64.exe'
    #     killalltasks(
    #         control.get_impacted_process_list()
    #         + [bin_name]
    #         + glob.glob(makepath(programfiles32, "Dropbox", "Update", "**", "Dropbox*.exe"))
    #         + glob.glob(makepath(programfiles32, "Dropbox", "Update", "Dropbox*.exe"))
    #     )
    #     run(r'icacls "%s" /grant "%s:(F)" /T' % (app_update_dir, get_user_from_sid("S-1-5-18")))
    #     remove_tree(app_update_dir)
    #     run_notfatal("net start DbxSvc")

    # Changing default start mode of the application services if allowed
    if params.get("disable_autostart_dropbox_service"):
        set_service_start_mode("DbxSvc", "Manual")
    else:
        set_service_start_mode("DbxSvc", "Auto")

    # Disabling app autorun if allowed
    if params.get("disable_autostart_dropbox"):
        if iswin64():
            app_autorun_reg_path = r"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Run"
        else:
            app_autorun_reg_path = r"SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
        if reg_value_exists(HKEY_LOCAL_MACHINE, app_autorun_reg_path, "Dropbox"):
            registry_delete(HKEY_LOCAL_MACHINE, app_autorun_reg_path, "Dropbox")

# def uninstall():
#     for to_uninstall in installed_softwares("Dropbox"):
#         print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
        #killalltasks(ensure_list(control.impacted_process))
        # run(uninstall_cmd(to_uninstall["key"]))
        # wait_uninstallkey_absent(to_uninstall["key"])
        # if isdir(to_uninstall["C:\Program Files (x86)\Dropbox"]):
        #     remove_tree("C:\Program Files (x86)\Dropbox")

# -*- 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
    download_url = "https://www.dropbox.com/download?plat=win&type=full"

    # Getting latest version information from download url
    if control.architecture == "x64":
        download_url = requests.head(download_url, proxies=proxies).headers["Location"].replace("x86", "x64")
    else:
        download_url = requests.head(download_url, proxies=proxies).headers["Location"]
    latest_bin = download_url.rsplit("/", 1)[1].replace("%20", " ")
    version = latest_bin.split(" ")[1]

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

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        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()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating or not update-package-sources
    return package_updated

741dd5990a40386c8aee37532ba71f4f5bd2eada5aab33f7eaf16bc4367863a6 : Dropbox 240.4.8493 Offline Installer.x64.exe
01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
7f428de6e0310b1bdb0b30138d58c74a401f8853f18c3083deddf2838cdccf0b : WAPT/changelog.txt
de61c211afbe822d6ca74d0ef503be82ceff55ee329dc5b54e4e26297be432d9 : WAPT/control
d7cf7b7a7280b72d585dd2b1a90a231b482b0a92be35d73080809414648565d9 : WAPT/icon.png
e00d492ca3ffd508eef344f2eeebcd9839cb5ce3e2164864b6455d45236198eb : luti.json
21c9513a511b3d177fe946ebdf91c5e34f85a43df9576f3e71e3bd6ee141b29b : setup.py
a4936e03871bc5cc0cb6651e2e1abb26b6fa7b38f74a1772aef04e350384e960 : update_package.py

https://www.dropboxforum.com/t5/Desktop-client-builds/bd-p/101003016
172.4.7555-28
===
no longer uninstall before installing
improving package code

157.4.4801-25
===
Putting Dropbox Service back to auto start (use disable_autostart_dropbox_service to avoid it)
Dropbox now start with Windows since it is the default behavior (use disable_autostart_dropbox to avoid it)
No longer kill app in install() so it will probably run pop on install/update
x64 binary have been tested but it remains a x86 app