Archive: How can I change the installation type at run time?


How can I change the installation type at run time?
I have 3 installation types which share several sections:
InstType "Install App1"
InstType "Install App2"
InstType "Extract"
InstType /NOCUSTOM

During the installation the installer "remembers" which InstType you selected. When you come back to install a new version, I would like the InstType that we remembered to be selected by default.

I have done all the stuff to do with "remembering" the previous installation type but my question is how do you change the initial value for the InstType drop down?

Any help appreciated.


Originally written in the Documentation
4.9.13.9 SetCurInstType
inst_type_idx
Sets the current InstType. inst_type_idx should be between 0 and 31. The Error Flag is not set if an out of range InstType was used.

Thanks.
SetCurInstType doesn't match SectionIn number so you always have to add 1 to get the one you want.

I've added it as a bug (with reasons):
https://sourceforge.net/tracker/?fun...49&atid=373085