when i run setup file of my software, i want that softwar to register in win registry, and when i start win i want that application to start with window, code shold work in all microsoft opperating systems.
Printable View
when i run setup file of my software, i want that softwar to register in win registry, and when i start win i want that application to start with window, code shold work in all microsoft opperating systems.
Hi !
The First Way and The Short Way is find Windows Directory Location and Put One Copy Of Your Software In There !
I Hope You Can Find WinDirectory Location With API !
And otherwise, place a shortcut to your program in the registry, in this key:
Code:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
How can i register path of my application after run setup file in windows registry so my application start when win boot .
Use the Registry API.
You just put the 'PATH' of the program in the place where, Michael_Kamen had earlier pointed out..
Don't tweak Batch files and all .Just use API
Go and download a API GUIDE from www.allapi.net
There u could find how a Value could be put in the registry...
Try it..Other wise i will send u the code...
you could also add a key here. works same as stated above. just make sure to have if app.previnstance in your code to make sure you arent running more than one version of the program..
here is the key
Quote:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
use registry api's and program to store
key - "application name"
and
value - "the path of the application"
in this registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run