tis-dropbox icon

Dropbox

Silent install package for Dropbox

226.4.5094-30

  • package: tis-dropbox
  • name: Dropbox
  • version: 226.4.5094-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: 203.33 Mo
  • installed_size: 468.96 Mo
  • homepage : https://www.dropbox.com

package           : tis-dropbox
version           : 226.4.5094-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          : PROD
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      : 9d543948-270b-4d80-9eae-d173860bb1ec
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            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-06-16T07:30:45.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         : AgL32eoRQSkBRLdNtiVvfjwwWgEd1Jj93+0VqAV5A4zYCYdWEuXPqkWhAw8Yr5kdVSz+8cfnigApmGly81IgXLkpweWkN8IqyGULeUNj9t14vv7/rFA8AbGZ4iFSoZ32MBRaOItbzB+yFOAHSkNZui+V4iQeYp2NJPdiTqUhgNcX3oW9kZu9DaCdGkltrAgCrO6M3joBIZatpSt1/9S81bgY1UO/l+wiQEgjuVUJ8yvWzjUnJdzMnkNX7AxNbZc404uW5mbsM7o+YaiCm9T70vAeGgtXKftg/3PenF1r6iMvMEicbfJMG8wkfCeuYddNjCYtszJQqL0KJozahgh2OQ==

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

4ca1a802ee93d4cda4b80f8bf277106ab740ca5cb2eb5dff64b17bd018ff7177 : Dropbox 226.4.5094 Offline Installer_superfluous.x64.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
7f428de6e0310b1bdb0b30138d58c74a401f8853f18c3083deddf2838cdccf0b : WAPT/changelog.txt
61ee7d361d2ec6a5736c03fb42bd186784f4dfcf2225c55ad2311a4dff3a033a : WAPT/control
d7cf7b7a7280b72d585dd2b1a90a231b482b0a92be35d73080809414648565d9 : WAPT/icon.png
43e9467b27ffb388fd5403e88664b8c22477c446e58a8fb8cb8459d1edb2003b : 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