Click here to Skip to main content
15,899,314 members

Comments by Stinebaugh (Top 1 by date)

Stinebaugh 19-Jan-16 13:09pm View    
To add a component, use the $comCatalog object.

$comCatalog.InstallComponent("COMAPPNAME", "C:\SomePath\MyDll.dll", "", "")

For setting the properties, you just need to know the name and proper value. Using my code from above, instead of removing, you would do this to set the Transaction to Required.

$component.Value("Transaction") = 3
$compColl.SaveChanges()

Here is a link to MSDN page with the component properties and values you can set: https://msdn.microsoft.com/en-us/library/windows/desktop/ms688285(v=vs.85).aspx#transaction