Correct way of doing it would be through policies not through code. But you have couple of options in code too. If its a window service then onStop and onAbort you can do that.
And also you can put an encrypted or signed xml file to contain verification codes and admin would have to put this file on that specific system when wants to stop or uninstall that service/app. Sent wirelessly from my BlackBerry device on the Bell network. Envoyé sans fil par mon terminal mobile BlackBerry sur le réseau de Bell. -----Original Message----- From: Jamie Fraser <[email protected]> Sender: [email protected] Date: Sat, 19 Mar 2011 08:08:48 To: <[email protected]> Reply-To: [email protected] Subject: Re: [DotNetDevelopment] Re: catching access to add/remove programs In a word, no. If they can't uninstall, they can kill the process, if they can't kill the process, they can disable it and reboot. etc etc. If you want this kind of control it should be managed through limited user account and windows group policy, not 3rd party apps or uninstaller hacks. On Fri, Mar 18, 2011 at 12:03 PM, nik <[email protected]> wrote: > Thanks guys - maybe I'm asking the wrong question... > It there any way to password protect the uninstallation of a third > party application? > > I can implement the installer class in my own apps to do this but my > systems manager wants to be able to stop people uninstalling a third > party security app that he puts on certain laptops to block access to > USB drives. Is there a way to do this? > > Thanks again. > > On Mar 10, 7:05 am, Jamie Fraser <[email protected]> wrote: > > Don't reinvent the wheel - this kind of access has been built in to > Windows > > for a long time. > > > > > > > > > > > > > > > > On Thu, Mar 10, 2011 at 6:36 AM, Cerebrus <[email protected]> wrote: > > > Isn't that already built in to the operating system? > > > > > On Mar 9, 9:03 pm, nik <[email protected]> wrote: > > > > Hey guys, > > > > > > Does anyone know how to catch access to the add/remove programs > > > > function in windows? > > > > I'm trying to figure out if it is possible to trap the opening event > > > > and re-direct the user to a log on function to authenticate they have > > > > permissions to add or remove programs on their system. > > > > > > Thanks in advance! > > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML > > > Web Services,.NET Remoting" group. > > > To post to this group, send email to > [email protected] > > > To unsubscribe from this group, send email to > > > [email protected] > > > For more options, visit this group at > > >http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en > > > or visit the group website athttp://megasolutions.net > > -- > You received this message because you are subscribed to the Google > Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML > Web Services,.NET Remoting" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en > or visit the group website at http://megasolutions.net > -- You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en or visit the group website at http://megasolutions.net -- You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en or visit the group website at http://megasolutions.net
