Topic "Endless installing loop | WinSCP 5.9.3"

Author Message
ClarkParker
[View user's profile]

Joined: 2016-12-12
Posts: 1
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
Advertisements
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26705
Location: Prague, Czechia
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?
Makc666
[View user's profile]

Joined: 2016-12-08
Posts: 52
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.
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26705
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.
Makc666
[View user's profile]

Joined: 2016-12-08
Posts: 52
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
Code:
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
Code:
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:
Code:
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 (34.62 KB) [Download]

Description: (none)

WinSCP-5.9.3-Setup_Logs.zip (10.71 KB) [Download]

Description: (none)

martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26705
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"
Makc666
[View user's profile]

Joined: 2016-12-08
Posts: 52
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" Smile

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:
Code:
%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:
Code:
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.
WinSCP-5.9.3-Setup_Logs_PowerShell.zip (2.1 KB) [Download]

Description: (none)

martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26705
Location: Prague, Czechia
Thanks for your response.

So I assume, all you want is the installer to run unprivileged and install to user profile, right?

This issue has been added to the tracker:
https://winscp.net/tracker/show_bug.cgi?id=1491

And the other one:
https://winscp.net/tracker/show_bug.cgi?id=1492

I'm sending you an email with a development version of WinSCP to the address you have used to register on this forum.
Makc666
[View user's profile]

Joined: 2016-12-08
Posts: 52
Location: MSK-RU
Martin, here are the logs.

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


Try 1
Code:
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
Code:
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:
Code:
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:
Code:
%APPDATA%

which is equal to:
Code:
{HOMEDRIVE}:\Users\{username}\AppData\Roaming
WinSCP-5.9.4 - try.zip (7.64 KB) [Download]

Description: (none)

martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26705
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:
Code:
%APPDATA%

which is equal to:
Code:
{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.
Makc666
[View user's profile]

Joined: 2016-12-08
Posts: 52
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:
Code:
%APPDATA%

which is equal to:
Code:
{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).
Advertisements

You can post new topics in this forum

Search

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License