Get Current Login User Info When Running as Admin - Advanced Installer Community
sbrown@nacintl.com
Posts: 6
Joined: Wed Jun 10, 2015 1:03 pm

Get Current Login User Info When Running as Admin

Is there a way to get the Personal Folder of the current logged in user when running the install program as Admin? The company system admin has setup the network to only allow an admin to install a program not a standard user. The install program needs to install files under the Personal Folder of the user currently logged in. Currently, it returns the Personal Folder for the Admin not the standard user. I'm hoping for a solution that does not involve creating a Custom Action program.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Get Current Login User Info When Running as Admin

Hello and welcome to Advanced Installer forums,

Indeed, this is the behaviour of Windows Installer. In order to implement your scenario, you may need a custom action to check the currently logon user.

In order to add your custom action to the installation package, please take a look on the to integrate and debug custom actions article which contains informations for hints and guidance.

If you have other questions, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”