Skip to content
⌘ NSIS Forum Archive

how to implement instaltype

6 posts

shekara#

how to implement instaltype

using nsis, i need to implement a silent install. i have 2 install types lets says laptop and desktop. if it is laptop, i have certain files that get installed, certain apps that installed, certain config i do. if it is desktop it is different set of files, different apps and configs. how do i achieve this using install type
i define two types insttype "laptop" insttype "desktop". i have many sections in installer which has to be set.. how to use this
shekara#edited
i dont give user any control to select . something like reg or file identifier and then based on that select instatype
Anders#
InstType "Full" IT_FULL
InstType "Minimal" IT_MIN
Section "Help"
SectionInstType ${IT_FULL} ${IT_MIN}
SectionEnd
Section "Bonus content"
SectionInstType ${IT_FULL}
SectionEnd
Function .onInit
IfSilent "" +2
    SetCurInstType ${IT_MIN}
FunctionEnd​ 
Anders#
We have a Discord but I'm not there every day.

Keeping it public on the forum is better, it helps everyone with the same problem.