Archive: Function GetWinampInstPath


Function GetWinampInstPath
On the functions.htm page that comes with NSIS there is a function called GetWinampInstPath that works very well when the program you are looking for is installed correctly. I have some instances where the user has more then one version of the program on their system and/or they have removed one of them and therefore the uninstall reg key is missing. I would like to give the user the option of choosing the path that is found or if none is found, choosing a path.


The problem I’m having is, if I don’t automatically detect the application then no matter what path the user chooses the files are installed in the default location.

Any ideas?


Partial sample: [edit by Smile2Me] Sample can be found in the next post. Reason, post was much too long. Please try to keep threads readable by attaching code and not posting it.[/edit]


The code.


You should use DirShow show to let the user decide if the path is OK or not. In .onVerifyInstDir check if the path chosen is valid and let the user know about it.