Tags:C++, MFC, Firefox 2.0, The program should run on Win32 Platform (Cannot use .NET technology)
I am developing an application tool for remote deployment purpose in local area network, but there is a problem: How can I trigger a program or installer run on remote machine?
After I detected the neighbors within the same LAN and got accessed to some neighbors, then I sent the installation program to the remote neighbor machine.
But now the QUESTIONS is: How can I trigger a program or installer run on remote machine to finish the silent installation on remote machine?
Limitation: Must not use .NET technology. Must use C++ and MFC. Must work on Windows Vista and XP.
The installation file must be executed by some method...do you want to trigger it manually or automattically? When you say "neighbor" machine what do you mean?
why must c++ be your only compiled executable....
You can have a windows service handle local executions....but that requries a service in place You can create a file for all users that at startup would look for an executable and process it ...either on a time delay, scheduler, process event, or service handler...
What do you want exactly:) And why I might ask are you doing this?
Actually, I want to do the following: 1. An application tools (app-A) on Computer A (Comp-A) detect the other machines on the same LAN. 2. After the Comp-A detected and got access to e.g. Computer B (Comp-B) and Computer C (Comp-C), then Comp-A copy the installation program (Inst-A) to Comp-B and Comp-C. 3. Then Comp-A must trigger the Inst-A, which is already copied to Comp-B and Comp-C to run on Comp-B and Comp-C, but not run on Comp-A. (Because the installer need to add registry and deploy some application to Comp-B and Comp-C and trigger Comp-B and Comp-C restart once themselves. Thus, Inst-A should not be run by the processor of Comp-A.)
Thus: How can I trigger a program or installer run on remote machine to finish the silent installation on remote machine?
This program is required by my company for convenience deploy our programs on the same LAN.
How can I change the registry of remote computer with access right? (In order to set the program one once during Windows start.)
How can I sent a message box to the remote machine to notify the user to restart the windows and trigger the remote machine to restart? (In order to trigger Windows restart to run my program)
Thank you for your help, robbhill. It is not for hack, actually I want to do a remote deployment tools for our applications. Then our engineer need not to walk around to install our application to hundreds of computers one by one with insert disk, setup and take the disk and go to the next machine and so on....
You need to write a remote administration tool and manually deploy it on each PC in the local network. Any other way will _definitely_ be a hack involving some exploit in NT security.
Like Robbhill said, you'll need an application that runs at system startup, preferably a service, installed on those computers. This application will most probably communicate with your main "controller" application via sockets, like any other server. Your controller (technically, a client) will then issue a command to each server to download and execute some installer (or whatever you're willing to distribute over the network).
Is there a possible that I need not manually deploy some tools on each remote PC??
The NetSupport School Deploy of NetSupport School Professional Version 9.02 of Netsupport "http://www.netsupportinform.com/" can do it.
It can detect all the remote neighbors with the same LAN, then detect which one can be accessed or not, then allow you to login to the remote machine with Administrator Account and Password, then allow you to choose what you are going to deploy to remote machine(s), then deploy and trigger remote machine to restart.
Without the needs of t manually deploy some tools on each remote PC...