Can't write to PersonalFolder on a network path
Hey
I'm wondering if anyone has come across this before and can offer any advice.
As part of my installer, we write a folder and a shortcut within that folder to PersonalFolder, which usually maps to "My Documents". I'm getting a report from a customer that the installation is failing with the error:
"An error occurred while attempting to create the directory: \\<server>\public\homedrives".
(I've replaced some machine and folder names with stuff in <>. Just assume anything in <> is an irrelevant name).
I asked for a log file, and this is what it says:
MSI (s) (3C:F0) [18:22:43:772]: Executing op: SetTargetFolder(Folder=\\<server>\public\homedrives\<user>\My Folder\)
MSI (s) (3C:F0) [18:22:43:772]: Executing op: ShortcutCreate(Name=Predefin.bui|Predefined Stuff,,,FileName=C:\Program Files\<InstallDir>\gallery\,,,,,,,)
CreateShortcuts: Shortcut: Predefin.bui|Predefined Stuff
MSI (s) (3C:F0) [18:22:43:788]: Note: 1: 1317 2: \\<server>\public\homedrives
MSI (s) (3C:F0) [18:22:43:788]: Note: 1: 2205 2: 3: Error
MSI (s) (3C:F0) [18:22:43:788]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1317
Error 1317. An error occurred while attempting to create the directory: \\<server>\public\homedrives
So it looks like the installer is trying to create the directory "homedrives", but it doesn't have permission...I've confirmed that \\<server>\public\homedrives\<user> exists and is writable by the user.
Other information that may be useful: The following environment variables are set:
HOMEDRIVE=H:\
HOMEPATH=
HOMESHARE=\\<server>\public\homedrives\<user>
He has the home directory mounted to H:\. The operating system is Windows XP SP3.
The worst part is that the installer errors on this and doesn't complete, so we can't get the thing installed. Does anyone know why he is getting this error and what we can do to fix it, or at least what we can do to work around it so that I can get the thing installed.
Thanks!
Grant
I'm wondering if anyone has come across this before and can offer any advice.
As part of my installer, we write a folder and a shortcut within that folder to PersonalFolder, which usually maps to "My Documents". I'm getting a report from a customer that the installation is failing with the error:
"An error occurred while attempting to create the directory: \\<server>\public\homedrives".
(I've replaced some machine and folder names with stuff in <>. Just assume anything in <> is an irrelevant name).
I asked for a log file, and this is what it says:
MSI (s) (3C:F0) [18:22:43:772]: Executing op: SetTargetFolder(Folder=\\<server>\public\homedrives\<user>\My Folder\)
MSI (s) (3C:F0) [18:22:43:772]: Executing op: ShortcutCreate(Name=Predefin.bui|Predefined Stuff,,,FileName=C:\Program Files\<InstallDir>\gallery\,,,,,,,)
CreateShortcuts: Shortcut: Predefin.bui|Predefined Stuff
MSI (s) (3C:F0) [18:22:43:788]: Note: 1: 1317 2: \\<server>\public\homedrives
MSI (s) (3C:F0) [18:22:43:788]: Note: 1: 2205 2: 3: Error
MSI (s) (3C:F0) [18:22:43:788]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1317
Error 1317. An error occurred while attempting to create the directory: \\<server>\public\homedrives
So it looks like the installer is trying to create the directory "homedrives", but it doesn't have permission...I've confirmed that \\<server>\public\homedrives\<user> exists and is writable by the user.
Other information that may be useful: The following environment variables are set:
HOMEDRIVE=H:\
HOMEPATH=
HOMESHARE=\\<server>\public\homedrives\<user>
He has the home directory mounted to H:\. The operating system is Windows XP SP3.
The worst part is that the installer errors on this and doesn't complete, so we can't get the thing installed. Does anyone know why he is getting this error and what we can do to fix it, or at least what we can do to work around it so that I can get the thing installed.
Thanks!
Grant
0 Comments
[ + ] Show comments
Answers (5)
Please log in to answer
Posted by:
anonymous_9363
13 years ago
Posted by:
itolutions
13 years ago
Check your deployment contex. May be you are installing package under SYSTEM contex. But "\\<server>\public\homedrives\<user>" can be accessable only for User (modify permissions).
1) Ask customer to give you permissions list for this folder.
2) Recomend to try to install package with "Iteract with user contex" option.
1) Ask customer to give you permissions list for this folder.
2) Recomend to try to install package with "Iteract with user contex" option.
Posted by:
garnold54
13 years ago
Thanks for the replies. They are installing from the command line and invoking the installer as the current user. Does the installer switch to using the SYSTEM account when doing the actual installation? How can I run an MSI installer with the "Interact with user context" option?
He has sent me a screenshot of the permissions on that folder, and it looks like "SYSTEM" has Full Control on that folder...
He has sent me a screenshot of the permissions on that folder, and it looks like "SYSTEM" has Full Control on that folder...
Posted by:
itolutions
13 years ago
Posted by:
anonymous_9363
13 years ago
it looks like "SYSTEM" has Full Control on that folder.Yes, but that will be the System account on the box hosting the folder, not the System account of the machine you're installing to. In any event, you've already told us that they're installing from the command line and using the currently logged-in user account. I *hope* that that account is a local administrator account and NOT that their ordinary users have administrator privileges (although that's not your problem, of course...)
When they're logged in, can they create the folder from the command line? Obviously, they'll need to use a mapped drive, as DOS doesn't understand UNC. It might be that the users have Modify rights but not Create rights. Also, if they're using a local administrator account, does THAT account have permissions to create the folder. Unlikely, in my view...
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.