Archive: How can I know the OS has install my program?


How can I know the OS has install my program?
I have a problem when I make my install. I want to check that "Has the Operating System (OS) set up my program yet?" If the OS is not installed, I will run my install. If it is already on my computer, I can abort it. How can I know this?
Thanks,
:)


use register of windows.

you can set a value when your installer install!

So you can get this value, you can know.


I also think about register of windows but I still some problems. If your software needs these other software to support,for example: my sql. How can I recognize "my sql" is already on my program and abort it. If "my sql" is not in my program, I must set up this software. I do not know where the registry which these software put.
In my program what can I do to see them?


I know,
you are use a software like total uninstall scan your sql install,so you can find some info in your register of windows.
for example: a software install in your computer,you can find it here.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\


Hi, I'm partial for checking the registry and on the file system to see if a core file (like the application .exe) is present. It never hurts to double check. ;)

KenA


Thank you, I understand clearly what you say and I do it well.
I still have one question the same subject. How can we make our program to run my sql first our program? It means if the OS does not have my sql,I will set up this program. In NullSoft, I do not know where to put my sql program to run before the main software. Because my sql is necessary for the main software.
If I seperate my sql and my software, It is not useful for user my program. I try to find it out, but I still don't understand it. Can you help me?
I also want to study more about NullSoft but I do not have more except help file.