Skip to content
⌘ NSIS Forum Archive

Problem with the browse button

3 posts

icaroweb#

Problem with the browse button

Hello.
I had a problem with my setup.
I made the setup but when i install it the browse button doesn't runs well and the program puts the files in "c:\programm files\" but i want to change this directory.


Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "Instalar.exe"
InstallDir "$PROGRAMFILES\Icaro Protección\"
InstallDirRegKey HKEY_LOCAL_MACHINE SOFTWARE\Icaro Protección""

ShowInstDetails show
ShowUnInstDetails show


And another problem is tha t the unistall doesn't works well.
Thank you a lot
icaroweb#
The code of the setup is
Joel#
this line:

SetOutPath "$PROGRAMFILES"
You should try:

SetOutPath "$INSTDIR"
With your way, no matter what folder you choose, the files will be allocted in program files ($PROGRAMFILES)