File Copy Command \ Running Python scripts for deployment

Hi 

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: http://pastebin.com/EpqspNqq

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.

Output:
C:\Windows\PDQDeployRunner\service-1\exec>python C:\Windows\PDQDeployRunner\service-1\exec\oracle_clean_install.py
python: can't open file 'C:\Windows\PDQDeployRunner\service-1\exec\oracle_clean_install.py': [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

Gareth

0

Comments

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.

    0

Please sign in to leave a comment.

Didn't find what you were looking for?

New post