Clickonce an alternate to ActiveX
I have been writing ActiveX code for a very long time. When I first started using it I was delighted to see how easy it is to access any clients computer. If a website page uses ActiveX then the only prompt that goes to the client is that this particular website that you are trying to access uses ActiveX and asks them to enable it. Once he does then you have all the access to use his computer. Access any resources get any kind of information without the clients knowledge. In some cases if the ActiveX is already enabled on clients computer then you don’t even have to ask. ActiveX code can silently access users computer and do whatever it wants. But is it legal and ethical? Some say that OK if you think it is not ethical then use Signed ActiveX. But what is the real difference between signed and unsigned ActiveX.
By default whatever ActiveX code you write using javascript is all unsigned ActiveX. Signing ActiveX is done by a signing authority. It embeds a signature in your ActiveX code and makes you accountable for the ActiveX Program that you created. If in future someone copies your activeX program you can claim it by your unique signature that is embedded in the ActiveX program.
But again is signed ActiveX reliable. Of course not! The signing authority does not check what the code really does. It only makes you accountable. In todays world with leagal boundries so complicated and ease of use of Internet one can easily create a ActiveX code in one country and mess up a clients computer in another.
So how do we say that we are from a reliable company and tell user what the code does and ask permission from the user to use his computer. This is legal right? Because we are asking permission and telling the client what the code does! Remember ActiveX is silent. It doesn’t Tell or Ask. So Clickonce comes here with a big bang and makes everything legal and ethical.
You can easily create a .NET desktop application and publish it. After publshing you will get a .htm file and .application file.
You can easily invoke one of them from your web application and this will tell about the company and about the code that you want to put on users computer and can then invoke your code from a web application.
Isn’t it cool! A well integrated combination of Desktop and Web Application.
Tags: activex program, big bang, boundries, computer access, desktop application, htm file, long time, reliable company, signature, use of internet