# Silent or Unattended installation on Windows Follow

It's possible to install IntelliJ IDEA based IDEs silently on Windows. We are using NSIS installer and it accepts the following command line switches:

• /S — perform silent (unattended) installation into the default installation directory (the switch is case sensitive)
• /D=<installation directory> — change the default installation directory
• /CONFIG=<c:\path\to\silent.config> — more options (user/admin mode, shortcuts, file associations, 32-bit JRE download) are available via the silent configuration file.

Example:

ideaIU-2018.2.3.exe /S /CONFIG=d:\temp\silent.config /D=W:\Program Files\IntelliJ IDEA 2018

You can find more details in NSIS documentation.

At the moment we do not provide MSI installers for our products, however you can create your own MSI package by wrapping our installation executable inside MSI in the silent mode.

6 out of 15 found this helpful

Hey I'm trying to update (250) computers to Pycharm 5 and then in a few months to the newer releases once we are happy with them.

I can install it silently on a PC that has no Pycharm with the above options, however if there is an existing Pycharm install, then the /S option does not preform the install, I assume that it detects an existing Pycharm install and since no user input can be given for the un-install option the install process just drops out silently.

Is there a way to achieve this using the NSIS options that you provide ?

When we installed with D:\PhpStorm-2016.2.1.exe" /S

Installation works perfectly, but we have below issues.

1. It didn't create desktop shortcut - We fixed with Powershell option to manually create desktop shortcut
2. Uninstaller gives below error, so can't uninstall. Even after system restart, it still gives below error.
error.

Similar issue was fixed some time ago: https://youtrack.jetbrains.com/issue/IDEA-152542.

If you can reproduce it with the current version, please submit a new bug at https://youtrack.jetbrains.com/issues/IDEA.

See https://youtrack.jetbrains.com/issue/IDEA-146215 regarding the desktop shortcut problem in silent mode.

We are having a blocker for our installation. Can we have some workable workaround?

Can we use NSIS installer from http://nsis.sourceforge.net/Download and NSIS build conf from https://github.com/moobyfr/intellij-community/tree/3eabf4fa2854a8593ffdf5c086775b921c17f8cc/build/conf/nsis to create a deploy-able package?

We have a bulk rollout for large number of Windows 10 machines.

Feel free to package it into MSI or NSIS or any other installer that will put it into the right location and add the shortcuts to desktop/menu if needed.

Using .nsi script from the source distribution is not an option for you since it depends on a lot of the generated files and can be produced only as a part of the CI server build process.

Edited by Serge Baranov

Hey Guys you c an use a power shell script to do this if you use SCCM.

https://dengelonsoftware.blogspot.co.uk/2016/09/silent-install-pycharm-with-shortcut.html

I did this with the pycharm version that I mentioned above.

The silent (/S) installation puts the uninstall registration into HKCU of the installing user, the non-silent installation puts it into HKLM. I'll bet the "bin directory is busy" bug is related and that what happens there is the uninstaller starts from the HKCU registration and apparently expects the installation path to be writable without elevation (i.e. in the user profile). It turns out not to be, and some file operation fails. The exact error is displayed in the installation progress dialog's "Details" view, btw.

To uninstall the result of the silent installation, extract the UninstallString from HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\PyCharm <version> and run it in an elevated command prompt.

Ceterum censeo: This bug would have been avoided by using MSI as the distribution package format. (Wrapping the buggy EXE in an MSI is not a viable alternative.)

@ Chris & JamesDengel

I've been experiencing the same issue when installing pycharm using silent mode /S. I get the same exact issue where it installs under HKCU, but if you navigate to program and features to uninstall it. You will receive the same error mentioned by @PHPStormEvaluator. My issue is related to deploy this multiple Windows 10 machines here for our programmers. This is the script I plan to use when pushing out pycharm,

Here our the issues it is running into

* SCCM utilizes the system account to install the application

* There is no option to remove the application from program and features.

* The install string points HKCU path instead of the HKLM

Here is my script I am currently trying to use.

####################### Uninstall Previous PyCharm Version ##########################

$PyCharm = Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall, HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall, HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall | Get-ItemProperty | Where-Object {$_.DisplayName -match "PyCharm" } |
Select-Object -Property DisplayName, UninstallString

ForEach ($ver in$PyCharm) {

If ($ver.UninstallString) {$uninst = $ver.UninstallString & cmd /c$uninst /S /norestart -NoNewWindow

}

}

############################# Install Path #######################################

$InstallPath = "${env:ProgramFiles(x86)}\JetBrains\PyCharm 2016.3.2\"

$InstallPath .\pycharm-professional-2016.3.2.exe /S /C=$InstallPath

######################### Create a Shortcut with Windows PowerShell #########################

$TargetFile = "$InstallPath\bin\pycharm.exe"

$ShortcutFile = "$env:Public\Desktop\Pycharm 2016.3.2.lnk"

$WScriptShell = New-Object -ComObject WScript.Shell$Shortcut = $WScriptShell.CreateShortcut($ShortcutFile)

$Shortcut.TargetPath =$TargetFile

\$Shortcut.Save()

@ Nixstash

We eventually found the issue it's https://youtrack.jetbrains.com/issue/IDEA-146215

it seem that a silent install should most liekly install as admin and put the key in HKLM but it doesn't create any keys.

i install a PyCharm version 2017.3.2 on windows 10 professional platform on 32 bit, my machine already have python 3.7  and have JVM

and the installation complete successfully, and when i run the program it not run and no action appear

Am I correct in assuming that this is not implemented (or broken) in PyCharm-community 2017.3.3?

Edited by Klondikemarlen

Hi,

The bug is still present with Intellij IDEA 2018 1.5 : Silent install writing uninstall keys in HKCU instead of HKLM. I have UAC disabled on the machine.

Cheers

Does anyone know the switch to uninstall in silent mode? Anything I try I get either a window to uninstall or it will just install again.

Hello everyone, I am trying to perform silent uninstall, however, by default uninstall.exe selects the box that shares the feedback to Jetbrains and opens Google Chrome. Is there any flag which can be used to disable that function?

Thank you

Kindest regards

Jakub

Running this script as an admin in power shell works:

Start-Process -FilePath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2018.2\bin\uninstall.exe" -Arg "/S" -wait

Remove-Item -Path "C:\Program Files (x86)\JetBrains"

Unfortunately it still opens >> https://www.jetbrains.com/rider/uninstall/?version=RD-2018.3.1 in Chrome after running script.

Ahh I thought this was for IntelliJ my apologies.

Hello, I'm trying to automate silent install of Rider. I noticed when I use the /SD flag, I'm still getting the install prompt rather than error messages printed to command line on Windows. Is this the expected behavior? I'm expecting /SD to be super silent such that no dialogues should appear.

** Edit: It was not an error prompt, but a regular install prompt. Error prompt, however, still appears if I just do /S

Edited by Alex Lik Wang

What specific prompts do you get? I'd report a bug at https://youtrack.jetbrains.com/issues/ for the RIDER project.

Ok, I'll file a bug report, thanks.

It's the error dialogue telling me that I'm not using the correct parameters. I was hoping to do a straight forward silent install using /SD flag assuming that default configs will be used if /CONFIG is not used. However, it appears /CONFIG is indeed required.

/CONFIG is indeed required, it's not a bug.