Skip to content
⌘ NSIS Forum Archive

Reading selected InstType in Callback

5 posts

mons#

Reading selected InstType in Callback

Hi,

I would like to be able to show the user what installation type he has selected so he can confirm. The script should be something like this, please fill in the blanks 🙂

Page components "" "" postFunc

InstType "A"
InstType "B"

Function postFunc
MessageBox MB_OKCANCEL "You are about to install xxx" IDOK install
Abort
install:

How could I display the name of the installation type instead of xxx ?

/Måns
Afrow UK#
InstTypeGetText?

Edit: Actually you'd need to find out which is the selected InstType. The easiest way that I can think of is by getting the selected item of the InstType list box (on the Components page) using SendMessage and a suitable Window Message.

-Stu
Afrow UK#
Originally posted by mons
Thanks, amazing I did not find that one.

😁
lol me too!
One of those newer instructions that I've never had to use 🙂

-Stu