Visual Studio Code

Vous souhaitez découvrir comment gérer efficacement le déploiement de vos logiciels en entreprise ?

Découvrez WinAppack
Editeur Microsoft
Copy to clipboard
Description Microsoft Visual Studio Code est un éditeur de code extensible développé par Microsoft pour Windows, Linux et macOS. Il offre une interface utilisateur intuitive et des fonctionnalités puissantes pour le Développement de logiciels.
Copy to clipboard
Type de licence Gratuit
Copy to clipboard
Etiquettes / Catégories Integrated Development Environment (IDE), Développement / Programmation, Applications web
Copy to clipboard

Package WinAppack

Visual Studio Code est pris en charge par l'agent WinAppack. Retrouvez ci-dessous le script PowerShell utilisé pour son installation et sa désinstallation, ainsi que le package complet à télécharger.

Version 1.141.0
Copy to clipboard
Archive Visual_Studio_Code_MULTI-2026.10.10-1.141.0-64bits-001_2c24825e04.zip
Copy to clipboard
SHA256 E8AC764460DC5C21F2BBC0260FBD0DC285C586EC1B6A2F53512FB7D7D0A5DBDC
Copy to clipboard

Pour vérifier l'intégrité de l'archive, exécutez cette commande PowerShell depuis le dossier de téléchargement. Elle doit renvoyer True.

(Get-FileHash .\Visual_Studio_Code_MULTI-2026.10.10-1.141.0-64bits-001_2c24825e04.zip -Algorithm SHA256).Hash -eq 'E8AC764460DC5C21F2BBC0260FBD0DC285C586EC1B6A2F53512FB7D7D0A5DBDC'

Script d'installation PowerShell

Copy to clipboard

Ce script nécessite le module WAP.dll (framework WinAppack) pour fonctionner. Il est fourni dans le package zip ci-dessus, dans le même dossier que le script.

param (
    [switch]$UNINSTALL,
    [switch]$INSTALL,
    [switch]$CLOSEAPPMESSAGE,
    [switch]$CLEAN,
    [switch]$DESKTOPSHORTCUT
)
try {
    Import-Module "$PSScriptRoot\WAP.dll"
    WAP\Invoke-WAPEnv

    $DefaultParamInstall = "-INSTALL -CLOSEAPPMESSAGE -DESKTOPSHORTCUT"
    $DefaultParamUninstall = "-UNINSTALL -CLOSEAPPMESSAGE"
    
    $software.Name = 'Visual Studio Code'
    $software.Language = 'MULTI'
    $software.Release_Date = '2026.10.10'
    $software.Version = '1.141.0'
    $software.Architecture = '64bits'
    $software.Package_Version = '001'
    $software.DiskSpace_Mo_Needed = 500
    $software.RAM_Mo_Needed = 500
    $software.Description = "Lightweight, extensible, cross-platform source code editor for developers."
    $software.Publisher = "Microsoft Corporation"
    $software.VisibleProcessesToCloseByUser = @("Code")
    $software.BackgroundProcessesToKill = @()
    $software.Path_32 = @("$PF86\Microsoft VS Code\Code.exe")
    $software.Path_64 = @("$PF\Microsoft VS Code\Code.exe")
    $software.DisplayName = $software.Name

    
    #############################################################
    # UNINSTALL
    #############################################################
    if($UNINSTALL) {
        
        WAP\Start-WAPSession "UNINSTALL"

        foreach ($Exe in (WAP\Get-UninstallEXE -PatternDisplayName "^Microsoft Visual Studio Code.*" -PatternPublisher "")) { $ExitCode = WAP\Start-Execution -Exe $Exe.UninstallExe -Arg "/VERYSILENT /NORESTART" }
        
        foreach ($User in (WAP\Get-UserInfos)) {
            if(Test-Path "$($User.ProfilePath)\AppData\Local\Programs\Microsoft VS Code\Code.exe") {
                if($($User.ProfilePath) -eq $LoggedUser.ProfilePath) {
                    $ExitCode = WAP\Start-Execution -Exe "$($User.ProfilePath)\AppData\Local\Programs\Microsoft VS Code\unins000.exe" -Arg "/VERYSILENT /NORESTART" -Context "LOGGEDUSER"
                    WAP\Test-AppPath -Path "$($User.ProfilePath)\AppData\Local\Programs\Microsoft VS Code\Code.exe" -Expected $false
                } else {
                    WAP\New-Error "Unable to uninstall VS Code for user $($User.Login) as it is not the logged user." -Severity 2
                }
            }
        }
        
        WAP\Test-AppPath -Path ($software.Path_32)[0] -Expected $false
        WAP\Test-AppPath -Path ($software.Path_64)[0] -Expected $false

        WAP\Clear-DesktopShortcut -TargetPath ($software.Path_32)[0]
        WAP\Clear-DesktopShortcut -TargetPath ($software.Path_64)[0]
        
        if ($CLEAN)
        {
            WAP\Remove-AppItem -Path "$PF86\Microsoft VS Code"
            WAP\Remove-AppItem -Path "$PF\Microsoft VS Code"

            foreach ($User in (WAP\Get-UserInfos)) {
                WAP\Remove-AppItem -Path "$($User.ProfilePath)\AppData\Roaming\Code"
            }
        }

        WAP\Stop-WAPSession
    }
    


    #############################################################
    # INSTALL
    #############################################################
    if($INSTALL) {

        WAP\Start-WAPSession "INSTALL"

        $ExitCode = WAP\Start-Execution -Exe "$Path\App\VSCodeSetup*.exe" -Arg "/VERYSILENT /NORESTART /MERGETASKS=!runcode"
        
        WAP\Test-AppPath -Path ($software.Path)[0] -Expected $true
        
        if($DESKTOPSHORTCUT) {WAP\Set-DesktopShortcut   -TargetPath ($software.Path)[0]}
        else                 {WAP\Clear-DesktopShortcut -TargetPath ($software.Path)[0]}

        WAP\Stop-WAPSession
    }
}
catch {
    Write-Output "General Error : $($_.Exception.Message)"
    exit 499
}

Autres logiciels de la même catégorie

Gestion des cookies
Ce site dépose des cookies pour améliorer votre expérience de navigation.
Consulter la politique de confidentialité