Posted November 6, 200816 yr Sorry if this seems sillybut i'd like if someone explains how can I register dll files via addons thanks in advance
November 6, 200816 yr Author It's a dll file jetaudio register file extension with located in Program Files\JetAudio\JetFlExt.dllI 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 November 6, 200816 yr by eliteos
November 6, 200816 yr in the install section add RegisterDLLs=Dll.Registerand make[Dll.Register]and add after it16422,%ProgramFolder%,%dllFile%,1that should do it
November 6, 200816 yr This should do it (OCEntry should be changed to whatever you have under [Optional Components])[OCEntry]OptionDesc=...Tip=...Modes=...CopyFiles=...AddReg=...RegisterDLLs=ShellExt.DLL[ShellExt.DLL]16422,JetAudio,JetFlExt.dll,1
November 7, 200816 yr Author Thanks for help DaRk MaDnEsS & ricktendo64 It finally works perfectly :thumbsup_anim:
November 11, 200816 yr Hey Rick....Using your example....How would you un-register a dll whenuninstalling a program?
November 25, 200816 yr Hey Rick....Using your example....How would you un-register a dll whenuninstalling a program?i will answer this oneuse UnregisterDlls=just as simple as this
November 25, 200816 yr 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,111,,dllname.dll,1 ; if there is no SubDir leave that part blank[Uninstall]UnRegisterDLLs=DLL.FilesDelFiles=...DelReg=...As you can see by the example I use the same section to register and un-register one or more dll'sBut 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.UnRegServerDelFiles=...DelReg=...EndPrompt=...[DLL.UnRegServer]"REGSVR32 /u /s ""%16422%\SubDir\SubSubDir\dllname.dll""""REGSVR32 /u /s %11%\dllname.dll"
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.