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 SERVERSHARE 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.
*Redirected Folder Migration allows an admin to specify that each user’s (e.g.) My Documents folder should be moved from one network location to another. It does this in a slow, measured fashion, the next time the user logs on to (any workstation on) the domain (so if your last user only logs on a month from now, the process takes a month to complete). It’s a lovely idea in theory, but in practice is a big PITA.
Incidentally, the ‘share doesn’t exist because it’s impersonating another user’ thing shouldn’t be an issue with properly redirected folders because the redirect should use a URL, not a mapped drive letter (e.g. \serverRedirectedUserFoldersSOME-USERMy Documents, although permissions might be an issue if you remove some default rights).
1 / 1 / 1 Регистрация: 20.10.2014 Сообщений: 26 |
|
1 |
|
28.12.2015, 09:59. Показов 18597. Ответов 8
Всем доброго времени суток. Начину издалека. Решил приобрести новый SSD, чтобы был побольше (120gb против 250gb) и чтобы не тормозил по мере заполнения объема оного (был Kingston SSDnow V300, стал SAMSUNG 850 EVO), соответственно встал вопрос переустановки ОСи, что всегда сопровождается неким выходом из зоны комфорта. Но я пересилил себя, и конечном счете ОСь была установлена, и показалось мне, что встала она «криво». В итоге, ОСь была переустановлена еще раз. Как мне показалось, на этот раз все встало нормально. В итоге, были установлены все нужные драйвера, программы, были произведена настройка «под себя», и все бы хорошо. Но во-время установки одного исполнительного файла, появилась следующая ошибка: Миниатюры
0 |
1 / 1 / 1 Регистрация: 20.10.2014 Сообщений: 26 |
|
28.12.2015, 10:34 [ТС] |
2 |
В общем, знатоки, выручайте. p.s. Win. 7 Ultimate x64 (крякнутая) Добавлено через 20 минут В общем, гуглил-гуглил, и как минимум в рунете ничего дельного не нашел.
0 |
Модератор 15222 / 7805 / 734 Регистрация: 03.01.2012 Сообщений: 32,190 |
|
28.12.2015, 12:16 |
3 |
Асоциальный, Проверьте права на папку «Мои документы» (если вы папку перенесли, а потом переустановили ОС, то эта перенесённая папка не перезаписалась аналогичной из новой системы, а её принадлежность старой системе осталась). Надо стать её владельцем из новой системы
0 |
1 / 1 / 1 Регистрация: 20.10.2014 Сообщений: 26 |
|
28.12.2015, 12:30 [ТС] |
4 |
gecata, попробовал, но увы — не помогло. Я первым делом переношу «мои документы» из «С» на «D», так что ничего я не забыл, да и проблемы тогда бы не было. Быть может, будут еще какие-нибудь варианты по решению данной проблемы?
0 |
Модератор 15222 / 7805 / 734 Регистрация: 03.01.2012 Сообщений: 32,190 |
|
28.12.2015, 13:04 |
5 |
Так сколько у вас этих папок на компе (и о какой точно папке речь? как она «официально» называется?)
0 |
1 / 1 / 1 Регистрация: 20.10.2014 Сообщений: 26 |
|
28.12.2015, 13:17 [ТС] |
6 |
Так сколько у вас этих папок на компе (и о какой точно папке речь? как она «официально» называется?) Папка «Мои Документы» может быть только одна, нет? По крайней мере, которую таковой воспринимает система. И называется она соответствующе. Не совсем понимаю вопрос.
0 |
Модератор 15222 / 7805 / 734 Регистрация: 03.01.2012 Сообщений: 32,190 |
|
28.12.2015, 15:00 |
7 |
Ну, во-первых, не одна. А в каждом из профилей по штуке. Во-вторых, её «официальное» имя — Documents (если речь не о библиотеке «Документы»). В-третьих, всё-таки, запустите поиск по всему компьютеру, забив в строчку поиска «Мои Документы» (без кавычек) и выложите скриншот — что получилось
2 |
1 / 1 / 1 Регистрация: 20.10.2014 Сообщений: 26 |
|
28.12.2015, 15:34 [ТС] |
8 |
Не знаю, что это даст, но вот: Миниатюры
0 |
1 / 1 / 1 Регистрация: 20.10.2014 Сообщений: 26 |
|
28.12.2015, 16:13 [ТС] |
9 |
РешениеПроблема была решена правкой реестра на: [HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerUser Shell Folders] Я уже не помню, какой именно путь был изначально, но других активных папок «Мои Документы» через поиск найдено не было (как видно по скриншоту). Зато после правки реестра на D диске появилась еще одна папка с соответствующим названием (была каким-то хитрым образом скрыта или черт его знает), однако работала она, вероятно, не корректно. В общем, для последующих поколений: суть выше указанной ошибки («Failed to expand shell folder constant userdocs») из первого поста, в проблемах с расположением папки «Мои Документы» (вероятно, из-за моих кривых рук, однако не уверен).
1 |
According to the logs, it looks like you are installing WinMerge silently using software like System Center Configuration Manager instead of the usual way.
Is this my guess correct?
When I do a silent installation with administrative privileges, I get the following log output.
2020-06-05 22:08:00.493 Log opened. (Time zone: UTC+09:00)
2020-06-05 22:08:00.493 Setup version: Inno Setup version 5.6.1 (u)
2020-06-05 22:08:00.493 Original Setup EXE: c:devwinmergeBuildReleasesWinMerge-2.16.6-x64-Setup_no_support_for_per-user_installation.exe
2020-06-05 22:08:00.493 Setup command line: /SL5="$151FCA,6798723,121344,c:devwinmergeBuildReleasesWinMerge-2.16.6-x64-Setup_no_support_for_per-user_installation.exe" /VERYSILENT /NOCLOSEAPPLICATIONS /NORESTARTAPPLICATIONS /NORESTART /SP- /SUPPRESSMSGBOXES /LOG=C:tmpWinMerge-2.16.6-x64-Setup_no_support_for_per-user_installation.exe.log
2020-06-05 22:08:00.493 Windows version: 10.0.19041 (NT platform: Yes)
2020-06-05 22:08:00.493 64-bit Windows: Yes
2020-06-05 22:08:00.493 Processor architecture: x64
2020-06-05 22:08:00.493 User privileges: Administrative
2020-06-05 22:08:00.501 64-bit install mode: Yes
2020-06-05 22:08:00.508 Created temporary directory: C:UserssawanAppDataLocalTempis-EP6BD.tmp
2020-06-05 22:08:00.516 -- DLL function import --
2020-06-05 22:08:00.516 Function name: GetSysColor
2020-06-05 22:08:00.516 DLL name: user32.dll
2020-06-05 22:08:00.516 Dest DLL name: user32.dll
2020-06-05 22:08:00.516 Importing the DLL function.
2020-06-05 22:08:00.516 Successfully imported the DLL function. Delay loaded? No
2020-06-05 22:08:01.376 Starting the installation process.
2020-06-05 22:08:01.432 Directory for uninstall files: C:Program FilesWinMerge
....
One interesting difference from your log is that the Created temporary directory line in your log does not include the user’s name.
Perhaps the account that installs WinMerge is not the same account that performs the usual GUI operations.
So I assume it is a failed attempt to get the desktop folder path.
Install as a normal user or pull requests are welcome.
Содержание
- Internal error failed to expand shell folder constant userdocs
- Internal error failed to expand shell folder constant userdocs
- Internal error failed to expand shell folder constant userdocs
- Как избежать ошибок «Не удалось раскрыть папку оболочки с константой userdocs» в Inno Setup
- Internal error failed to expand shell folder constant userdocs
Internal error failed to expand shell folder constant userdocs
I’m trying to run the Windows installer for Xojo ADK but I’m getting an error as described in the subject. I’m using the defaults for all options in the installer. This is on Windows 10. I’ve attached a screen shot of the installer error.
What am I overlooking? Do I need to uninstall previous versions of Valentina?
I don’t run Xojo in Windows. The only reason I need to install is so I can grab the Vcomponents files for my app installation.
Is the Documents folder mapped to a non-standard location (not the C:UsersusernameDocuments, for example)?
The path appears to be C:UsersAdministratorDocuments
Administrator is the account I sign on with.
That’s strange, yes, I think it makes a difference, we’ll check it.
Problem solved. It was a mapping problem. It appears there was some kind of alias for the Documents folder pointing to a shared drive that no longer existed. I think this was a carryover from a previous installation of Windows 8 with VMWare.
It would show in the Windows Explorer sidebar but would give an error when I clicked on it saying it was not connected. I removed that and now the installer is working as expected.
Источник
Internal error failed to expand shell folder constant userdocs
I’m trying to run the Windows installer for Xojo ADK but I’m getting an error as described in the subject. I’m using the defaults for all options in the installer. This is on Windows 10. I’ve attached a screen shot of the installer error.
What am I overlooking? Do I need to uninstall previous versions of Valentina?
I don’t run Xojo in Windows. The only reason I need to install is so I can grab the Vcomponents files for my app installation.
Is the Documents folder mapped to a non-standard location (not the C:UsersusernameDocuments, for example)?
The path appears to be C:UsersAdministratorDocuments
Administrator is the account I sign on with.
That’s strange, yes, I think it makes a difference, we’ll check it.
Problem solved. It was a mapping problem. It appears there was some kind of alias for the Documents folder pointing to a shared drive that no longer existed. I think this was a carryover from a previous installation of Windows 8 with VMWare.
It would show in the Windows Explorer sidebar but would give an error when I clicked on it saying it was not connected. I removed that and now the installer is working as expected.
Источник
Internal error failed to expand shell folder constant userdocs
I’m trying to run the Windows installer for Xojo ADK but I’m getting an error as described in the subject. I’m using the defaults for all options in the installer. This is on Windows 10. I’ve attached a screen shot of the installer error.
What am I overlooking? Do I need to uninstall previous versions of Valentina?
I don’t run Xojo in Windows. The only reason I need to install is so I can grab the Vcomponents files for my app installation.
Is the Documents folder mapped to a non-standard location (not the C:UsersusernameDocuments, for example)?
The path appears to be C:UsersAdministratorDocuments
Administrator is the account I sign on with.
That’s strange, yes, I think it makes a difference, we’ll check it.
Problem solved. It was a mapping problem. It appears there was some kind of alias for the Documents folder pointing to a shared drive that no longer existed. I think this was a carryover from a previous installation of Windows 8 with VMWare.
It would show in the Windows Explorer sidebar but would give an error when I clicked on it saying it was not connected. I removed that and now the installer is working as expected.
Источник
Как избежать ошибок «Не удалось раскрыть папку оболочки с константой userdocs» в Inno Setup
Я устанавливаю несколько образцов документов в подпапку «PerfectTablePlan» стандартной папки «Мои документы» в Windows. Это отлично работает для 99% + пользователей. Но если у пользователя нет папки «Мои документы», я получаю несколько уродливых сообщений об ошибках вида:
Internal error:Failed to expand shell folder constant “userdocs”
Это не очень вселяет уверенность у пользователя!
Допускается не устанавливать образцы для этих пользователей (или устанавливать их где-нибудь еще). Но не для того, чтобы показывать уродливые сообщения об ошибках.
Проблема, похоже, связана с расширением макроса ExpandConstant для .
Есть ли способ получить путь к «Моим документам» без использования макроса?
Или каким-то образом подавить сообщение об ошибке? ExpandConstant выдает исключение: http://www.jrsoftware.org/ishelp/index.php?topic=isxfunc_expandconstant
Соответствующие части моего файла .iss выглядят так:
Failed to expand shell folder constant ‘constant name’
возникает, когда вызываемая изнутри SHGetFolderPath функция (вызываемая изнутри ExpandConstant при раскрытии константы папки оболочки) возвращает пустую строку пути для данной папки CSIDL, в данном случае для CSIDL_PERSONAL идентификатора.
Это означает, что у пользователя нет CSIDL_PERSONAL папки. Это заставляет меня задаться вопросом, как можно настроить учетную запись пользователя Windows, чтобы не было этой папки. Что ж, вы можете обойти эту проблему (или неправильную конфигурацию Windows?), Перехватив возникшее внутреннее исключение в try..except блоке:
Но я никогда не слышал о возможности отсутствия CSIDL_PERSONAL папки. Обратите внимание, что приведенный выше код защищает только константу.
Здесь мы используем перенаправление папок, и у нас были проблемы, похожие на это, с другими приложениями (GnuCash, UFile). В нашем случае проблема возникла из-за функции под названием «Миграция перенаправленной папки *», которая в некоторых случаях не обновляла параметры реестра пользователя, чтобы они указывали на новое местоположение после завершения миграции (обратите внимание, что эта миграция может произойти через несколько недель после того, как объект групповой политики был набор).
В любом случае, дело не в том, что запись была пустой, а в том, что она указывала на SERVER SHARE, который был отключен неделями ранее.
Запуск a gpupdate /force для каждого активного пользователя на каждой машине устранил нашу проблему, поскольку он обновил реестр, а затем сказал пользователю, что он должен выйти / войти в систему.
* Перенаправленная миграция папок позволяет администратору указать, что папка «Мои документы» каждого пользователя (например,) должна быть перемещена из одного сетевого местоположения в другое. Он делает это медленно и размеренно, когда в следующий раз пользователь войдет в домен (на любую рабочую станцию) в домен (так что, если ваш последний пользователь входит в систему только через месяц, процесс займет месяц). В теории это прекрасная идея, но на практике это большая PITA.
Между прочим, «общий ресурс не существует, потому что он олицетворяет другого пользователя» не должен быть проблемой с правильно перенаправленными папками, потому что перенаправление должно использовать URL-адрес, а не букву подключенного диска (например, server RedirectedUserFolders SOME-USER Мои документы, хотя при удалении некоторых прав по умолчанию могут возникнуть проблемы с разрешениями).
Источник
Internal error failed to expand shell folder constant userdocs
I’m trying to run the Windows installer for Xojo ADK but I’m getting an error as described in the subject. I’m using the defaults for all options in the installer. This is on Windows 10. I’ve attached a screen shot of the installer error.
What am I overlooking? Do I need to uninstall previous versions of Valentina?
I don’t run Xojo in Windows. The only reason I need to install is so I can grab the Vcomponents files for my app installation.
Is the Documents folder mapped to a non-standard location (not the C:UsersusernameDocuments, for example)?
The path appears to be C:UsersAdministratorDocuments
Administrator is the account I sign on with.
That’s strange, yes, I think it makes a difference, we’ll check it.
Problem solved. It was a mapping problem. It appears there was some kind of alias for the Documents folder pointing to a shared drive that no longer existed. I think this was a carryover from a previous installation of Windows 8 with VMWare.
It would show in the Windows Explorer sidebar but would give an error when I clicked on it saying it was not connected. I removed that and now the installer is working as expected.
Источник
If you’ve moved the standard Windows folders (for example to a network share) then the installer may crash with the error «Failed to expand shell folder constant userdocs».
1
Try running the installer as administrator (right-click > Run As Administrator).
2
Try using the Portable version instead:
https://www.unifiedremote.com/download/other
3
If you’re dealing with network drives, then this article may help:
http://www.winability.com/how-to-make-elevated-programs-recognize-network-drives/
4
If that doesn’t help, then the only sure way to resolve the issue is to move your Windows folders back to the default location.