[Closed] Copying files, administator rights?
Hi,
I have this script, lets say this is an installer for all my scripts. I would like it to run on the drop in the viewport. Now that it’s reading itselfs path correctly I have another problem. I guess this is a problem of administrator rights.
To make the script run and copy (other scripts) correctly I need to run 3ds max as administrator. This way it’s working perfectly, except one thing. I cannot drop scripts into the viewport when 3ds max run as administrator.
When I run as non-administrator I can drop the script into the viewport, but script does not copy all the files.
What can I do to make a script be able to run on drop in the viewport and copy all the files correctly?
if your install method is to drop into the viewport, why not use the mzp package?
Failing that, there are MANY ways to deploy scripts across multiple computers. Perhaps you could explain your workflow and we can help.
Make sure your script goes to userscripts rather than the scripts directory if you want to avoid permissions issues.
One of the problems is that sometimes 3dsMax is installed on PC that have multiple user accounts. 10 people can use the same PC with 10 different accounts, but the 3dsMax is the same for all of them. In this situation the userscripts is not the best way – you have to install the script for each user separately.
I was wondering if using NSIS(or similar softwaer) will not solve the problem.
@LoneRobot – Actually I didn’t hear about mzp packages before. First I have to give it a try, maybe it will solve the problem.
@DaveWortley, miauu – yes, copying to the files to userscripts is a pain. How do I know what users are there on each machine and what are theirs names? I mean I cannot do this via maxscript. This means some manual work for each user.
Using the userscripts folder is the easyest way. You don’t need to know the user name fo the user that currently uses the PC. Go here and download the script. It is a mzp installer and you can read the code and see how it works. Then you can optimize it and addapt it to your needs. In the net you can find more examples of using mzp installers, written much better than mine.