Skip to content

makecert.exe ENOENT during setup #159

@MartinBarker

Description

@MartinBarker

Hello, I am trying to add Resources/icons to my Appx using this package on a brand new pc, but during the setup process of running a command with electron-windows-store in powershell, I am getting an error:

PS C:\Windows\system32> electron-windows-store --input-directory C:\Users\marti\Documents\projects\RenderTune\dist\win-unpacked --output-directory C:\Users\marti\Documents\projects\Appx --package-version 0.5.0.0 --package-name RenderTune --package-display-name 'RenderTune' --publisher-display-name 'martinbarker' --identity-name AAA.digify -a C:\Users\marti\Documents\projects\RenderTune\Resources\
You need at least Node 4.x to run this script
? Did you download and install the Desktop App Converter? It is *not* required to run this tool.  No
? You need to install a development certificate in order to run your app. Would you like us to create one?  Yes
Welcome to the Electron-Windows-Store tool!

This tool will assist you with turning your Electron app into
a swanky Windows Store app.

We need to know some settings. We will ask you only once and store
your answers in your profile folder in a .electron-windows-store
file.

? Please enter your publisher identity:  CN=BCD-EFG-HIJK
? Please enter the location of your Windows Kit's bin folder:  C:\Program Files (x86)\Windows Kits\10\bin\x64
Creating Certficate
When asked to enter a password, please select "None".
node:events:492
      throw er; // Unhandled 'error' event
      ^

Error: spawn C:\Program Files (x86)\Windows Kits\10\bin\x64\makecert.exe ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:286:19)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
    at ChildProcess._handle.onexit (node:internal/child_process:292:12)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn C:\\Program Files (x86)\\Windows Kits\\10\\bin\\x64\\makecert.exe',
  path: 'C:\\Program Files (x86)\\Windows Kits\\10\\bin\\x64\\makecert.exe',
  spawnargs: [
    '-r',
    '-h',
    '0',
    '-n',
    'CN=BCD-EFG-HIJK',
    '-eku',
    '1.3.6.1.5.5.7.3.3',
    '-pe',
    '-sv',
    'C:\\Users\\marti\\AppData\\Roaming\\electron-windows-store\\E69B865D-5831-4BE5-9AA4-08E27DAAD66C\\E69B865D-5831-4BE5-9AA4-08E27DAAD66C.pvk',
    'C:\\Users\\marti\\AppData\\Roaming\\electron-windows-store\\E69B865D-5831-4BE5-9AA4-08E27DAAD66C\\E69B865D-5831-4BE5-9AA4-08E27DAAD66C.cer'
  ]
}

Node.js v20.9.0
PS C:\Windows\system32>

As you can see it is failing with an error

node:events:492
      throw er; // Unhandled 'error' event
      ^

Error: spawn C:\Program Files (x86)\Windows Kits\10\bin\x64\makecert.exe ENOENT

Am I missing developer certs on my machine? Thank you for your help I really appreciate it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions