# Electron build error in windows

**URL:** <https://devforum.zoom.us/t/electron-build-error-in-windows/6861>\
**Category:** Electron\
**Tags:** dc\
**Created:** [November 29, 2019, 8:15am UTC](https://devforum.zoom.us/t/electron-build-error-in-windows/6861 "2019-11-29T08:15:50Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![hjh22343](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hjh22343/32/1749_2.png) [@hjh22343](https://devforum.zoom.us/u/hjh22343)\
**Post date:** [November 29, 2019, 8:15am UTC](https://devforum.zoom.us/t/electron-build-error-in-windows/6861/1 "2019-11-29T08:15:50Z")

</div>

**Description**  
I git clone [https://github.com/zoom/zoom-sdk-electron](https://github.com/zoom/zoom-sdk-electron) and cd demo and run npm install then run npm run packager-win.  
first --version has name --app-verison  
then dependencies can not have electron  
when I modify these and npm run packager-win then I open zoomsdkapp.exe,It show some error has no lib

**Which version?**  
[https://github.com/zoom/zoom-sdk-electron](https://github.com/zoom/zoom-sdk-electron) this git repo

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. git clone [https://github.com/zoom/zoom-sdk-electron](https://github.com/zoom/zoom-sdk-electron)
2. cd demo
3. npm install
4. npm run packager-win

**Screenshots**  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/5/50372df6573bd8d96c574643547db58834073abf.png)

some guess  
I have build mac in my own project  
so in build windows has some similarity steps move some sdk files to somewhere

and I want to know how to change zoom-meeting windows icon and title in zoom-electron-sdk

hope to your relpy!

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [December 2, 2019, 10:17pm UTC](https://devforum.zoom.us/t/electron-build-error-in-windows/6861/2 "2019-12-02T22:17:38Z")

</div>

Hi hjh22343,

Thanks for the post. What is your SDK version, Electron version and Node version? Are you trying to build Electron SDK app on Windows 64bit? Our Electron SDK is currently only support 32-bit:[https://github.com/zoom/zoom-sdk-electron#development-environment-configuration-for-windows](https://github.com/zoom/zoom-sdk-electron#development-environment-configuration-for-windows)

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![hjh22343](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hjh22343/32/1749_2.png) [@hjh22343](https://devforum.zoom.us/u/hjh22343)\
**Post date:** [December 3, 2019, 3:22am UTC](https://devforum.zoom.us/t/electron-build-error-in-windows/6861/3 "2019-12-03T03:22:01Z")

</div>

sdk verison：v44.4.56616.1029  
electron：5.0.2  
node verison: 12.0.0  
I know electron must use 32bit，so I install electron --arch=ia32 in our project  
I want to know when build electron sdk in windows has some steps such as copy win32 sdk to /resources some path？  
Did you try git repo electron-sdk-zoom in package.json when npm run packager-win? this script seems no work,when I buid windows and run exe

---

<div class="post-metadata">

**Author:** ![roc.wang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/roc.wang/32/1024_2.png) [@roc.wang](https://devforum.zoom.us/u/roc.wang)\
**Post date:** [December 3, 2019, 9:03am UTC](https://devforum.zoom.us/t/electron-build-error-in-windows/6861/4 "2019-12-03T09:03:56Z")

</div>

Hi.  
There is a script file “build\_nodeaddon\_win\_ia32.bat” in our package. By runing this script file, you can build zoom\_electron\_sdk, the .node file is in sdk/win32 folder. By runing the script file “run\_demo\_win.bat”, you can start and use our demo.

You can change the icon by suppling the InitParam.uiWindowIconSmallID, and InitParam.uiWindowIconBigID of the interface InitSDK.  
And you can change the title by using the interface AddCustomizedStringResource.

---

<div class="post-metadata">

**Author:** ![hjh22343](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hjh22343/32/1749_2.png) [@hjh22343](https://devforum.zoom.us/u/hjh22343)\
**Post date:** [December 9, 2019, 2:42am UTC](https://devforum.zoom.us/t/electron-build-error-in-windows/6861/5 "2019-12-09T02:42:19Z")

</div>

hi, @roc.wang,  
run\_demo\_win.bat is electron. but I want to build app，git repo pack-windows is not work，no I work it out but I don’t know it is right  
I modify packager-win most like cpoy ./sdk/win32 to ./sdk/zoom/win32 ./lib to ./lib  
anyone go to work it out when build windows electron zoom app

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [December 13, 2019, 6:07pm UTC](https://devforum.zoom.us/t/electron-build-error-in-windows/6861/6 "2019-12-13T18:07:01Z")

</div>

Hi [hjh22343](https://devforum.zoom.us/u/hjh22343),

Thanks for the reply. I will forward the info to the engineering team and get back to you shortly.

Thanks!

---

<div class="post-metadata">

**Author:** ![roc.wang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/roc.wang/32/1024_2.png) [@roc.wang](https://devforum.zoom.us/u/roc.wang)\
**Post date:** [December 16, 2019, 7:55am UTC](https://devforum.zoom.us/t/electron-build-error-in-windows/6861/7 "2019-12-16T07:55:32Z")

</div>

Hi, @hjh22343 Here are the steps for win32 to package a zoomsdkapp.exe

1. open the package.json in the folder “demo”
2. modify the line “packager-win” like this:  
 ![Image20191216162847](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/4/43af941eb7cba5247c1c544982527fe90655baea.png)
3. cd demo
4. npm install electron-packager --save-dev
5. npm run-script packager-win

---

<div class="post-metadata">

**Author:** ![hjh22343](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hjh22343/32/1749_2.png) [@hjh22343](https://devforum.zoom.us/u/hjh22343)\
**Post date:** [December 16, 2019, 12:15pm UTC](https://devforum.zoom.us/t/electron-build-error-in-windows/6861/8 "2019-12-16T12:15:30Z")

</div>

ok @roc.wang ,I will try this script. thank you  
btw,is our app must support by node v12 and electron v5.0.2?  
because I find in repo and readme.md

**you will be able to configure and compile the new Zoom Electron SDK with any versions of Electron.**

what’s this mean?

I use node 10.15.3 and electron v3 but it is not work

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/e/ed2c3a2b02bf0565029a35f5c45b2ee085002fab.png)

is this mean I build .node file with node v12 and electron v5  
and use .node file in any version of Electron

---

<div class="post-metadata">

**Author:** ![roc.wang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/roc.wang/32/1024_2.png) [@roc.wang](https://devforum.zoom.us/u/roc.wang)\
**Post date:** [December 17, 2019, 1:43am UTC](https://devforum.zoom.us/t/electron-build-error-in-windows/6861/9 "2019-12-17T01:43:28Z")

</div>

According to the error report, maybe this is because the old definition of function "BooleanValue"of v8 in electron 3 is different with electron 5. Maybe you can modify the the function “zoom\_v8toc” in \lib\node\_add\_on\zoom\_v8\_to\_c.cpp like this:  
 ![Image20191217094147](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/6/6a196028d124b87634ebb4d9d2c39e9392135cc0.png)

---

<div class="post-metadata">

**Author:** ![zshuaibin](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zshuaibin/32/3248_2.png) [@zshuaibin](https://devforum.zoom.us/u/zshuaibin)\
**Post date:** [February 17, 2020, 5:06pm UTC](https://devforum.zoom.us/t/electron-build-error-in-windows/6861/10 "2020-02-17T17:06:04Z")

</div>

Can u tell me what’s the meaning of “/Y/S/Q” ?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/d/dd405441a982a13c076f809a35a3a347d5cf4034.png)

---

<div class="post-metadata">

**Author:** ![roc.wang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/roc.wang/32/1024_2.png) [@roc.wang](https://devforum.zoom.us/u/roc.wang)\
**Post date:** [February 19, 2020, 2:15am UTC](https://devforum.zoom.us/t/electron-build-error-in-windows/6861/11 "2020-02-19T02:15:38Z")

</div>

/y Suppresses prompting to confirm that you want to overwrite an existing destination file.  
/s Copies directories and subdirectories, unless they are empty. If you omit **/s** , **xcopy** works within a single directory.  
/q Suppresses the display of **xcopy** messages.

You can get the more details in this link: [https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/xcopy](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/xcopy)

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:25pm UTC](https://devforum.zoom.us/t/electron-build-error-in-windows/6861/12 "2020-08-21T19:25:08Z")

</div>


