View Single Post
Old 21st November 2015, 00:16   #2
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
Assuming that the application is installed under a certain fixed path is a bad idea! You could try to search for the application (recursively), using the FindFirst and FindNext functions, but that's still slow and error prone. Instead, most applications will write their location to the registry - under a well-known registry key/value. So, in order to "detect" the install location, you just read the appropriate registry value.

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI
LoRd_MuldeR is offline   Reply With Quote