How to trigger the elevation prompt


  • We develop an application whose setup.exe automatically gets me the "elevation  prompt" on the screen when the user is not member of an administrator's group. The setup is made with Installshield, and that puts in some code which checks the admin rights.

    The application comes with a dot net 4 / c# built updater that currently does NOT ask for an elevation prompt and depending how the "user account control" settings are the update sometimes goes into the "virtual store", which is fatal on Terminal servers. 

    The setup.exe has an option inside of it "allusers=1" - that means the app is available for all users of a PC, and there is no option to set this to "install for current user". 

    Now the question - what do I have to add to our "updater.exe" that it asks for an elevation too?

    IT architect - Terminal servers, virtualizations, SQL servers, file servers, WAN networks and closely related to software devleopment (8 years + experience in VB, C++ and script langugaes), MCP for SQL server and CCAA for Xenapp 6.5

    • Edited by Al Hasoob Thursday, April 27, 2017 10:14 AM
    Thursday, April 27, 2017 10:12 AM

All replies