We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Shreyans26
Posts: 18
Joined: Wed Jul 16, 2014 6:20 am

Restart Application with Run as option.

Hi,
i am using silent updates in my application, it works properly. Only thing is we are using Command line arguments in the Update Config File, so we have to check "Run as Admin" option for the setup.

Also we have created Scheduled Task inside application, it gets created on successful install when updating the application, the scheduled task sends the ACCESS DENIED Error. As when my application restarts, it tries to update the Task but requires the Admin Rights.

So, i want to restart the application after the update as run as admin option.Currently i am using attached updates txt file.

Thanks,
Attachments
updates.txt
(519 Bytes) Downloaded 254 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Restart Application with Run as option.

Hi,

In order for your application to be restarted with administrator rights, you can launch the updater with administrator rights. So, if the updater is launched by a scheduled task, by your application or by the user through a shortcut, you can set it to always be launched with administrator rights.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Shreyans26
Posts: 18
Joined: Wed Jul 16, 2014 6:20 am

Re: Restart Application with Run as option.

Thanks for the reply,
i have given admin rights to updater exe but when all the updates are done my application auto closes and restart with no rights with the following line
"AutoCloseApplication=[APPDIR]Notification nexus.exe|;;AlwaysRestart".

So i want the application to be restarted with admin rights?

Thanks,
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Restart Application with Run as option.

Hi,

I tested the scenario, but the application was restarted with administrator rights on my machine. Can you try to run the "updater.exe" file using the "Run as administrator" option and see if the application is also launched with admin rights?

The normal behavior is that if an application has administrator rights (i.e. updater.exe), any other application that it launches will also inherit the administrator rights.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”