-5

The command is for java installation :

"jdk-7u51-windows-x64.exe /s ADDLOCAL="ToolsFeature,SourceFeature" /L D:\Java\setup.log"
Thomas Kühn
  • 9,412
  • 3
  • 47
  • 63
  • Can you show us your python code with which you have tried to run this command? – Thomas Kühn May 29 '17 at 07:43
  • import os >>> os.system('cd\\D:\\Java\\jdk-7u51-windows-x64.exe /s ADDLOCAL="ToolsFeature,SourceFeature" /L D:\Java\setup.log') 1 This is the code i wrote and it returns 1 as error – Tushar Goel May 29 '17 at 08:43

1 Answers1

0

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')