NsisConfig.ts 623 B

1234567891011121314151617181920212223242526272829
  1. export class NsisConfig {
  2. public icon: string = undefined;
  3. public unIcon: string = undefined;
  4. public languages: string[] = [ 'English' ];
  5. public installDirectory: string = '$LOCALAPPDATA\\${_APPNAME}';
  6. public diffUpdaters: boolean = false;
  7. public hashCalculation: boolean = true;
  8. constructor(options: any = {}) {
  9. Object.keys(this).map((key) => {
  10. if(options[key] !== undefined) {
  11. switch(key) {
  12. default:
  13. (<any>this)[key] = options[key];
  14. break;
  15. }
  16. }
  17. });
  18. }
  19. }