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:
1.
StrCpy $1 $ADMIN_LOGON
StrCpy $2 $ADMIN_PASSWD
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'
2.
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.
|