Archive: Problems with Sections!


I am having some serious problems with Sections... I want to make one exe that is an Install and a restore in one... is it possible. I got all the coding down then went to making the sections. It labelled the InstType's 1 and 2 and all seemed fine. I then went to my Sections and made 1 SectionIn 1 and the other SectionIn 2. 1 turned to 0 and 2 turned to 1 so that was fine I just increased the values by one and got them correct. but then the first Section is always defaultly selected. How can I make both of them unselectable so you can choose one or the other? or can you even do this?
Help appreciated thnx
-Rothgar


The first section is always required and cannot be disabled, but you can create a required section that does nothing. Try the following as your first section:

; Required Section
Section ""
SectionEnd



Another Idea is that the first item be the reason why the person downloaded the whole thing. Like Winamp, The Winamp agent is first. There is no way to disable it, it just that way. If you have a collection of programs in an individual installer, make the first section HTML files or my Trademarked nothing.exe. The code is:

Name "Nothing.exe"
OutFile nothing.exe
Icon youricon.ico
SilentInstall silent

Section ""
;See I told you it did nothing
SectionEnd

It's perfect for displaying Icons in an EXE file. Then place that in the first section then just create a Message Box saying "Cleaning Up..." then delete it.

Thanks now I have another problem heheh
Thats for the help with the other problem it worked fine. Now For my Restore Section can I bypass the Uninstall String? because I don't need the uninstall part for the restore just for the install to get rid of the registry stuff.
Thnx
-Rothgar