export class NsisConfig { public icon: string = undefined; public unIcon: string = undefined; public languages: string[] = [ 'English' ]; public installDirectory: string = '$LOCALAPPDATA\\${_APPNAME}'; public diffUpdaters: boolean = false; public hashCalculation: boolean = true; constructor(options: any = {}) { Object.keys(this).map((key) => { if(options[key] !== undefined) { switch(key) { default: (this)[key] = options[key]; break; } } }); } }