Archive: Installation dialog display after elevation


Installation dialog display after elevation
Hi,

My installer requests for admin privileges using "RequestExecutionLevel admin".
When the installer is run by a non-admin, the UAC dialog requests for admin credentials.
After that is provided, the installer dialog is no longer visible properly (it is just a white window) though it runs.

I saw some discussions that when the UAC plugin is used, the installer runs in the background. But I do not use the UAC plugin.

What is the reason for this behavior? And how can I resolve it.

Thanks in advance for your help.

Regards,
Srividya


RequestExecutionLevel admin will request elevation before the .exe even starts to run so I don't understand what you mean by "the installer dialog is no longer visible properly", no longer implies that is was visible?

Can you provide some more information? Windows version, NSIS version etc...


Hi,

Thanks for the quick response.

It is not visible at all. (Before and after requesting credentials).
(No longer was with reference to the scenario where it is run by an admin where it is visible and everything works fine).

Windows version: Win7 and also windows server 2008.
NSIS version: 2.46

Please let me know if you need any further information.


Does it also happen with a really basic script?

RequestExecutionLevel admin
outfile test.exe
page instfiles
section
sectionend

yes, the same behaviour/problem is observed with the basic script that you have mentioned.


I have never seen this problem before. Have you tried reinstalling NSIS?

Also just a note if you aren't already you need to check the user is actually an administrator using UserInfo::GetAccountType.

Stu


Realized that the problem is happening only when running the installer remotely on a win7 machine (connected using mstsc). If I am locally logged in a win7 machine, then it works fine.
Is there some way I can address this problem?


I don't believe NSIS cares if you are using RDP. It only uses standard controls and basic GDI stuff...


The problem happens not just with an installer created using NSIS but even with installers created using other means. But if there is a way it can be addressed, then it would be great.


If it happens to non-NSIS application it is probably a Windows issue, drivers maybe?