Hi,
This can be done by using a custom action that launches
regsvr32.exe with a specific command line. Here are the steps:
- in the "Search" page you create a file search which looks for "regsvr32.exe" file in the [SystemFolder] (this property is resolved at runtime C:\Windows\System32)
- in the "Custom Actions" page you create a "Property Source" custom action which looks like this:
Code: Select all
Property Name: RESULT_PROPERTY (the property used for the search)
Source Type: Executable (*.exe)
Command Line: "[#MyCom.dll]" /parameter (where "MyCom.dll" is the COM file and "parameter" is your custom parameter)
Expression: NOT Installed (this field is in the "Execution Condition" field)
- you will make a similar custom action for the uninstall process that will unregister the COM
You can read more about the "Search" page here:
http://www.advancedinstaller.com/user-guide/search.html
Also, you can find information about custom actions here:
http://www.advancedinstaller.com/user-g ... -page.html
Regards,
Cosmin