diff --git a/generate-xml.js b/generate-xml.js index c54ec8b..2c003e5 100644 --- a/generate-xml.js +++ b/generate-xml.js @@ -48,36 +48,36 @@ function installerFor (components, options) { ]), options.runAfter ? el('Property', { - Id: "cmd", - Value: "cmd.exe" + Id: "cmd", + Value: "cmd.exe" }) : "", options.runAfter ? el('CustomAction', { - Id: "LaunchApplication", - ExeCommand: "/c start \"\" \"%programfiles%\\"+options.name+"\\"+options.executable+"\"", - Execute: "", - Property: "cmd", - Impersonate: "yes" + Id: "LaunchApplication", + ExeCommand: "/c start \"\" \"%programfiles%\\"+options.name+"\\"+options.executable+"\"", + Execute: "", + Property: "cmd", + Impersonate: "yes" }) : "", el('InstallExecuteSequence', [ el('RemoveExistingProducts', { Before: "InstallInitialize" }), - options.runAfter ? el('Custom', { - Action: 'LaunchApplication', - After: 'InstallFinalize' - }, ["NOT Installed"]) : "" + options.runAfter ? el('Custom', { + Action: 'LaunchApplication', + After: 'InstallFinalize' + }, ["NOT Installed"]) : "" ]), - el('CustomAction', { - Id: "LaunchInstalledExe", - FileKey: "mainExecutableFile", // what goes here? - ExeCommand: "", // and here? - Execute: "immediate", - Impersonate: "yes", - Return: "asyncNoWait" - }), + options.runAfter ? el('CustomAction', { + Id: "LaunchInstalledExe", + FileKey: "mainExecutableFile", // what goes here? + ExeCommand: "", // and here? + Execute: "immediate", + Impersonate: "yes", + Return: "asyncNoWait" + }) : "", el('Package', { InstallerVersion: "200",