PDA

View Full Version : Registration off DLL and Services


mierlp
06-05-2009, 06:19 AM
hi,

I would like to do a AfterInstall where a .dll has to be registrated using
regsvr32 followed by the \AppFolder\this.dll

Also i have a .exe files which has to be installed as a services, this can
be done by a batch file, but that's not the most elegant way.
This batch file contains the following code :

mmq /i+
pause

How can i create a after install action for registration of the .dll and
install and run the services

Regards Peter

pww
06-05-2009, 03:01 PM
you can use File.Run instead of a batch file, like

myFile = "\"" .. SessionVar.Expand("%AppFolder%") .. "\\this.dll\"" ;
File.Run("regsvr32 /s " .. myFile, "", "", SW_MINIMIZE, false);


The same for the other case, only not sure what's PAUSE for.

Ulrich
06-05-2009, 04:25 PM
If you are deploying this file, wouldn't it be much easier if you just use the option "Register COM interfaces"? (See File Properties > Advanced > OLE/ActiveX.)

Ulrich