Prev Previous Post   Next Post Next
Old 13th January 2011, 14:22   #1
Junior Member
Join Date: Jan 2011
Posts: 8
Unhappy RunAs with Windows 7 does not work

I am using the NSIS RunAs plugin in order to call another install program if the user has only user privileges. In XP the RunAs is working fine. Under Win7 the RunAs always exits with error.

I have tried both methods:

StrCpy $3 “$INST_TEMP\Update_Monitor\UpdateMon_Installer.exe "
StrCpy $4 0
System::Call 'RunAs::RunAsW(w r1,w r2,w r3,*w .r4) i .r0 ? u'

RunAs::RunAs `"$INST_TEMP\Update_Monitor\UpdateMon_Installer.exe` `$ADMIN_LOGON` `$ADMIN_PASSWD`

Any ideas why this works does not work anymore on Win7?

Many thanks.
happyhippo is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

nsis, plugin, run as administrator, runas, windows 7

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