Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

File Copy Command \ Running Python scripts for deployment


We're attempting to clean up a mess of Oracle installations. We've written a python script to go through the registry, remove all instances of Oracle and the relevant folders. Script here:

we're also installing updated 32 and 64bit ODAC drivers using Oracle's xcopy packages and setting a data source connection.  For that we're including a few folders for installation.

Our package is a file copy of a folder containing all my components and then a command that launches my python script from C:\Windows\PDQDeployRunner\service-1\exec.  Our issue is that it seems that once the file copy is done, the service is done and the folder gets automatically deleted.

C:\Windows\PDQDeployRunner\service-1\exec>python C:\Windows\PDQDeployRunner\service-1\exec\
python: can't open file 'C:\Windows\PDQDeployRunner\service-1\exec\': [Errno 2] No such file or directory

Is there any way to prevent this, or a smarter way to go about this?

Thanks for your insight




1 comment
Date Votes

    Solved my issue with a workaround, instead I copied the directory to C:\Temp\OraclePackages and hardcoded that in my script.  Ugly, but it'll do donkey.  It'll do.