Is it a bad practice to include a script to map network drive inside a custom action?
I think it should be done outside the installation. What do you think?
0 Comments
[ + ] Show comments
Answers (2)
Answer Summary:
Please log in to answer
Posted by:
dunnpy
9 years ago
Top Answer
It should be outside of your package and be managed correctly with via GPO or login script.
There are many reason why, but the main one will be that it won't work if you are installing in the system context, as there won't be permissions to access the network resource.
Dunnpy
There are many reason why, but the main one will be that it won't work if you are installing in the system context, as there won't be permissions to access the network resource.
Dunnpy
Comments:
-
I totally agree with you, I asked because it was a requirement from customer... - enzio 9 years ago
Posted by:
EdT
9 years ago
Accept that many customers are poorly skilled and will need education on how network security works. It is technically possible to set up a "Null session share" on a server that allows connections without credentials, but since it totally undermines server security, it is a truly stupid thing to do.
Application installers should never have dependencies on network resources during installation - there are always solutions to any issues you can encounter in the real world.