The command is for java installation :
"jdk-7u51-windows-x64.exe /s ADDLOCAL="ToolsFeature,SourceFeature" /L D:\Java\setup.log"
The command is for java installation :
"jdk-7u51-windows-x64.exe /s ADDLOCAL="ToolsFeature,SourceFeature" /L D:\Java\setup.log"
I finally resolved the issue. I was adding cd before the path of installable which must be removed. After that the command worked just fine. New command would be import os os.system('D:\Java\jdk-7u51-windows-x64.exe /s ADDLOCAL="ToolsFeature,SourceFeature" /L D:\Java\setup.log')