Good Afternoon
Can someone please help me i created the below script to install python on a machine, But to make sure i don't overwrite anything, i want the script to first check if the below registry exist
hkey_local_machine\software\wow6432node\python
If the registry exist i want the script to not install and just write "python is installed" if it does not exist i want it to run the installation, The help is greatly appreciated since this is part of a project i have been working on thank you
$python = (Start-Process "\\dactoco.com\cap\Software\PyXLL\CTP32bit\CTP 32 modules\python-2.7.8.msi" -ArgumentList "TARGETDIR=c:\python27x86" -Wait -passthru).exitcode
If ( $python -eq 0 )
{
_writeLog "Python has been isntalled" -stdOut
}
else
{
_writeLog "There was an error installing PYTHON " -stdOut -errorLog
}