[SOLVED] Network drive and installation
Published: October 10, 2019 - 10:38 AM
Hello everyone, I'm working on a new WAPT installation and for this one I'd like to avoid using a replication server. So I've chosen to create WAPT packages for my largest software programs. Something fairly simple like: `
def install():
cmd = '\\server_north\software_folder\large_software\setup.exe'`.
Of course, just like with my usual setup, I get that wonderful error message:
"The specified path could not be found."
So I discovered that: The WAPT service runs under a local system account (NT_Authority\System), and this account is complicated for network drives with my Samba domain controller.
So I tried WAPT's session setup function and, miraculously, it works.
Except, unfortunately, it only works if the user has access rights to that network location, and if it's open and they enter their password at least once.
So I have a starting point: with the command
cmd = 'net use * \\serveur_nord\dossierlogiciel\groslogiciel\ /USER:login mdp'
locally there is no problem but via wapt it gets stuck I must be missing a ' ' or a " "
Finally I am open to any suggestion that would allow me to do without these replication servers.
def install():
cmd = '\\server_north\software_folder\large_software\setup.exe'`.
Of course, just like with my usual setup, I get that wonderful error message:
"The specified path could not be found."
So I discovered that: The WAPT service runs under a local system account (NT_Authority\System), and this account is complicated for network drives with my Samba domain controller.
So I tried WAPT's session setup function and, miraculously, it works.
Except, unfortunately, it only works if the user has access rights to that network location, and if it's open and they enter their password at least once.
So I have a starting point: with the command
cmd = 'net use * \\serveur_nord\dossierlogiciel\groslogiciel\ /USER:login mdp'
locally there is no problem but via wapt it gets stuck I must be missing a ' ' or a " "
Finally I am open to any suggestion that would allow me to do without these replication servers.