How to use the electron-wix-msi.MSICreator function in electron-wix-msi

To help you get started, we’ve selected a few electron-wix-msi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github IBM / kui / packages / builder / dist / electron / builders / msi.js View on Github external
* See the License for the specific language governing permissions and
 * limitations under the License.
 */

const path = require('path')
const { MSICreator } = require('electron-wix-msi')

const BUILDDIR = path.join(__dirname, '..', process.env.BUILDDIR)
const { PRODUCT_NAME, SETUP_ICON: setupIcon } = process.env

const appDirectory = path.join(BUILDDIR, `${PRODUCT_NAME}-win32-x64`)
const outputDirectory = path.join(BUILDDIR, 'installers/win32-x64')

console.log('Windows msi build started')

const creator = new MSICreator({
  appDirectory,
  outputDirectory,
  setupIcon,
  name: 'kui',
  setupExe: `${PRODUCT_NAME}.exe`,
  exe: 'kui'
})

creator
  .create()
  .then(() => creator.compile())
  .then(() => {
    console.log('Windows msi build succeeded')
  })
  .catch(err => {
    console.error(err)
github electron-userland / electron-forge / src / makers / win32 / wix.js View on Github external
export default async ({ dir, appName, targetArch, forgeConfig, packageJSON }) => {
  const { MSICreator } = require('electron-wix-msi');

  const outPath = path.resolve(dir, `../make/wix/${targetArch}`);
  await ensureDirectory(outPath);

  const creator = new MSICreator(Object.assign({
    description: packageJSON.description,
    name: appName,
    version: packageJSON.version,
    manufacturer: getNameFromAuthor(packageJSON.author),
    exe: `${appName}.exe`,
  }, configFn(forgeConfig.electronWixMSIConfig, targetArch), {
    appDirectory: dir,
    outputDirectory: outPath,
  }));

  await creator.create();
  const { msiFile } = await creator.compile();

  return [msiFile];
};

electron-wix-msi

Creates an MSI installer for your Electron app

MIT
Latest version published 9 months ago

Package Health Score

67 / 100
Full package analysis