You'll need to be more clear.
From what it sounds, you want to write a program that lists all of the users programs, finds their location, and stops them from doing anything besides click one button? - It sounds like a highly invasive program.
And it needs to be done in the background? How can you give the user a button to push, while keeping the program in the background?
Sorry, But i dont want the user to give any Btn.
Btn is just to start the process. (not to stop process)
The Process should be background.
let me explain you with example:
I want to know whether IDM is installed or not.?
If Installed then at which location and as I got my target File: the rest process is useless so it should stop.
THIS WAS JUST EXAMPLE,
Actually I want to do with my own Program, As if there any update then it will direct download plugins and move to that desire location.
and so user will still not know that th files downloaded were installed to programs location.
Detecting wether or not a program is "installed" depends on how it was installed. Also, finding it's location also depends on how it's installed.
But, since this is your own program, why not just bundle an updater with it? Then you know it's installed, and you know it's location.
Yeah Hiroshe:You are right.
This can be done.
But, I want to apply the another way which all programmers dont do.
BTW: Thanks for your reply, Untill Now and just now I am using this way only.
But I want some changes in my program so....
There are a few alternatives ways to make an updater if you want something different.
(1) Before launging the program.
(2) While the user is running the program.
(3) Make an installer that will update the users current installation (this requires that you know how the program was previously installed).
(4) Have something update the program when the computer starts up. I do not recommend this becasue it's annoying for the user.
There isnt some universal way to detect if a program is installed. Generally there will be something in the registry (is, standard windows installers). It might also include a path in the registry. Depends on the program though. It might be better to check the Users Path (for example, something like mingw). Yet another method would be to look through possible installation directories, and if it's not found, ask the user where it is. So, feel free to leave something in the registry during installation.
Then you just need to figure out how to run something in the background (shouldn't be hard, I know theres something in .net for it. look it up).
Edited 2 Years Ago by Hiroshe
Isn't it about time forums rewarded their contributors?
Contribute to this discussion and earn rewards points that can be cashed out for dollars.
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...
OK, so HostGator for some reason no longer allows gcc/g++ access unless you have a Designated Server account, which is a lot of money to spend just to compile my "Hello World" program. Thus I figured I'd compile at home, then upload. Program is your regular old bare-bones Hello World ...
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.
Private Sub btn_addline_Click(ByVal ...