I'm trying to do an installer for our application with the serial port ActiveX component (OEM licence). The installer I am using is NSIS.
In NSIS I go to the folder with the component and run:
Exec '"regsp.exe" "sport.dll /i:$\"name#licence$\""'
which translates to running:
regsp.exe sport.dll /i:"name#licence$"
All seems OK during the install (tested under Vista), but then when I run the application it prompts for the licence details.
If I try running the same command from a command prompt I get the error message: DllRegisterServer in sport.dll failed. Return code was: 0x80070005.
This is confusing, as according to Microsoft this error message is for pre-Vista versions of regsvr32, whereas I am testing on Vista.
If I run the same command on the development machine, where the component is already registered, there is no error message.