WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

DLLs

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Force Extender Dll Updates


Note. You MUST add the extenders at the top of your script for this to have any chance of working. Reason: The script will re-launch the script after it deletes the old extender(s), so you wouldn't want to add the extender(s) after any code that you wouldn't want to run twice.
#DefineFunction AddUpdatedExtender(name,minvernum)

   extdll=FileLocate(name)
   ErrorMode(@OFF)
   flag=AddExtender(extdll,minvernum)
   ErrorMode(@CANCEL)
   If flag==@TRUE Then Return

   ErrorMode(@OFF)
   flag=FileDelete(extdll)
   ErrorMode(@CANCEL)
   If flag==0
       Message("Auto-Update Error  File in use",extdll)
       Exit
   EndIf

   exe=WinExename("")
   params=IntControl(1006,0,0,0,0)
   Run(exe,params)
   Exit
#EndFunction

AddUpdatedExtender("MyExtender.dll",31234)   

Article ID:   W16433
File Created: 2005:02:18:12:20:30
Last Updated: 2005:02:18:12:20:30