Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Same Issue here - Warning: SHGetFolderPath failed with code 0x80070002 on folder 0x8010

What, if you use /TASKS="desktopicon\common"

Also there's no /NOCADY switch. You probably meant the /NOCANDY, but that's irrelevant in 5.7.7 anyway.
R41Z

Same Issue here - Warning: SHGetFolderPath failed with code 0x80070002 on folder 0x8010

We are trying to install it as System with SCCM on a Windows 10 1511 Build and we get the Error: Warning: SHGetFolderPath failed with code 0x80070002 on folder 0x8010.

Log:
2016-07-11 11:50:48.499 Log opened. (Time zone: UTC+02:00)
2016-07-11 11:50:48.499 Setup version: Inno Setup version 5.5.5 (u)
2016-07-11 11:50:48.499 Original Setup EXE: C:\INSTALL\PKG\WinSCP-5_7_7\Sourcen\winscp577setup.exe
2016-07-11 11:50:48.499 Setup command line: /SL5="$200A6,5334079,166912,C:\INSTALL\PKG\WinSCP-5_7_7\Sourcen\winscp577setup.exe" /VERYSILENT /NORESTART /NOCADY /TASKS="desktopicon" /LOG="C:\WINDOWS\Logs\WinSCP-5_7_7_install.log"
2016-07-11 11:50:48.499 Windows version: 6.3.9600 (NT platform: Yes)
2016-07-11 11:50:48.499 64-bit Windows: Yes
2016-07-11 11:50:48.499 Processor architecture: x64
2016-07-11 11:50:48.499 User privileges: Administrative
2016-07-11 11:50:48.499 64-bit install mode: No
2016-07-11 11:50:48.515 Created temporary directory: C:\WINDOWS\TEMP\is-5Q2L8.tmp
2016-07-11 11:50:49.233 Extracting temporary file: C:\WINDOWS\TEMP\is-5Q2L8.tmp\commander.bmp
2016-07-11 11:50:49.796 Extracting temporary file: C:\WINDOWS\TEMP\is-5Q2L8.tmp\explorer.bmp
2016-07-11 11:50:50.343 Extracting temporary file: C:\WINDOWS\TEMP\is-5Q2L8.tmp\paypalcard.bmp
2016-07-11 11:50:50.343 License accepted
2016-07-11 11:50:50.343 Shell extension C:\Program Files (x86)\WinSCP\DragExt64.dll does not exist yet, allowing installation
2016-07-11 11:50:50.358 Have user programs
2016-07-11 11:50:50.358 Starting the installation process.
2016-07-11 11:50:50.358 Allowing installation of shell extension C:\Program Files (x86)\WinSCP\DragExt64.dll as already decided
2016-07-11 11:50:50.358 Have user programs
2016-07-11 11:50:50.358 Creating directory: C:\Program Files (x86)\WinSCP
2016-07-11 11:50:50.358 Directory for uninstall files: C:\Program Files (x86)\WinSCP
2016-07-11 11:50:50.358 Creating new uninstall log: C:\Program Files (x86)\WinSCP\unins000.dat
2016-07-11 11:50:50.405 -- File entry --
2016-07-11 11:50:50.405 Dest filename: C:\Program Files (x86)\WinSCP\unins000.exe
2016-07-11 11:50:50.421 Time stamp of our file: 2016-07-11 11:50:48.155
2016-07-11 11:50:50.421 Installing the file.
2016-07-11 11:50:50.421 Uninstaller requires administrator: Yes
2016-07-11 11:50:50.499 Successfully installed the file.
2016-07-11 11:50:50.499 -- File entry --
2016-07-11 11:50:50.499 Dest filename: C:\Program Files (x86)\WinSCP\WinSCP.exe
2016-07-11 11:50:50.499 Time stamp of our file: 2016-03-06 10:35:12.000
2016-07-11 11:50:50.499 Installing the file.
2016-07-11 11:50:51.046 Successfully installed the file.
2016-07-11 11:50:51.046 -- File entry --
2016-07-11 11:50:51.046 Dest filename: C:\Program Files (x86)\WinSCP\WinSCP.com
2016-07-11 11:50:51.046 Time stamp of our file: 2016-03-06 10:35:12.000
2016-07-11 11:50:51.046 Installing the file.
2016-07-11 11:50:51.046 Successfully installed the file.
2016-07-11 11:50:51.046 -- File entry --
2016-07-11 11:50:51.046 Dest filename: C:\Program Files (x86)\WinSCP\WinSCP.map
2016-07-11 11:50:51.046 Time stamp of our file: 2016-03-06 10:35:02.000
2016-07-11 11:50:51.046 Installing the file.
2016-07-11 11:50:51.249 Successfully installed the file.
2016-07-11 11:50:51.249 -- File entry --
2016-07-11 11:50:51.249 Dest filename: C:\Program Files (x86)\WinSCP\license.txt
2016-07-11 11:50:51.249 Time stamp of our file: 2016-03-06 10:18:00.000
2016-07-11 11:50:51.249 Installing the file.
2016-07-11 11:50:51.249 Successfully installed the file.
2016-07-11 11:50:51.249 Allowing installation of shell extension C:\Program Files (x86)\WinSCP\DragExt64.dll as already decided
2016-07-11 11:50:51.249 -- File entry --
2016-07-11 11:50:51.249 Dest filename: C:\Program Files (x86)\WinSCP\DragExt64.dll
2016-07-11 11:50:51.249 Time stamp of our file: 2016-03-06 10:35:16.000
2016-07-11 11:50:51.249 Installing the file.
2016-07-11 11:50:51.265 Successfully installed the file.
2016-07-11 11:50:51.265 Will register the file (a DLL/OCX) later.
2016-07-11 11:50:51.265 -- File entry --
2016-07-11 11:50:51.265 Dest filename: C:\Program Files (x86)\WinSCP\PuTTY\LICENCE
2016-07-11 11:50:51.265 Time stamp of our file: 2016-03-06 10:18:00.000
2016-07-11 11:50:51.265 Installing the file.
2016-07-11 11:50:51.265 Creating directory: C:\Program Files (x86)\WinSCP\PuTTY
2016-07-11 11:50:51.280 Successfully installed the file.
2016-07-11 11:50:51.280 -- File entry --
2016-07-11 11:50:51.280 Dest filename: C:\Program Files (x86)\WinSCP\PuTTY\putty.hlp
2016-07-11 11:50:51.280 Time stamp of our file: 2016-03-06 10:18:00.000
2016-07-11 11:50:51.280 Installing the file.
2016-07-11 11:50:51.296 Successfully installed the file.
2016-07-11 11:50:51.296 -- File entry --
2016-07-11 11:50:51.296 Dest filename: C:\Program Files (x86)\WinSCP\PuTTY\pageant.exe
2016-07-11 11:50:51.296 Time stamp of our file: 2016-03-06 10:18:00.000
2016-07-11 11:50:51.296 Installing the file.
2016-07-11 11:50:51.312 Successfully installed the file.
2016-07-11 11:50:51.312 -- File entry --
2016-07-11 11:50:51.312 Dest filename: C:\Program Files (x86)\WinSCP\PuTTY\puttygen.exe
2016-07-11 11:50:51.312 Time stamp of our file: 2016-03-06 10:18:00.000
2016-07-11 11:50:51.312 Installing the file.
2016-07-11 11:50:51.327 Successfully installed the file.
2016-07-11 11:50:51.327 -- File entry --
2016-07-11 11:50:51.327 Dest filename: C:\Program Files (x86)\WinSCP\WinSCP.de
2016-07-11 11:50:51.327 Time stamp of our file: 2016-03-06 10:35:56.000
2016-07-11 11:50:51.327 Installing the file.
2016-07-11 11:50:51.374 Successfully installed the file.
2016-07-11 11:50:51.374 -- Icon entry --
2016-07-11 11:50:51.374 Dest filename: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\WinSCP.lnk
2016-07-11 11:50:51.374 Creating the icon.
2016-07-11 11:50:51.530 Successfully created the icon.
2016-07-11 11:50:51.530 -- Icon entry --
2016-07-11 11:50:51.546 Warning: SHGetFolderPath failed with code 0x80070002 on folder 0x8010
2016-07-11 11:50:51.546 Exception message:
2016-07-11 11:50:51.546 Message box (OK):
Interner Fehler: Failed to expand shell folder constant "userdesktop"
2016-07-11 11:53:31.753 User chose OK.
2016-07-11 11:53:31.753 Registering 32-bit DLL/OCX: C:\Program Files (x86)\WinSCP\DragExt64.dll
2016-07-11 11:53:31.753 Spawning 32-bit RegSvr32: "C:\WINDOWS\system32\regsvr32.exe" /s "C:\Program Files (x86)\WinSCP\DragExt64.dll"
2016-07-11 11:53:32.065 Registration successful.
2016-07-11 11:53:32.081 Installation process succeeded.
2016-07-11 11:53:32.096 Post install
2016-07-11 11:53:32.096 Need to restart Windows? No
2016-07-11 11:53:32.096 Done
2016-07-11 11:53:32.096 Recording installer usage statistics: /Usage=TypicalInstallation:1,InstallationsFirstTypical+,InstallationsSilent+,
2016-07-11 11:53:33.690 Deinitializing Setup.
2016-07-11 11:53:33.690 Preparing intallation report
2016-07-11 11:53:33.690 Sending installation report: <link removed by admin>
2016-07-11 11:53:33.737 Error sending installation report: WinHttp.WinHttpRequest: Der Servername oder die Serveradresse konnte nicht verarbeitet werden.

2016-07-11 11:53:33.753 Log closed.

Is there any suggestion to fix the problem?

Greetings,
R41Z
martin

Re: Silent installation fails while running under system account

Please, show us your script to install WinSCP. How do you run the script? Attach also installer log file showing the problem.
PeterFromWiesbaden

Silent installation fails while running under system account

we roll out WinSCP to our developer machines via a scripted silent installation. We are about to migrate to Windows 10. There the installation fails with the error message:
Internal error: Failed to expand shell folder constant "userdesktop".

We had the same problem installing "Beyond Compare" and got rid of it by using a msi package. Unfortunately there is no msi for WinSCP.

Any ideas?

Peter