Old 13th February 2007, 06:52   #1
lars1106
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
lars1106 is offline   Reply With Quote
Old 13th February 2007, 06:54   #2
lars1106
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
lars1106 is offline   Reply With Quote
Old 13th February 2007, 06:56   #3
lars1106
Junior Member
 
Join Date: Jul 2003
Posts: 25
FIle attached
Attached Files
File Type: nsi nsis.nsi (29.4 KB, 303 views)
lars1106 is offline   Reply With Quote
Old 13th February 2007, 07:47   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
try RequestExecutionLevel

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 13th February 2007, 08:05   #5
lars1106
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
lars1106 is offline   Reply With Quote
Old 13th February 2007, 13:35   #6
onad
Senior Member
 
onad's Avatar
 
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"
onad is offline   Reply With Quote
Old 22nd February 2007, 09:09   #7
tsn
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
tsn is offline   Reply With Quote
Old 22nd February 2007, 12:35   #8
onad
Senior Member
 
onad's Avatar
 
Join Date: Dec 2004
Location: Turkey
Posts: 447
Yes, see above... to register a DLL you NEED ofcourse certain rights.

"Just do it"
onad is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump