Old 9th March 2010, 12:43   #1
thek
Member
 
thek's Avatar
 
Join Date: Jun 2006
Location: Austria
Posts: 92
Unhappy Installlib & Windows 7 x64

Hello Guys

I have a problem with a Win32 application on Win64 System

Following code works find on Win32 applications
code:
!insertmacro InstallLib REGDLL 0 REBOOT_PROTECTED "..\common\binaries\system32\cwui.ocx" $SYSDIR\cwui.ocx $SYSDIR
${If} ${Errors}
DetailPrint "Instlib failed"
ClearErrors
${endIf}
SetOverwrite Ifnewer
!insertmacro InstallLib REGDLL 0 REBOOT_PROTECTED "..\common\binaries\system32\FM20.dll" $SYSDIR\FM20.dll $SYSDIR
${If} ${Errors}
DetailPrint "Instlib failed"
ClearErrors
${endIf}


on Win7x64 i get the following errortext
code:
Extract: C:\Windows\system32\cwui.ocx... 100%
Registering: C:\Windows\system32\cwui.ocx
Instlib failed



but if i start an elevated commandshell
change to the folder <win>\SysWow64 an call manually regsvr32 the registration works
but only from an elevated shell.

The testinstallation is also startet with elevated rights
code:
RequestExecutionLevel admin

What I'm missing?
thek is offline   Reply With Quote
Old 11th March 2010, 12:40   #2
thek
Member
 
thek's Avatar
 
Join Date: Jun 2006
Location: Austria
Posts: 92
Hello

I found the solution by myself!
Problem is "Requestexecutionlevel admin"
this is NOT the same as the level "none"

When writing executionlevel "none" Win7 runs in some special compability mode which helps registering the old dll's
thek 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