file_path = itsm.getParameter('File_Path') # Give your installation zip file path here with extention (e.g) C:\\Installation Packages.zip
import os
import subprocess
import re
import ctypes
import zipfile

obj=subprocess.Popen("wmic os get osarchitecture",shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
result,error=obj.communicate()
if error:
    print(error)
else:
    operating_system = result.split()

with zipfile.ZipFile(file_path, "r") as z:
    z.extractall("C:\\Installation Packages")

if os.path.exists("C:\\Installation Packages"):
    if '64-bit' in operating_system :
        print("64 bit operating system")
        os.chdir("C:\\Installation Packages")
        cmd = subprocess.Popen("VC_redist.x64.exe /s",shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
        result_1,error_1=cmd.communicate()
        if error_1:
            print(error_1)
        else:
            print("Your Package Installed Successfully...")
    else:
        print("32 bit operating system")
        os.chdir("C:\\Installation Packages")
        cmd = subprocess.Popen("VC_redist.x86.exe /s",shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
        result_1,error_1=cmd.communicate()
        if error_1:
            print(error_1)
        else:
            print("Your Package Installed Successfully...")
else:
    print("Error occurred while extracting files...")