[Home](./index.md) > [@keymanapp/kmc-package](./kmc-package.md) > [WindowsPackageInstallerCompiler](./kmc-package.windowspackageinstallercompiler.md) > [run](./kmc-package.windowspackageinstallercompiler.run.md) ## WindowsPackageInstallerCompiler.run() method Compiles a .kps file to .exe Windows package installer file. Returns an object containing binary artifacts on success. The files are passed in by name, and the compiler will use callbacks as passed to the [WindowsPackageInstallerCompiler.init()](./kmc-package.windowspackageinstallercompiler.init.md) function to read any input files by disk. **Signature:** ```typescript run(inputFilename: string, outputFilename?: string): Promise; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | inputFilename | string | | | outputFilename | string | _(Optional)_ | **Returns:** Promise<[WindowsPackageInstallerCompilerResult](./kmc-package.windowspackageinstallercompilerresult.md)> Binary artifacts on success, null on failure.