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!

vidur
Posts: 43
Joined: Thu Jul 31, 2014 4:21 am

Uninstall as System user

Hi,

Is there a way to add a condition to uninstall only as system process?

Thanks
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Uninstall as System user

Hello,

I'm not sure I fully understand your scenario. Can you please give us more details, maybe exemplify?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vidur
Posts: 43
Joined: Thu Jul 31, 2014 4:21 am

Re: Uninstall as System user

Hi Dan,
Thanks for your reply. SOrry if my question wasn't clear.

What i'm trying to do is to have a condition that only a system process can uninstall my product. i.e I want to allow only system processes to be able to uninstall my product.
I know there are some conditions like

Code: Select all

LOGUSER<> "SYSTEM"
But that would just skip an action. What i need is the uninstall to be dissallowed (or fail) if it's not a system user.

[*]I know one way of doing it would be to create a small application and make it check if the user is system and return an error to fail the installation, but i wanted to know if it can be handled in advanced installer itself.

Thank you

Return to “Building Installers”