sanface
24th November 2003 10:51 UTC
Q: 2 $instdir
Hello,
I've to install the application in the standard $INSTDIR and I want to put the exe in the local cgi-bin directory.
Can I give to the user the possibility to select both?
How can I use 2 different $INSTDIR or how can I solve this problem?
Thanks
Fabrizio
kichik
24th November 2003 11:23 UTC
In 2.0b4 you can use two directory pages and give each one a different variable to handle. One can handle $INSTDIR and the other $SECONDINSTDIR.
Gaim's installer script is a good example for this. If you're not using the MUI then simply use DirVar and PageEx to get the same outcome.
sanface
24th November 2003 13:22 UTC
Probably I've understood
I've used
!insertmacro MUI_PAGE_DIRECTORY
Var SECONDINSTDIR
!define MUI_DIRECTORYPAGE_VARIABLE $SECONDINSTDIR
!insertmacro MUI_PAGE_DIRECTORY
Is it correct?
Fabrizio
kichik
24th November 2003 13:27 UTC
Yes, that is correct.
sanface
24th November 2003 13:56 UTC
A simple error
In the second directory (a cgi-bin dir) I don't want NSIS add to the selected dir name_program-ver.
Is it possible to configure this?
Fabrizio
kichik
24th November 2003 13:58 UTC
Currently you're only able to set it for both at once and it depends on the InstallDir instruction. I have put it on my todo list.
sanface
24th November 2003 14:09 UTC
> Currently you're only able to set it for both at once and it
> depends on the InstallDir instruction.
:(
> I have put it on my todo list.
:) :) :)