View Single Post
Old 6th August 2021, 11:16   #1
Symbicort
Junior Member
 
Join Date: Aug 2021
Posts: 5
NSIS user selected install directory

Is it possible to force the user to have a specific install directory when they select their custom install directory on the directory page?

I'm using MUI2.

My default install dir is

code:
InstallDir "$PROGRAMFILES64\${PRODUCT_PUBLISHER}\${PRODUCT_NAME}"


I can see that the install will select the final value in this to become the top folder of the user selected directory. For example when I put in Test here. The top folder of the user selected directory will be test.

code:
InstallDir "$PROGRAMFILES64\${PRODUCT_PUBLISHER}\Test"


Is there a way to force this to include another folder so the user will have to have "${PRODUCT_PUBLISHER}\${PRODUCT_NAME}"



Also I super apologies if I have duplicated this thread, I could swear I created one earlier but it disappeared after I selected submit. First time poster.
Symbicort is offline   Reply With Quote