You konw how some after the uninstallation of programs if the files are locked, it says:
well, how do you do that?Quote:
Would you like to delete these files after the system is rebooted?
Printable View
You konw how some after the uninstallation of programs if the files are locked, it says:
well, how do you do that?Quote:
Would you like to delete these files after the system is rebooted?
Never had any programs say that to me. If it did, I would say no and manually delete them myself.
Just display a message box asking the user, if they say yes create a batch file or another program and set it to run when the system restarts. It runs and then cleans itself.
mm, have to look for it, cause you never see anything popup when the system reboots, so it's strange, and very useful.
"very useful"? My ass, it is NEVER needed unless it is modifying an important system file, and only Microsoft or the group behind the Linux distro or Apple should be doing so.Quote:
Originally posted by Ideas Man
mm, have to look for it, cause you never see anything popup when the system reboots, so it's strange, and very useful.
I was referring to the delete after reboot thing, calm down!
Which is what I was refering to......Quote:
Originally posted by Ideas Man
I was referring to the delete after reboot thing, calm down!
useful?, thats stupid...Intel user...meh...
I think it uses the registry Key "RunOnce" (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce).Quote:
Originally posted by Ideas Man
You konw how some after the uninstallation of programs if the files are locked, it says:
well, how do you do that?
If you want a command to be executed once rather then running every time systems run, you just add a key to the above registry.
I assume you could probably do something like,
cmd.exe del myfile.exe
or something similar. Havent tried it though.
You obviously don't use a computer for much do you?Quote:
Originally posted by IntelSucks
useful?, thats stupid...Intel user...meh...
Thanks Danial, will try that too.
You dont know anything. Its you who doesn't use your computer for much if you use intel. Using Intel is like bending over with your with your trowsers down and trying to avoid getting screwed.
Ideas man is officially the g4yest user on this forum.
It is sometime useful in the case where you have a process running and cant kill it in order to delete it.Quote:
Originally posted by kasracer
"very useful"? My ass, it is NEVER needed unless it is modifying an important system file, and only Microsoft or the group behind the Linux distro or Apple should be doing so.
Also if you write your own custom uninstaller which uninstalls files, you need to use similar method to delete the main un-installer as it cant delete itself while its running.
IntelSucks, F**k off! This topic is not for you, you never contribute anything useful, piss off. Youy are the gayest user in this forum, you contribute nothing to help others and only critisise good ideas by other people or tell other people they suck, go away!!!!!!!!!!!!!!!
Like Danial said, see there are great benifits to what i'm asking.
Thats not true I do contribute good things to this forum...I just dont like you anymore.
I still see no point in using a "delete after restart" method.Quote:
Originally posted by Danial
It is sometime useful in the case where you have a process running and cant kill it in order to delete it.
Also if you write your own custom uninstaller which uninstalls files, you need to use similar method to delete the main un-installer as it cant delete itself while its running.
You kill the process. There are ways to kill it. If the user is trying to uninstall something he/she keeps running, then they don't need it uninstalled.
A custom installer can delete itself, it is quite easy to do. Take advantage of the OS' scripting. Linux, a simple BASH script could take care of the installer. In Windows, a BAT file could take care of it. Hell VBA could as well.
In all seriousness though, I really REALLY REALLY despise/hate/loath any program that does the "delete after restart" bull****.
Yes i know there are many wasy of Killing process throu API's but sometime a process can not be terminated so the only way is to try to delete it when the user reboots next.Quote:
Originally posted by kasracer
I still see no point in using a "delete after restart" method.
You kill the process. There are ways to kill it. If the user is trying to uninstall something he/she keeps running, then they don't need it uninstalled.
I peronally hate when i uninstall program and they leave files on my system and does not clean up leaving registry entries and other files.
I dont think you understand what i am trying to say, when the user initiates an un-installation the uninstallation(custom un-installer) program is fired, and only way to delete that laste remaining .exe is after next reboot.
Can you please tell me how an exe can delete itself while running? Through OS' Scripting or any other way.Quote:
A custom installer can delete itself, it is quite easy to do. Take advantage of the OS' scripting.
Linux deleting windows file? BAT (i think you meant batch) file deleting an exe while running? VBA? WTH hell are you talking about? All of them would need a restart. How would you run Linux (bashh script) while in windows?Quote:
Linux, a simple BASH script could take care of the installer. In Windows, a BAT file could take care of it. Hell VBA could as well.
I totally agree if a program forces user to restart when installed/uninstalled. But what we are talking about is "Cleaning Up" un-necessery files which is only carried out whenever the users boots up next. I have no problem with that infact if you run a registry monitoring software you will notice how many application uses the method i described in my first post, and it is totally transparent to the user.Quote:
In all seriousness though, I really REALLY REALLY despise/hate/loath any program that does the "delete after restart" bull****.
I'm pretty sure than an .exe cannot delete itself, but i know a batch file can delete itself, that might be what he was referring to.Quote:
Can you please tell me how an exe can delete itself while running? Through OS' Scripting or any other way.
The first part to this i think he is referring how to do it in Linux as an example then he moves onto how to do it in Windows.Quote:
Linux, a simple BASH script could take care of the installer. In Windows, a BAT file could take care of it. Hell VBA could as well.
If the ONLY way to stop a process in an application you made is for the user to restart, then you got problems in your programming.Quote:
Originally posted by Danial
Yes i know there are many wasy of Killing process throu API's but sometime a process can not be terminated so the only way is to try to delete it when the user reboots next.
Okay.........Quote:
Originally posted by Danial
I peronally hate when i uninstall program and they leave files on my system and does not clean up leaving registry entries and other files.
I do understand what you're trying to say. A simple batch file would take care of it. Reboots are totally unneccessary.Quote:
Originally posted by Danial
I dont think you understand what i am trying to say, when the user initiates an un-installation the uninstallation(custom un-installer) program is fired, and only way to delete that laste remaining .exe is after next reboot.
run the batch file and immediately close the uninstaller. Let the batch file delete everything. Hell, using a batch file as the uninstaller for the uninstaller would make life a billion times easier.Quote:
Originally posted by Danial
Can you please tell me how an exe can delete itself while running? Through OS' Scripting or any other way.
Where do I say Linux deletes a Windows file? You don't run Linux scripts in Windows, I was giving you an example about how it would be done in Linux. Not everything revolves around Windows. VBA and/or a batch file could easily do what you want and they DO NOT require a damn restart.Quote:
Originally posted by Danial
Linux deleting windows file? BAT (i think you meant batch) file deleting an exe while running? VBA? WTH hell are you talking about? All of them would need a restart. How would you run Linux (bashh script) while in windows?
Why must you carry it out on startup? That just doesn't make sense! It can all be done without a reboot.Quote:
Originally posted by Danial
But what we are talking about is "Cleaning Up" un-necessery files which is only carried out whenever the users boots up next.
This may help you...
http://support.microsoft.com/default...NoWebContent=1
Now look kasracer, your beginning to sound like IntelSucks, if you don't have anything to contribute to help the question asked, don't contribute. You are not helping in anyway at all except starting a fight.
No I have offered alternatives to what you want to do. There is absoultely no reason why anyone but the people at Micorosft, Linux, and Apple would need to do what you want to do.Quote:
Originally posted by Ideas Man
Now look kasracer, your beginning to sound like IntelSucks, if you don't have anything to contribute to help the question asked, don't contribute. You are not helping in anyway at all except starting a fight.
I sound nothing like 'IntelSucks'. I have yet to blatenly insult you for no reason and I don't spout out wrong answers.
If you want to make software that forces me to restart just to delete some files, please tell me the name of the software so I can avoid it. I don't like restarting or shutting my computer down especially when it isn't needed.
Yeah, that's true, fair enough. Still, nothing wrong with contributing to the issue at hand. I konw that but somethings can't be done without a restart and it's unavoidable, like if you go into a folder and go back and delete it, it can't, so make a prog that does it on next reboot so i don't have to worry about it, there are other uses for it.
I am not gonna carry on this pointless argument. The fact is that there is more then one way of doing it. You might not like certain technique, which is fair enough.Quote:
Originally posted by kasracer
No I have offered alternatives to what you want to do. There is absoultely no reason why anyone but the people at Micorosft, Linux, and Apple would need to do what you want to do.
I sound nothing like 'IntelSucks'. I have yet to blatenly insult you for no reason and I don't spout out wrong answers.
If you want to make software that forces me to restart just to delete some files, please tell me the name of the software so I can avoid it. I don't like restarting or shutting my computer down especially when it isn't needed.
If you read my posts i have indicated that i myself dont like having to restart after installation/uninstallatioin. In some cases it could be used to clean up files/entries that could not be removed, at the next reboot. Even though we dont like it, a large number of program forces you to restart after installinga/uninstallation.
Anyhow it seems like Ideas Man is satisfied with the solution/suggestion i have provided, so there is no point of arguing about who is right and who is wrong.
We can carry on like that pointlessly forever...
That is true, however, ONLY for the Operating System creators. Updating something like very important like the file manager in Windows would need a restart since Windows doesn't run correctly without it and it can't be updated as it is being used.Quote:
Originally posted by Ideas Man
Yeah, that's true, fair enough. Still, nothing wrong with contributing to the issue at hand. I konw that but somethings can't be done without a restart and it's unavoidable
I think it is always avoidable for 3rd party software companies/groups.
When I go into a folder and then back I can delete it fine :confused:Quote:
Originally posted by Ideas Man
like if you go into a folder and go back and delete it, it can't, so make a prog that does it on next reboot so i don't have to worry about it, there are other uses for it.
Yeah, so thanks for your help guys.
Like I said though, there is no reason why they CAN'T be removed.Quote:
Originally posted by Danial
In some cases it could be used to clean up files/entries that could not be removed, at the next reboot.
I don't use any of those programs. Seriously, no program on my computer has forced me to restart to install and/or uninstall it.Quote:
Originally posted by Danial
Even though we dont like it, a large number of program forces you to restart after installinga/uninstallation.
Sounds like fun! :)Quote:
Originally posted by Danial
We can carry on like that pointlessly forever...
Well if you wanna discuss it without insulting each other then I have no problem.Quote:
Originally posted by kasracer
Sounds like fun! :)
Well, may be you have not come across it, that dosent mean it doesent occur. I have had many times where COM object can not be unloaded from memory, as they r some how referenced by some application, as you dont know which application has referenced it. Only option you have is to delete it at the next restart. EXEs are easy to handle but dll,ocx can sometime become very tricky to remove, thus might need a restart once in a while.
Take things easy ..
Danial
I haven't insulted anyone.......yetQuote:
Originally posted by Danial
Well if you wanna discuss it without insulting each other then I have no problem.
Why would your COM object be referenced by another program? If another program still needs it, don't remove it.Quote:
Originally posted by Danial
Well, may be you have not come across it, that dosent mean it doesent occur. I have had many times where COM object can not be unloaded from memory, as they r some how referenced by some application, as you dont know which application has referenced it. Only option you have is to delete it at the next restart. EXEs are easy to handle but dll,ocx can sometime become very tricky to remove, thus might need a restart once in a while.
As a programmer, you should have full control of your application. This means the DLLS, COMs, EXE, ect. Some random application shouldn't be referencing or acessing any of them. Now if you put ANY of the files in the system folder, well that would/could cause problems with other programs accessing them. Don't do it.
Not to be rude or anything, but I haven't seen any examples or explinations by any of you that could justify making me restart my computer to remove a file. To me, this just seems like a way to help out with bad design. Reminds me of Garbage Collection, but that is another thread.
Well the idea of using COM is that multiple application can share same components. If you need to update it then reboot in this case is necessary.Quote:
Originally posted by kasracer
I haven't insulted anyone.......yet
Why would your COM object be referenced by another program? If another program still needs it, don't remove it.
As a programmer, you should have full control of your application. This means the DLLS, COMs, EXE, ect. Some random application shouldn't be referencing or acessing any of them. Now if you put ANY of the files in the system folder, well that would/could cause problems with other programs accessing them. Don't do it.
Well Garbage collection in .net is not a bad addition even though. But i would have preferred if were able to initiate garbage collection manually.Quote:
IReminds me of Garbage Collection, but that is another thread.
Simply make sure the applications are not using it. If it is your COM, then you will know what is using it and take appropriate action.Quote:
Originally posted by Danial
Well the idea of using COM is that multiple application can share same components. If you need to update it then reboot in this case is necessary.
But you can manually initiate garbage collection.Quote:
Originally posted by Danial
Well Garbage collection in .net is not a bad addition even though. But i would have preferred if were able to initiate garbage collection manually.
You can call it. VB.NET also has support for constructurs/deconstructors so you can FORCE GC to clean up the object immediately when done, similarlly to RAII in C++ (but no where near as efficient)
Can you? I was not aware of that, i only started learning C#. I think i miss-interpreted it. Here is what MS book says about Grabage Collection:Quote:
Originally posted by kasracer
But you can manually initiate garbage collection.
You can call it. VB.NET also has support for constructurs/deconstructors so you can FORCE GC to clean up the object immediately when done, similarlly to RAII in C++ (but no where near as efficient)
That made me think it cant be initiated manually.Quote:
"The non-determnistic approach to memor reclamation seeks to maximize application performance and supplies a less-bug prone application environment.Thre is a cost however. Because of the mechanism by which garbage collection operates, you can not be certain when an object will be reclaimed. Thus you have no control over when a class's destructor(C#) or finalizer (VB.net) is executed."
As i started with C++, i quite like the constructor/destructor in C#, but dont like the way done in vb.net (new, finalize). Well to be honest C# is too similar to Java/C++. But i am not complainig :)
There is a function something like GarbageCollection.Clean() or something. I'll look for the thread I seen on it.Quote:
Originally posted by Danial
Can you? I was not aware of that, i only started learning C#. I think i miss-interpreted it. Here is what MS book says about Grabage Collection:
There is also a method of using constructors and deconstructors in VB.NET in the same thread.
However, without you manually doing it, GC will only collect when the amount of objects needing to be free reaches a certain point.
Woah, guys, hold up, maybe you should move this to the chit chat forum or PM each other or use messenger, this is starting to get off topic.
This is your fault, so in conclusion....... YOU MOVE IT!Quote:
Originally posted by Ideas Man
Woah, guys, hold up, maybe you should move this to the chit chat forum or PM each other or use messenger, this is starting to get off topic.
No, this is not my fault, it is your fault, i finished the topic, you continued it be arguing, stop arguing and do something else.
and yet you keep replying....Quote:
Originally posted by Ideas Man
No, this is not my fault, it is your fault, i finished the topic, you continued it be arguing, stop arguing and do something else.