Archive: directory Page behaviour


directory Page behaviour
Hi folks,

I have provided the default path in my NSIS script as

InstallDir "$PROGRAMFILES\${PRODUCT_PUBLISHER_NAME}\${PRODUCT_NAME}".

When I edit the path in the directory page, I notice two issues.

1> On entering "c:\" in the edit box, unless I enter another SPACE character, I cannot install the application.

Can installation on root paths of drives be disallowed entirely ? or, Is there a way to enable the install button ?

2> Also, when I select any folder from the browse option, it appends the ${PRODUCT_NAME}" automatically.

If I remove the product name from the default path, the ${PRODUCT_PUBLISHER_NAME} is appended by automatically.

Is there a way to avoid this?

Regards
Anup J. Rao



Hi Kichik,
Thanks for the solution. I was able to change both the behaviours as desired. Thanks again to the entire NSIS and WinAmp team for making such a wonderful installer.

Regards
Anup J. Rao