Jump to content

How to make an addon to register Dll libraries


eliteos

Recommended Posts

It's a dll file jetaudio register file extension with located in Program Files\JetAudio\JetFlExt.dll

I try to make an addon for jetaudio 7, everything went fine except the shell extension of the program. After several trials I figure out that this dll 's responsible for the shell extension. I register it manually and it works but how to make this via an addon.

Edited by eliteos
Link to comment
Share on other sites

  • 2 weeks later...

Yes use UnRegisterDLLs with the same section you used to Register them (it runs before DelFiles) example:

[DefaultInstall]
CopyFiles=...
AddReg=...
RegisterDLLs=DLL.Files

[DLL.Files]
16422,SubDir\SubSubDir,dllname.dll,1
11,,dllname.dll,1 ; if there is no SubDir leave that part blank

[Uninstall]
UnRegisterDLLs=DLL.Files
DelFiles=...
DelReg=...

As you can see by the example I use the same section to register and un-register one or more dll's

But sometimes UnRegisterDLLs will not work if you use advpack.dll to launch the uninstall section, then you have to use RunPreSetupCommands like this:

[Uninstall]
BeginPrompt=...
RunPreSetupCommands=DLL.UnRegServer
DelFiles=...
DelReg=...
EndPrompt=...

[DLL.UnRegServer]
"REGSVR32 /u /s ""%16422%\SubDir\SubSubDir\dllname.dll"""
"REGSVR32 /u /s %11%\dllname.dll"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...