Failed to expand shell folder constant "userdocs" - X# public installer (win10)

This forum is meant for questions and discussions about the X# language and tools
Post Reply
Anonymous

Failed to expand shell folder constant "userdocs" - X# public installer (win10)

Post by Anonymous »

Hello, everyone.

I'm trying to install X# on my machine through the public installer and I keep getting this error (Failed to expand shell folder constant "userdocs"). I've tried the 207, 208a and RC1 installers, but got the same error on all of them. Any ideas on why this might be happening?

Thanks in advance for your replies.
User avatar
Chris
Posts: 4599
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Failed to expand shell folder constant "userdocs" - X# public installer (win10)

Post by Chris »

Hi! A quick google search reveals that maybe this has to do with using a non-standard location for your user folder? Have you made any change in your windows settings regarding this? See some similar cases (with suggestions) for reference:

https://www.iliumsoft.com/support/artic ... Windows-PC
https://answers.microsoft.com/en-us/win ... e101d37671
https://www.valentina-db.com/en/valenti ... t-userdocs
https://www.unifiedremote.com/tutorials ... t-userdocs
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
LG

Failed to expand shell folder constant "userdocs" - X# public installer (win10)

Post by LG »

I have fixed the issue, it was related to a non-standard 'My Documents' folder location. Thank you for your reply though!
ic2
Posts: 1813
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

Failed to expand shell folder constant "userdocs" - X# public installer (win10)

Post by ic2 »

Hello Chris,

I got the same error today installing the latest public release at the Pc of my client. He indeed has his documents directory on a server disk instead of c:users etc.

I assume it is only solved in the latest Fox build? Or is there anything he can (now) do to install?

Dick
User avatar
robert
Posts: 4290
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Failed to expand shell folder constant "userdocs" - X# public installer (win10)

Post by robert »

Dick,
Why do you install a public build on a clients machine ?
Is this client a developer ?
Otherwise there is no need to install the tool and you should just copy the redist folder to the app folder.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
ic2
Posts: 1813
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

Failed to expand shell folder constant "userdocs" - X# public installer (win10)

Post by ic2 »

Hello Robert,
Is this client a developer ?
Yes. Mainly my employee working on the client's premises but also regularly the contact person of the client develop there.

So X# need to be installed there too. How (or maybe I should ask when?) can we do that?

Dick
User avatar
Chris
Posts: 4599
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Failed to expand shell folder constant "userdocs" - X# public installer (win10)

Post by Chris »

Hi Dick,
ic2 wrote:Hello Robert,
Is this client a developer ?
Yes. Mainly my employee working on the client's premises but also regularly the contact person of the client develop there.

So X# need to be installed there too. How (or maybe I should ask when?) can we do that?

Dick
Is there any chance to use a different PC in your client that uses a standard users folder? I will log this as a problem to be fixed, but I suspect it could be a lot of work to fix it, while it applies to a probably very limited amount of users.
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
ic2
Posts: 1813
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

Failed to expand shell folder constant "userdocs" - X# public installer (win10)

Post by ic2 »

Hello Robert,

I understand, that would be a bit of a waste of time. I will ask him to temporary change his folder to a local folder.

Dick
User avatar
robert
Posts: 4290
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Failed to expand shell folder constant "userdocs" - X# public installer (win10)

Post by robert »

Dick,
The problem seems to be that our installer runs "as admin", so it can install in the "Program files" location, but also wants to add some links to locations that belong to the user, such as the "My Documents" folder.
In your customers case this location is on a Network share and the Administrator apparently does not have access to this network share.
I'll see if I can detect a situation like that for the next installer.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
wriedmann
Posts: 3668
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Failed to expand shell folder constant "userdocs" - X# public installer (win10)

Post by wriedmann »

Hi Robert,
personally I would not like to have these links in my personal folder.
IMHO the installer should behave as other installers and install them in the X# Start Menu folder.
I'm removing them after each installation.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Post Reply