Skip to main content
Solved

Software application DBeaver not installing


Forum|alt.badge.img

I am trying to download and install DBeaver. Its downloading to the correct place but it will not install.  Below is the code that i am trying to use.

 

Start-BitsTransfer -Source "https://dbeaver.com/files/dbeaver-ee-latest-x86_64-setup.exe" -Destination "C:\temp\dbeaver-ee-latest-x86_64-setup.exe"
Start-Process "c:\temp\dbeaver-ee-latest-x86_64-setup.exe" -ArgumentList '/S','/v','/qn' -passthru

 

Any help would be appreciated

 

Thanks

Best answer by JohnG-Automox

Hi @jscafidi !

According to DBeaver, the application will only accept the following install parameters:

Parameter Description
/S silent mode, requires /allusers or /currentuser, case-sensitive
/D=path (installer only) set install directory, must be last parameter, without quotes, case-sensitive
/allusers (un)install for all users, case-insensitive
/currentuser (un)install for current user only, case-insensitive
/uninstall (installer only) run uninstaller, requires /allusers or /currentuser, case-insensitiv

 

 

With that being said, I it looks like your issue is the inclusion of /v and /qn, as well as the lack of the /allusers switch.  After removing /v, /qn, and adding /allusers, I was able to successfully install DBeaver.

 

Here’s a revised Remediation Code that will stage a new directory named DBeaver, use your method for downloading and installing the application, and then remove the setup media after the installation completes.  It will also log a success or failure status to your Automox Activity Log for auditing purposes:

 

try
    {
        #Creating setup directory
        New-Item -ItemType Directory -Path 'C:\temp\DBeaver\' -Force

        #Downloading latest DBeaver installer
        Start-BitsTransfer -Source "https://dbeaver.com/files/dbeaver-ee-latest-x86_64-setup.exe" -Destination "C:\temp\DBeaver\setup.exe"

        #Starting installation
        Start-Process -FilePath "C:\temp\DBeaver\setup.exe" -ArgumentList ('/S', '/allusers') -Wait -PassThru
        Write-Output "Successfully installed DBeaver."

        #Remove setup files
        Remove-Item -Path "C:\temp\DBeaver\" -Force -Recurse
    }

catch
    {
        Write-Output "Failed to install DBeaver."
    }

 

Let me know if you have any more questions.

 

Have a great day!

View original
How helpful was this post to you?

2 replies

JohnG-Automox
Forum|alt.badge.img
  • Automox Employee
  • 121 replies
  • Answer
  • April 27, 2023

Hi @jscafidi !

According to DBeaver, the application will only accept the following install parameters:

Parameter Description
/S silent mode, requires /allusers or /currentuser, case-sensitive
/D=path (installer only) set install directory, must be last parameter, without quotes, case-sensitive
/allusers (un)install for all users, case-insensitive
/currentuser (un)install for current user only, case-insensitive
/uninstall (installer only) run uninstaller, requires /allusers or /currentuser, case-insensitiv

 

 

With that being said, I it looks like your issue is the inclusion of /v and /qn, as well as the lack of the /allusers switch.  After removing /v, /qn, and adding /allusers, I was able to successfully install DBeaver.

 

Here’s a revised Remediation Code that will stage a new directory named DBeaver, use your method for downloading and installing the application, and then remove the setup media after the installation completes.  It will also log a success or failure status to your Automox Activity Log for auditing purposes:

 

try
    {
        #Creating setup directory
        New-Item -ItemType Directory -Path 'C:\temp\DBeaver\' -Force

        #Downloading latest DBeaver installer
        Start-BitsTransfer -Source "https://dbeaver.com/files/dbeaver-ee-latest-x86_64-setup.exe" -Destination "C:\temp\DBeaver\setup.exe"

        #Starting installation
        Start-Process -FilePath "C:\temp\DBeaver\setup.exe" -ArgumentList ('/S', '/allusers') -Wait -PassThru
        Write-Output "Successfully installed DBeaver."

        #Remove setup files
        Remove-Item -Path "C:\temp\DBeaver\" -Force -Recurse
    }

catch
    {
        Write-Output "Failed to install DBeaver."
    }

 

Let me know if you have any more questions.

 

Have a great day!


Forum|alt.badge.img
  • Author
  • Rookie
  • 3 replies
  • April 27, 2023

That worked Thanks @JohnG-Automox 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings