Endless installing loop | WinSCP 5.9.3

Advertisement

ClarkParker
Joined:
Posts:
1

Endless installing loop | WinSCP 5.9.3

Hi there,

just f.y.i.

In the new Version WinSCP 5.9.3 I found a little Bug in the installer.

If the user account is no local admin on the installing machine, the installer will loop endless without any ui - the process starts over and over again... it's impossible to quit the process... the only way is to restart(or logout).
"Run as" (domain) administrator works of course.


WinSCP 5.9.3
Windows 7 64 bit German

For more info feel free to contact me

Greetings
Flo

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,442
Location:
Prague, Czechia

Re: Endless installing loop | WinSCP 5.9.3

Thanks for your report.

I cannot reproduce the problem.

Do you get a UAC prompt? Or not even that?

Can you enable logging using /log=c:\path\to\log.log command-lie switch and attach the log here?

Reply with quote

Makc666
Joined:
Posts:
50
Location:
MSK-RU

Really I have the same issue with v5.9.3 installer.
I relly think you know about this one.
Will try to find the logs.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,442
Location:
Prague, Czechia

Makc666 wrote:

Really I have the same issue with v5.9.3 installer.
I relly think you know about this one.
Will try to find the logs.
No I'm not. It works for me. Please attach the log.

Reply with quote

Makc666
Joined:
Posts:
50
Location:
MSK-RU

martin wrote:

Can you enable logging using /log=c:\path\to\log.log command-lie switch and attach the log here?

There is no any UAC prompt.

Here is the log.

1. I start
cmd.exe /K D:\Distribs\WinSCP\WinSCP-5.9.3-Setup.exe /log=D:\Distribs\WinSCP\WinSCP-5.9.3-Setup.log
2. Log file is been created
D:\Distribs\WinSCP\WinSCP-5.9.3-Setup.log
3. A windows appears saying that Russian translation it only 97% and asks to press "OK". I press "OK" and the process restarted.
4. After that a new log file is been created like:
D:\Distribs\WinSCP\WinSCP-5.9.3-Setup.log-elevated
5. And every time I press "OK" a new log file is been created with adding -elevated to the filename end.

P.S. WinSCP-5.9.1-Setup.exe the same problem.

WinSCP-5.9.3-Setup_01.png

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,442
Location:
Prague, Czechia

Thanks for the logs.

1) If you right-click the installer and select "Run as Administrator", what does it do?

2) What does this command do? powershell.exe -Command "Start-Process WinSCP-5.9.3-Setup.exe -Verb RunAs"

Reply with quote

Makc666
Joined:
Posts:
50
Location:
MSK-RU

martin wrote:

1) If you right-click the installer and select "Run as Administrator", what does it do?
This particular computer is in Domain and has limited rights to install software. In other words my user is in group "Users".
This really means that I don't have rights to folders like "C:\Program Files (x86)\" or "C:\Program Files" or "C:\Windows" :)

So if I try "Run as Administrator" this will do all the same because I don't have Administrator's rights and I can't obtain them.

martin wrote:

2) What does this command do? powershell.exe -Command "Start-Process WinSCP-5.9.3-Setup.exe -Verb RunAs"
I tried to run:
%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -Command "Start-Process D:\Distribs\WinSCP\WinSCP-5.9.3-Setup.exe -Verb RunAs
also tried to run:
cmd.exe /K %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -Command "Start-Process D:\Distribs\WinSCP\WinSCP-5.9.3-Setup.exe -Verb RunAs

It really do the same. After about 15-20 seconds I see a windows about 97% translation and when I press OK then process restarts.
Logs really the same but I attached them.

I also tried:
1. Started C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
2. Put there: Start-Process D:\Distribs\WinSCP\WinSCP-5.9.3-Setup.exe /log=D:\Distribs\WinSCP\WinSCP-5.9.3-Setup_powershell2.log -Verb RunAs
3. Got the same situation.

Reply with quote

Makc666
Joined:
Posts:
50
Location:
MSK-RU

Martin, here are the logs.

I started both tries like:
D:\Distribs\WinSCP\WinSCP-5.9.4-*.exe /log=D:\Distribs\WinSCP\WinSCP-5.9.4-*.exe.log

Try 1
Installer offered the folder (path):
C:\Program Files (x86)\WinSCP\

I decided to install to that folder:
C:\Program Files (x86)\WinSCP\

And got Message box (Abort/Retry/Ignore) with words "no access (in Russian).

Hit several times Retry and then Abort.

P.S. Also I want to note that I have folder 
C:\Program Files (x86)\WinSCP\
with old version of WinSCP
which was installed to that folder with Administrator privileges in the past
but I don't have access to it for Write/Edit actions.

Try 2
Installer offered the folder:
C:\Program Files (x86)\WinSCP\

I manually selected the folder to install:
C:\Users\TESTSStin\AppData\Roaming\WinSCP\

And installed to it.

P.S.

I looked throw the logs and found the line:
2016-12-21 15:32:20.051   Does not have write access to the last installation path [C:\Program Files (x86)\WinSCP]

I really think that when Installer sees that it does not have write access to the last installation path [C:\Program Files (x86)\WinSCP]
then it has to propose the path:
%APPDATA%
which is equal to:
{HOMEDRIVE}:\Users\{username}\AppData\Roaming

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,442
Location:
Prague, Czechia

Makc666 wrote:

I really think that when Installer sees that it does not have write access to the last installation path [C:\Program Files (x86)\WinSCP]
then it has to propose the path:
%APPDATA%
which is equal to:
{HOMEDRIVE}:\Users\{username}\AppData\Roaming
It does that. But for new installations only. For upgrades, it's difficult to guess, what the user actually wants. Perhaps the installer should ask.

Reply with quote

Makc666
Joined:
Posts:
50
Location:
MSK-RU

martin wrote:

Makc666 wrote:

I really think that when Installer sees that it does not have write access to the last installation path [C:\Program Files (x86)\WinSCP]
then it has to propose the path:
%APPDATA%
which is equal to:
{HOMEDRIVE}:\Users\{username}\AppData\Roaming
It does that. But for new installations only. For upgrades, it's difficult to guess, what the user actually wants. Perhaps the installer should ask.

I do understand you, Martin.

1. Logically the Installer sees that the folder C:\Program Files (x86)\WinSCP\ exists.
2. So Installer wants ti Upgrade in this case.
3. But then Installer checks that folder for Write access and fails.

At such situation (and this is my situation) I really thing that Installer has to propose to make a new installation and may be to move setting from old directory to a new one.

Also the steps 1.2.3. can be hidden for user so he just sees a note that only New installation to New folder can be made (with proposal to move setting if the *.ini file is kept in old folder).

Reply with quote

Advertisement

You can post new topics in this forum