NSIS message box
I was just wondering how i could create a message box asking if you want to install into folder 1 or folder.
note: folder 1 and folder 2 are just for example.
:confused:
Archive: NSIS message box
NSIS message box
I was just wondering how i could create a message box asking if you want to install into folder 1 or folder.
note: folder 1 and folder 2 are just for example.
:confused:
Yes you could use InstallOptions to create an installer page which asked that question. See the readme file and nsis examples for instructions on how to use IO, if needed.
Vytautas
if you want a message box you can do this:
InstallDir "$PROGRAMFILES\\FolderOne"
|MB_TOPMOST|MB_ICONQUESTION "Do you want to \\
>Function .onInit
MessageBox MB_YESNO
install to the alternative folder"IDNO "Continue"
StrCpy $INSTDIR "C:\\alternative"
Continue:
>FunctionEnd
>
However if you do use IO then you can control the layout of the message, show the alternative folders, etc. Also you Installer then retains the same uniform appearance. Having said that the code n0On3 provided will also accomplish the same task in a different way.
Vytautas
yes Vytautas is right ;)