microsoft / azuredatastudio

Azure Data Studio is a data management and development tool with connectivity to popular cloud and on-premises databases. Azure Data Studio supports Windows, macOS, and Linux, with immediate capability to connect to Azure SQL and SQL Server. Browse the extension library for more database support options including MySQL, PostgreSQL, and MongoDB.
https://learn.microsoft.com/sql/azure-data-studio
MIT License
7.5k stars 883 forks source link

Stop Azure Data Studio from launching automatically after installation #25711

Closed AScott-WWF closed 1 week ago

AScott-WWF commented 1 week ago

Type: Bug

I have just created a distribution for our users of the latest Azure Data Studio v1.48.1 (Released 18th June 2024) N.B. This issue has been submitted via another Azure Data Studio v1.48.0 installation We deploy software to all our users via Intune, the Application is installed as a System application The command line I used to silently install the software was:

Execute-Process -Path ".\azuredatastudio-windows-setup.exe" -Parameters '/SP- /VERYSILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS /NORESTART /NORESTARTAPPLICATIONS  /LOG="C:\ProgramData\Microsoft\IntuneManagementExtension\Logs\AzureDataStudio_Install.log"'

Upon completion of the install Azure Data Studio automatically launches - unfortunately as the install was performed using the System account, the application assumes it should be launched using the same account - From a security perspective launching the newly installed app as System is not a good move. Personally, I feel that launching the application at the end of the install is completely unnecessary. Please can you provide a method where by we can prevent Azure Data Studio from launching after install - Preferably a via command line switch we can use with the install.

Azure Data Studio version: azuredatastudio 1.48.0 (4970733324ef8254b7c22a5dc55af7f8a1dea93f, 2024-02-27T00:05:08.293Z) OS version: Windows_NT x64 10.0.19045 Restricted Mode: No Preview Features: Disabled Modes:

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 7 PRO 4750U with Radeon Graphics (16 x 1697)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|15.33GB (2.14GB free)| |Process Argv|| |Screen Reader|no| |VM|0%|
Extensions: none
Charles-Gagnon commented 1 week ago

You should be able to use the /MERGETASKS=!runcode parameter to have it not launch ADS automatically after an installation.

AScott-WWF commented 1 week ago

Thank You, that solved the problem.

It might be helpful to detail what each of the install switches actualy do, this would make the documentation clearer for your customers: https://learn.microsoft.com/en-us/azure-data-studio/download-azure-data-studio?tabs=win-install%2Cwin-unattended-install%2Credhat-install%2Cwindows-uninstall%2Credhat-uninstall