Archive: Vista and axtiveX registration


Vista and axtiveX registration
Hi all
Been searching the forum in vain for a solution to the problem below, which I discovered while testing the Installer on Vista.
It doesn´t register the ActiveX control properly.

Here is the source section which creates problems, I hope someone can help out, as I am absolutely not a programmer:

;Register ActiveX?s and DLL?s
UnRegDLL "$INSTDIR\teechart5.ocx"
Sleep 1000
RegDLL "$INSTDIR\teechart5.ocx"
Sleep 1000


The whole script wo. files section is attaced.
Thanks in advance for any assistance.

Lars


Ps.. the problem is solved manually by creating a CMD on the desktop as run as administrator. But then the whole idea by using an installer falls away, right


FIle attached


try RequestExecutionLevel


Hi Anders,
Sorry I do not quite understand you, as to where I put this statement in the script. I looked a bit in MSDN and technet, but got just more confused :-(
Can you give an example of use

/Lars


1) add to your script the line:

RequestExecutionLevel admin

using "RequestExecutionLevel" Should however not really be needed since Vista "Sees" it is an installer and sets the Executonlevel accordingly.

2)
Try not to use RegDLL anymore it's the OLD way.
Use: InstallLib

e.g.

!insertmacro InstallLib REGDLLTLB NOTSHARED REBOOT_NOTPROTECTED "${whereverethefilercomesfrom}\yourocx.dll" "$MYINSTFOLDER\yourocx.dll" "$SYSDIR"

Good luck with your TeeChart library installer!

PLUGGING: Consider using the Delphi Source version, you do not need to install any OCX then... ;)


Unable to register dll in VISTA
I am using a cab file which will be downloading the dll from the inf file into the local pc and registers it as i have given RegisterServer = yes.

But this does not allow me to perform in VISTA because of UAC.

Is there any other way that i can register the dll without disabling UAC?

Can someone help me out in this..

Thanks for all of your help!!

Sample content of inf file
-----------------------
; needed DLL
[sysTest.dll]
file-win32-x86=thiscab
FileVersion=6,0,8972,0
DestDir=11
RegisterServer=yes
----------------------

Regards
NST


Yes, see above... to register a DLL you NEED ofcourse certain rights.