|
|
#1 |
|
Junior Member
Join Date: Jul 2003
Posts: 25
|
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 |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Jul 2003
Posts: 25
|
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
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jul 2003
Posts: 25
|
FIle attached
|
|
|
|
|
|
#4 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
try RequestExecutionLevel
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Jul 2003
Posts: 25
|
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 |
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Dec 2004
Location: Turkey
Posts: 447
|
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...
"Just do it" |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Feb 2007
Posts: 1
|
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 |
|
|
|
|
|
#8 |
|
Senior Member
Join Date: Dec 2004
Location: Turkey
Posts: 447
|
Yes, see above... to register a DLL you NEED ofcourse certain rights.
"Just do it" |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|