I am running an installer with UAC settings off. However I have to make the installer set a Schedule Task. Only for this part I get the access denied message to create the task. The installer must have the UAC settings off. So, how can I make the installer detect whether the current user has admin rights and if not show a new custom dialog (which will tell the user to run the installer as admin again). Furthermore, if the user do not have the admin rights then install without the task creation.
To make it simple, the user runs the installer without the admin rights. When he clicks the install button another dialog will be shown telling the user there is no admin rights to create the Schedule Task. At this point the user can still continue installing from the custom dialog without admin rights. If this is the case then the installer will not create the Schedule Task.
FOLLOW US
Get the latest news in Application Packaging