Installation error on windows 10

shaibaz.dhanse@gmail.com's profile image shaibaz.dhanse@gmail.com posted 4 years ago in Installation Permalink

Hello,

While installing application HeidiSql 10.3 in system context on windows 10. installation is getting failed.

2020-02-27 13:52:36.323 Log opened. (Time zone: UTC+05:30) 2020-02-27 13:52:36.323 Setup version: Inno Setup version 6.0.2 (u) 2020-02-27 13:52:36.323 Original Setup EXE: C:\Temp\PKG\HeidiSQL_10.3.0.5771_Setup.exe 2020-02-27 13:52:36.323 Setup command line: /SL5="$30176,20303153,839168,C:\Temp\PKG\HeidiSQL_10.3.0.5771_Setup.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /MERGETASKS="!desktopicon,fileassoc" /LOG="C:\temp\Install.log" 2020-02-27 13:52:36.323 Windows version: 10.0.17763 (NT platform: Yes) 2020-02-27 13:52:36.323 64-bit Windows: Yes 2020-02-27 13:52:36.323 Processor architecture: x64 2020-02-27 13:52:36.323 User privileges: Administrative 2020-02-27 13:52:36.323 Administrative install mode: Yes 2020-02-27 13:52:36.339 Install mode root key: HKEY_LOCAL_MACHINE 2020-02-27 13:52:36.339 64-bit install mode: Yes 2020-02-27 13:52:36.339 Created temporary directory: C:\WINDOWS\TEMP\is-G11DH.tmp 2020-02-27 13:52:36.620 Warning: SHGetFolderPath failed with code 0x80070002 on folder 0x8005 2020-02-27 13:52:36.620 Exception message: 2020-02-27 13:52:36.620 Defaulting to OK for suppressed message box (OK): Internal error: Failed to expand shell folder constant "userdocs" 2020-02-27 13:52:36.620 Deinitializing Setup. 2020-02-27 13:52:36.620 Log closed.

1 attachment(s):
  • Error
ansgar's profile image ansgar posted 4 years ago Permalink

Could you try to install in your own user's context, not in system contect? Or as administrator.

shaibaz.dhanse@gmail.com's profile image shaibaz.dhanse@gmail.com posted 4 years ago Permalink

Application "HeidiSQL_10.3.0.5771_Setup.exe" installs successfully in Administrator context and user context. But application installation fails with error as shown above in system context.

After some research, I found that same issue was observed in winscp application.

its something related to Warning: SHGetFolderPath failed with code 0x80070002 on folder 0x8005 2020-02-27 its something old method of coding. could you please confirm.

shaibaz.dhanse@gmail.com's profile image shaibaz.dhanse@gmail.com posted 4 years ago Permalink

After some research, I found that same issue was observed in winscp application. refer below link. winscp.net/forum/viewtopic.php?p=68126#68126.

shaibaz.dhanse@gmail.com's profile image shaibaz.dhanse@gmail.com posted 4 years ago Permalink

refer below link. https://winscp.net/forum/viewtopic.php?p=68126#68126.

ansgar's profile image ansgar posted 4 years ago Permalink

HeidiSQL uses InnoSetup for the installer. We could post that error in their forum. But to be honest, I don't find it worth to do that, as you should always install in a user context.

Why did you use the system context instead? Never heard that before.

shaibaz.dhanse@gmail.com's profile image shaibaz.dhanse@gmail.com posted 4 years ago Permalink

Since we are going to deploy HeidiSQL through SCCM, which runs in system context. So we are testing in system context to match the behavior.

ansgar's profile image ansgar posted 4 years ago Permalink

In that case I can't help you much I'm afraid. Probably also important to note that all settings are stored in the user context as well, including some which are set by the installer.

shaibaz.dhanse@gmail.com's profile image shaibaz.dhanse@gmail.com posted 4 years ago Permalink

You mean to say HeidiSQL application is not feasible to deploy through SCCM, as SCCM installation runs in system context.

helge's profile image helge posted 4 years ago Permalink

I have the same problem here, on Windows 10 Pro. I just download and start the installer, then this message shows up:

Intern feil Failed to expand shell folder constant "userdocs"

I'm an administrator on my home computer, and it doesn't matter if i just doubleclick the installer or select "run as administrator". My current version is 9.5.0.5196, which I'm quite happy with. But I've seen a few things in the newer versions that I think I'll love.

ansgar's profile image ansgar posted 4 years ago Permalink

Then you seem to lack the "My Documents" folder in your user folder. Is that correct?

ansgar's profile image ansgar posted 4 years ago Permalink

See also issue #811

shaibaz.dhanse@gmail.com's profile image shaibaz.dhanse@gmail.com posted 4 years ago Permalink

Application "HeidiSQL_10.3.0.5771_Setup.exe" installs successfully in Administrator context and user context. But application installation fails with error "Intern feil Failed to expand shell folder constant "userdocs" in system context. After Troubleshooting if found that, its something related to Warning: SHGetFolderPath failed with code 0x80070002 on folder 0x8005 2020-02-27. its something old method of coding.

Same issue was observed in winscp application also. developer must update the coding method.

helge's profile image helge posted 4 years ago Permalink

Sorry to bring this up again. I had resigned, and have been happy with my old version. But now, I guess after some automatic windows 10 update (I'm on Windows 10 Pro build 20152.rs_prerelease.200617-1502, whatever that means), my 9.5 version refuses to start. No messages, it just appears in the task manager list but nothing on-screen. So I guess I'll have to pursue the installation problem that's still there in the latest install. Any news/progress on this?

helge's profile image helge posted 4 years ago Permalink

Now a strange thing happened! After a reaboot and saying "please", the latest installation went just fine! But I'm still unable to start it. It shows up in the task manager, but nothing else.

ansgar's profile image ansgar posted 4 years ago Permalink

Just use HeidiSQL on a regular Windows release, not on a pre-release. See also this thread.

emandell's profile image emandell posted 4 years ago Permalink

Couldnt get it to install same error "Internal error:Failed to expand shell folder constant "userdocs"

My Documents directory does refer to a network drive, I've tried running as administrator and I've also tried the registry fix, neither worked, I dont really fancy working on my C: drive

I am running a regular Windows version not a pre-release Any other options?

Dimi Plyti's profile image Dimi Plyti posted 2 years ago Permalink

Hello Ansgard,

I also had this error message when installing the v12.

The problem was that in the registry under "Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\" for the value "Personal" the network drive "G:\" is entered via GPO. I entered the default value "%USERPROFILE%\Documents" for the installation of the v12, then the v12 installed itself.

After the successful installation I entered "g:\" again and everything works.

Many greetings

Dimi Plyti's profile image Dimi Plyti posted 2 years ago Permalink

Addendum: My error message was "Interner Fehler: Failed to expand shell folder constant userdocs" and did not refer exactly to the "userdesktop" folder as described in the initial post.

Please login to leave a reply, or register at first.