Failed to expand shell folder constant userdocs
Всем доброго времени суток.
Начину издалека. Решил приобрести новый SSD, чтобы был побольше (120gb против 250gb) и чтобы не тормозил по мере заполнения объема оного (был Kingston SSDnow V300, стал SAMSUNG 850 EVO), соответственно встал вопрос переустановки ОСи, что всегда сопровождается неким выходом из зоны комфорта. Но я пересилил себя, и конечном счете ОСь была установлена, и показалось мне, что встала она «криво». В итоге, ОСь была переустановлена еще раз. Как мне показалось, на этот раз все встало нормально. В итоге, были установлены все нужные драйвера, программы, были произведена настройка «под себя», и все бы хорошо. Но во-время установки одного исполнительного файла, появилась следующая ошибка:
Internal error. Failed to expand shell folder constant «userstartup»
Всем привет, уважаемые форумчане! возникла проблема при установке приложения на компьютер. скрин в.
Internal error: Failed to expand shell folder constant «localappdata»
Люди, помогите! Стало появлятся окно:Internal error: Failed to expand shell folder constant.
Не видит стили при ЧПУ по адресу вида http://host/index.php/some-folder/other-folder
Собственно как? Сервер проглатывает такую строку, а вот пхп начинает чудить, не видит таблиц.
Expected constant expression; cannot allocate an array of constant size 0
Доброго утра. Народ помогите, вот программа оформлена в виде функции #include #include.
В общем, знатоки, выручайте.
p.s. Win. 7 Ultimate x64 (крякнутая)
Добавлено через 20 минут
Забыл добавить, что имею склонность переносить папку мои документы. Мне кажется, что проблема может быть в этом. Исполнительный файл, которым я пользуюсь, создает папки в «Моих Документах». Я заметил, что на этой папке стоит параметр «только чтение», и убрать его никак нельзя (возвращается обратно). Так же заметил, что «Мои Документы» больше нельзя перенести.
В общем, гуглил-гуглил, и как минимум в рунете ничего дельного не нашел.
internal error — failed to expand shell folder constant «user docs
You have mentioned that you don’t remember the location so, created a new folder with the same name which will not work. Try the below methods.
METHOD 1
1. Right Click on Start
2. Select Explore from the Menu
3. Click on the Users Folder and see if you are able to find the folder.
METHOD 2
Type this command %USERPROFILE%\Documents in the start search box and check if you are able to find the folder.
METHOD 3
· Click on Start and in the start search box type regedit and press enter
· Go to the location HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
Once “User Shell Folders” is highlighted, right click that key and select export and save that to your computer as a backup.
Once you have exported that key, select “User Shell Folder” and on the right pane locate Personal and see what the path is set to. Set it to the default which will be %USERPROFILE%\Documents (Double click Personal to change the Value). If the Personal is missing from there you are going to create it. Follow the steps below.
While User Shell Folders is still highlighted, in that right pane right click an open area and select new, then Expandable String Value. Once that Value is created (Personal), right click that new Value and select modify. In the Value data field type or copy and paste the following as the Value %USERPROFILE%\Documents and click ok.
For more information visit
Thanks and Regards,
Bindu S: MICROSOFT SUPPORT
Visit our Microsoft Answers Feedback Forum and let us know what you think.
Avoiding “Failed to expand shell folder constant userdocs” errors in Inno Setup
I install some sample documents into a ‘PerfectTablePlan’ sub-folder of the standard ‘My documents’ folder on Windows. This works fine for 99%+ of users. But if a user doesn’t have a ‘My documents’ folder I get a number of ugly error messages of the form:
Internal error:Failed to expand shell folder constant “userdocs”
This is not very confidence inspiring for the user!
It is acceptable to not install the samples for these users (or install them somewhere else). But not to show the ugly error messages.
The problem seems to come from the ExpandConstant macro expansion of
Is there some way I can get the path of ‘My documents’ without using a macro?
Or some way to suppress the error message? ExpandConstant throws an exception: http://www.jrsoftware.org/ishelp/index.php?topic=isxfunc_expandconstant
The relevant parts of my .iss file looks like this:
2 Answers 2
Failed to expand shell folder constant ‘constant name’
is raised when the internally called SHGetFolderPath function (called from inside ExpandConstant when expanding a shell folder constant) returns an empty path string for the given folder CSIDL, in this case for the CSIDL_PERSONAL identifier.
That means the user doesn’t have the CSIDL_PERSONAL folder. It makes me wonder how can one configure Windows’ user account to not have that folder. Well, you can workaround this issue (or Windows misconfiguration ?) by catching the raised internal exception in the try..except block:
But I’ve never heard about possibility of not having the CSIDL_PERSONAL folder. Please note, that the above code protects only the
We use folder redirection here and have had issues similar to this with other apps (GnuCash, UFile). The problem in our case was a result of a feature called Redirected Folder Migration*, which in some cases did not update the user’s registry settings to point to the new location after the migration was completed (note this migration might occur weeks after the GPO was set).
Anyway, it’s not that the entry was blank, but that it pointed to a SERVER\SHARE that had been brought offline weeks earlier.
Running a gpupdate /force for every active user on every machine fixed our problem, as it updated the registry and then told the user he had to logoff / logon.