Archive: generating installoptions pages at runtime


generating installoptions pages at runtime
Hello, again. Sorry to be annoying, but I'm a lonely intern, and we're more annoying than most people.

Is there any way to dynamically generate installoptions pages at runtime? I'd like to read in information from an xml file and create textual pages based on what's read.

(The procedure for which I'm trying to write an NSIS script involves taking persons through service pack deployment for a large enterprise application. The end result that I have in mind is a set of screens that go through each step, extracting/copying files/updating stuff automatically as necessary.

A major piece of functionality that I'd like is the ability to redefine the installer's steps without changing code and recompiling. To that that end I'd like to have an xml file which the installer could use, at runtime, to dynamically generate pages/execute instructions.)


Use WriteINIStr to write to an INI file.

-Stu


The number of pages are set at compile time, but you could add the max number of custom pages that could possibly appear, use the ini functions to write to a install options file and show it using installoptions and (possibly)call abort in the pre function callback for pages that you dont need


or you just include 2 pages, and jump between them.
then on both pages use code in pre and leave functions to load the right ini files.