Skip to content
⌘ NSIS Forum Archive

Clean nsDialog Scripts

2 posts

Zilatica#

Clean nsDialog Scripts

So, I've got a problem that I have solved, but I haven't solved cleanly.

I have a need to define a generic nsDialog. The dialog itself is generic enough that I want to have it in an included nsh script so that I can share both internally to the company and externally to the community. The dialog has to support parameters, and currently I have it consuming globals. How do I write an nsDialog that resides in another script (think library nsi file) that can take parameters? Would it best be defined as a macro? The macro is what I'm leaning towards, but ideally you could just define a Function that is the nsDialog definition in another script.

Any ideas?
Afrow UK#
If you're only going to use the dialog once then best put it in a macro. That way all parameters that are constants are evaluated on compile.

Stu