Silent installation stucks
I try to install WinSCP in silent mode, with option to add WinSCP file path to the %PATH% of Windows. It is the first installation, the program was not installed before on this computer (Windows Server 2012 R2).
So, I use the following command line for the installation, in administrator mode:
"C:\temp\WinSCP-5.17.9-Setup.inf" contains:
At the end of the installation, the process stucks. In Windows Tasks Manager, I have the 3 tasks running:
WinSCP.exe
WinSCP-5.17.9-Setup.exe
WinSCP-5.17.9-Setup.tmp
In the installation log file, the last lines are :
It seems the process stucks on Windows %PATH% configuration.
If I kill "WinSCP.exe" process, the installation continue until the end.
And, in the installation log file, the last lines are:
And the file path of WinSCP is correctly added to Windows %PATH%.
But I have to kill WinSCP.exe to finish the installation.
With the same installation command line, if I remove "Tasks=searchpath" in "C:\temp\WinSCP-5.17.9-Setup.inf" the installation goes to the end, but the Windows %PATH% parameter is not modified.
Does it say something to someone ? :)
So, I use the following command line for the installation, in administrator mode:
WinSCP-5.17.9-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /ALLUSERS /LOG="C:\temp\WinSCP_installation.log" /NORESTART /LOADINF="C:\temp\WinSCP-5.17.9-Setup.inf"
"C:\temp\WinSCP-5.17.9-Setup.inf" contains:
[Setup] Lang=fr Dir=C:\Program Files (x86)\WinSCP Group=(Default) NoIcons=0 SetupType=custom Components=main,shellext,pageant,puttygen Tasks=searchpath
At the end of the installation, the process stucks. In Windows Tasks Manager, I have the 3 tasks running:
WinSCP.exe
WinSCP-5.17.9-Setup.exe
WinSCP-5.17.9-Setup.tmp
In the installation log file, the last lines are :
2021-01-25 21:55:05.998 -- Registry entry -- 2021-01-25 21:55:05.998 Key: HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\Configuration\Interface 2021-01-25 21:55:05.998 Value name: DDExtEnabled 2021-01-25 21:55:05.998 Creating or opening the key. 2021-01-25 21:55:05.998 Creating or setting the value. 2021-01-25 21:55:05.998 Successfully created or set the value. 2021-01-25 21:55:05.998 Registering 32-bit DLL/OCX: C:\Program Files (x86)\WinSCP\DragExt64.dll 2021-01-25 21:55:05.999 Spawning 32-bit RegSvr32: "C:\windows\system32\regsvr32.exe" /s "C:\Program Files (x86)\WinSCP\DragExt64.dll" 2021-01-25 21:55:06.070 Registration successful. 2021-01-25 21:55:06.070 Saving uninstall information. 2021-01-25 21:55:06.070 Writing uninstaller messages: C:\Program Files (x86)\WinSCP\unins000.msg 2021-01-25 21:55:06.070 Creating new uninstall key: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\winscp3_is1 2021-01-25 21:55:06.071 Writing uninstall key values. 2021-01-25 21:55:06.071 Detected previous non administrative install? No 2021-01-25 21:55:06.071 Detected previous administrative 64-bit install? No 2021-01-25 21:55:06.100 Installation process succeeded. 2021-01-25 21:55:06.100 -- Run entry -- 2021-01-25 21:55:06.100 Run as: Current user 2021-01-25 21:55:06.100 Type: Exec 2021-01-25 21:55:06.100 Filename: C:\Program Files (x86)\WinSCP\WinSCP.exe 2021-01-25 21:55:06.100 Parameters: /AddSearchPath
It seems the process stucks on Windows %PATH% configuration.
If I kill "WinSCP.exe" process, the installation continue until the end.
And, in the installation log file, the last lines are:
2021-01-25 21:55:06.070 Registration successful. 2021-01-25 21:55:06.070 Saving uninstall information. 2021-01-25 21:55:06.070 Writing uninstaller messages: C:\Program Files (x86)\WinSCP\unins000.msg 2021-01-25 21:55:06.070 Creating new uninstall key: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\winscp3_is1 2021-01-25 21:55:06.071 Writing uninstall key values. 2021-01-25 21:55:06.071 Detected previous non administrative install? No 2021-01-25 21:55:06.071 Detected previous administrative 64-bit install? No 2021-01-25 21:55:06.100 Installation process succeeded. 2021-01-25 21:55:06.100 -- Run entry -- 2021-01-25 21:55:06.100 Run as: Current user 2021-01-25 21:55:06.100 Type: Exec 2021-01-25 21:55:06.100 Filename: C:\Program Files (x86)\WinSCP\WinSCP.exe 2021-01-25 21:55:06.100 Parameters: /AddSearchPath 2021-01-25 21:59:14.291 Process exit code: 1 2021-01-25 21:59:14.291 Post install 2021-01-25 21:59:14.291 Need to restart Windows? No 2021-01-25 21:59:14.295 Done 2021-01-25 21:59:14.295 Recording installer usage statistics: /Usage=TypicalInstallation:0,InstallationsUser+,InstallationsFirstCustom+,LastInstallationAutomaticUpgrade:0,InstallationsSilent+, 2021-01-25 21:59:14.727 Deinitializing Setup. 2021-01-25 21:59:14.727 Preparing installation report 2021-01-25 21:59:14.727 Sending installation report: <removed by admin> 2021-01-25 21:59:14.741 Error sending installation report: WinHttp.WinHttpRequest: The server name or address could not be resolved 2021-01-25 21:59:14.748 Log closed.
And the file path of WinSCP is correctly added to Windows %PATH%.
But I have to kill WinSCP.exe to finish the installation.
With the same installation command line, if I remove "Tasks=searchpath" in "C:\temp\WinSCP-5.17.9-Setup.inf" the installation goes to the end, but the Windows %PATH% parameter is not modified.
Does it say something to someone ? :)