/build/static/layout/Breadcrumb_cap_w.png

Install script from network drive

Dear All,

I was wondering if someone could help me please...

I'm going to sinatll an application fromn the script but for some reason gives me an error. It says that the .exe doesn't exist.

I've tried to copy the .exe on the local machine and it works. I'm running the script as "System"

How can I do it? I was thinking to create a folder on the server but I don't knwo what rights I need to give it.

 

Many thanks!


0 Comments   [ + ] Show comments

Answers (3)

Posted by: SMal.tmcc 10 years ago
Red Belt
0

you need a batch file to map a drive letter for you since the script runs as system.  Create an installed user in ad with read rights to the share.

net use h: \\server\share /user:domain\installer password

run your script

net use h: /delete


Comments:
  • or give "everyone" read rights to the share. but I do not recommend this security hole - SMal.tmcc 10 years ago
Posted by: spArk82a 10 years ago
White Belt
0
Thank you very much!
So I can put my personal credentials then... 
 
So if for example my username is spark, my domain is Contoso,  my password XYZ and my .exe file Program.exe 
 
the batch file will be:
 
Net use h:\\server\share
/spark:Contoso\Program.exe XYZ
 
Correct?

Comments:
  • net use h: \\server\share /user:contoso\spark XYZ

    h:program.exe /s
    or
    misexec h:\program.msi /qn

    net use h: /delete - SMal.tmcc 10 years ago
Posted by: jegolf 10 years ago
Red Belt
0

I've also had luck using pushd and popd for software installs that needs to run from within a directory. Pushd will map the drive for you (since it's running from a network share) and popd will disconnect it.

For ex:

pushd \\server\share
Installer.exe -parameters
popd

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ