I think, you need to store some information about your application in windows registry or in setting file (*.xml, *.ini).
Very good, free installer you can find on
http://www.jrsoftware.org/isinfo.php[
^
There you can find a lot of examples how to create installers and how to write/read windows registry.
To set registry value in your application use:
My.Computer.Registry.SetValue(sKey, sName, sVal)
To get registry value use:
sRegVal = My.Computer.Registry.GetValue(sKey, sKeyName, "")