Installation error

Advertisement

CoachKA
Joined:
Posts:
2

Installation error

I am trying to install WinSCP version 5.1.7 on a Windows 7 Enterprise HP laptop. I have selected the default installation settings and receive the following error: Internal error: Failed to expand shell folder constant "userdesktop". My Desktop, Favorites and Personal/Documents directories are on a network drive. I have updated the registry entries, but I still receive the error.

Here is the log file from my last install attempt:

2013-09-16 11:11:18.846 Log opened. (Time zone: UTC-07:00)
2013-09-16 11:11:18.846 Setup version: Inno Setup version 5.4.3 (u)
2013-09-16 11:11:18.846 Original Setup EXE: C:\Users\xxxxx\Downloads\winscp517setup.exe
2013-09-16 11:11:18.846 Setup command line: /SL5="$C093E,4520388,140800,C:\Users\xxxxx\Downloads\winscp517setup.exe" /SPAWNWND=$A06B2 /NOTIFYWND=$1405BA /log="winscpinst.log" /saveinf="instsave.txt"
2013-09-16 11:11:18.846 Windows version: 6.1.7601 SP1 (NT platform: Yes)
2013-09-16 11:11:18.846 64-bit Windows: Yes
2013-09-16 11:11:18.846 Processor architecture: x64
2013-09-16 11:11:18.846 User privileges: Administrative
2013-09-16 11:11:20.221 64-bit install mode: No
2013-09-16 11:11:20.221 Created temporary directory: C:\Users\xxxxx\AppData\Local\Temp\is-GS4TG.tmp
2013-09-16 11:11:28.771 License accepted
2013-09-16 11:11:35.992 Starting the installation process.
2013-09-16 11:11:35.992 Warning: SHGetFolderPath failed with code 0x80070003 on folder 0x8010
2013-09-16 11:11:35.992 Fatal exception during installation process (Exception):
Internal error: Failed to expand shell folder constant "userdesktop"
2013-09-16 11:11:35.992 Exception message:
2013-09-16 11:11:35.992 Message box (OK):
Internal error: Failed to expand shell folder constant "userdesktop"
2013-09-16 11:11:38.835 User chose OK.
2013-09-16 11:11:38.835 Message box (OK):
Setup was not completed.

Please correct the problem and run Setup again.
2013-09-16 11:11:40.641 User chose OK.
2013-09-16 11:11:40.641 Rolling back changes.
2013-09-16 11:11:40.641 Starting the uninstallation process.
2013-09-16 11:11:40.641 Uninstallation process succeeded.
2013-09-16 11:11:42.149 Deinitializing Setup.
2013-09-16 11:11:42.149 Preparing intallation report
2013-09-16 11:11:42.149 Sending installation report: <invalid hyperlink removed by admin>
2013-09-16 11:11:42.492 Installation report send result: 200 OK
2013-09-16 11:11:42.507 Log closed.

Reply with quote

Advertisement

Guest

Re: Installation error

Thank you for the suggestion. I saw this post, but Windows 7 doesn't have the same issues as Windows XP.

I actually solved the issues late yesterday. The shell folder for my desktop was updated with a mapped drive reference. I had to update the reference to a fully qualified/UNC reference. I was able to install the WinSCP client.

Reply with quote

nick0208
Guest

Failed to expand shell folder constant “userprograms” - “SHGetFolderPath failed with code 0x80070002

I get the following error on Windows 10 when installing via the system account or SCCM "Failed to expand shell folder constant “userprograms” - “SHGetFolderPath failed with code 0x80070002"

This error only happens when installing with the System account or SCCM the first 2 times on Windows 10. If install with just the administrators account it doesn’t happen at all. In addition,
SHGetFolderPath has been a deprecated function since Windows Vista.



2016-02-03 15:05:14.549 Log opened. (Time zone: UTC-05:00)
2016-02-03 15:05:14.549 Setup version: Inno Setup version 5.5.5 (u)
2016-02-03 15:05:14.549 Original Setup EXE: C:\Windows\Temp\WinSCP\WINSCP~1.EXE
2016-02-03 15:05:14.549 Setup command line: /SL5="$1001BE,5331554,166912,C:\Windows\Temp\WINSCP~1.EXE" /VERYSILENT /LOADINF=64bit.inf /NORESTART /NOCANDY /LOADINF=64bit.inf /LOG=C:\PROGRA~2\Pkglogs\WinSCP\WINSCP~1.6\Vendor_INST.LOG
2016-02-03 15:05:14.549 Windows version: 6.3.9600 (NT platform: Yes)
2016-02-03 15:05:14.549 64-bit Windows: Yes
2016-02-03 15:05:14.549 Processor architecture: x64
2016-02-03 15:05:14.549 User privileges: Administrative
2016-02-03 15:05:14.549 64-bit install mode: No
2016-02-03 15:05:14.549 Created temporary directory: C:\WINDOWS\TEMP\is-VJQCH.tmp
2016-02-03 15:05:17.221 Extracting temporary file: C:\WINDOWS\TEMP\is-VJQCH.tmp\commander.bmp
2016-02-03 15:05:17.550 Extracting temporary file: C:\WINDOWS\TEMP\is-VJQCH.tmp\explorer.bmp
2016-02-03 15:05:17.878 Extracting temporary file: C:\WINDOWS\TEMP\is-VJQCH.tmp\paypalcard.bmp
2016-02-03 15:05:17.878 License accepted
2016-02-03 15:05:17.878 Warning: SHGetFolderPath failed with code 0x80070002 on folder 0x8002
2016-02-03 15:05:17.878 Exception message:
2016-02-03 15:05:17.878 Message box (OK):
Internal error: Failed to expand shell folder constant "userprograms"
2016-02-03 15:05:51.993 User chose OK.
2016-02-03 15:05:51.993 Deinitializing Setup.
2016-02-03 15:05:51.993 Preparing intallation report
2016-02-03 15:05:51.993 Sending installation report: <link removed by admin>
2016-02-03 15:05:52.008 Error sending installation report: WinHttp.WinHttpRequest: The server name or address could not be resolved

2016-02-03 15:05:52.805 Log closed.

WinSCP-Error.PNG

WinSCP-Error.PNG

WinSCP-Error.PNG

Reply with quote

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

Re: Failed to expand shell folder constant “userprograms” - “SHGetFolderPath failed with code 0x80070002

Thanks for your report.

Can you send me an email, so I can send you back a development version of WinSCP for testing? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum