binadi007 wrote:
Simply I just want to install a program without any click on installation file. For example when I put exe file to my pen drive or hard disk, it automatically install into the computer.
There are no situations where it could be considered as a legitimate action.
You are going to do something without a user's consent. If I was a user, I 1) would consider it as a crime against me, even if it was an official company policy or something like that, 2) I would take some measures to not allow that happen anyway. Even though it is technically possible and even pretty simple, I don't think we should help to implement non-legitimate or questionable action.
So, what to do instead? Usually, such products have so called "portable version"; and, in some cases, this is the only version. In present-day jargon, it simply means that the user executes your application directly from your thumb drive. The user can also copy the product to any directory of the user's choice; and the application should be able to run without hassles. In fact, this is the best way to package software products, especially if they are simple enough. And, optionally, an "installable version" could be provided. But it makes sense only if installation gives the user some additional benefits over the "portable version". For example, installable version can setup integration with some already installed products (which is, by definition, cannot be portable), collect some user preferences during installation, and, most importantly, provide a correct uninstallation. If you don't provide such benefits, "installable version" makes no sense.
Now, a word about silent installations. They are usually used to automate installation on many computers and make little to no sense otherwise. In this case, all installation preferences are presented in a pre-created data set which complements the "manual" installation. The purpose of it it to perform considerable volume of work in batch mode, to avoid boring, non-productive, and repeated manual work. Not for doing anything in a subliminal manner, as a diversion against the user. :-)
—SA