Archive: InstType misreported


InstType misreported
I compiled my last install with nsis 2.03.
Now that I upgraded to 2.11 I came across this problem.

If I have two (or more) InstType 's with the same Sections selected then when selecting InstType 1 the installer reports that InstType 0 was selected.

See attached installer example.

Thanks,
Opher.


If you have two installation types with the same sections in them, the first will be selected, if the appropriate sections are selected. In older versions, it remembered the exact installation type and didn't figure it out from the sections. That caused problems in other places. Why do you have two installation types with the same sections anyway?


The InstTypes install the same sections but differ in install location and parameters (local vs network folders, local vs remote SQL server).

Whould it work if I added hidden sections one for each InstType?


That might work. However, the components seems like quite an odd place to have the user select these settings. I'd put a custom page with a bit more explanation and a couple of radio buttons.


I have a IO page following the components page.
The afore mentioned settings are predetermind by the InstType and some are marked READONLY.
I also use /COMPONENTSONLYONCUSTOM
I tried hidden sections but it doesn't report InstType = 32 when "Custom" is selected. Also, if I select the second InstType continue to the next page and press back the selection reverts to the first InstType.

I'll consider a IO page before the components page with radio buttons to select the Install type.

Opher.


Custom will not be reported for the same reason. The section selection shows an installation type is selected, not a custom selection. The reversion is caused by the same reason as well.