davidsmith
Posts: 59
Joined: Sun Jul 12, 2009 8:33 pm

Windows 7 - ExitDialog - launch application as user

A problem my installer is having on Windows 7 and Vista is that my installer requires that it be executed by an administrator.

Installation Steps:
1) a non-admin logs into Windows 7
2) runs my installer
3) my installer prompts for the admin password because it must run as an administrator
4) I enter the admin password
5) at the end of the installation, at the ExitDialog, my installer launches my product as the admin user (literally)!!! My product sees the machine as the admin, including thinking its local settings are the admin's.

What I want for step 5, is for the installer to launch my product as the original user that was logged in (not the admin user).

Does anyone know how to do this? Is it even technically possible?

If not, I'm going to remove the option from my installer that allows the user to launch my product at the end of installation.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Windows 7 - ExitDialog - launch application as user

Hi,
Does anyone know how to do this? Is it even technically possible?
I'm afraid this is not possible, once the EXE setup file was elevated all the actions executed by it will be under the admin account.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”