--- tags: iSDV --- # iSDV Windows Installer Documentation. ### Step I : Tool Installation 1. [Download open source](https://jrsoftware.org/isdl.php#stable) packing software 2. Install in windows device ### Build App ### Step II : Preprocessing 1. First Generate AppID in innosetup software(only for first time create) * innosetup -> Tool-> Generate GUID in iSDV_Win_Installer.iss 2. [Follow the installation script](https://gitlab.ieiworld.com/isdv/installation) * In this script folder we have include all dependencies * Secondary software use * Include python, nodejs, openssl, mongo * python need include lib tftpy(install python and pip install tftpy before copy folder in iSDV APP) * Node need to install pm2 global ( copy pm2 install file and pm2 node_modules in nodejs folder) * Include link library(.dll) files in mongoDB and openSSL ### Step III : build and encrypt API 1. [encryp javascript file git project](https://gitlab.ieiworld.com/nayana/encrypt_javascript_files) 2. copy all api details in src folder in **encrypt_javascript_files** * Follow below steps to build API ``` Application port = 3008 npm install Run Program npm start To encode Javascript files execute below API http://127.0.0.1:3008/ "src" folder: User can insert API code here "build" folder: After executing http://127.0.0.1:3008/ GET API, User will get encrypted code in "build" folder ``` 3. [Copy the build api to svdoe_api folder in windows application](https://gitlab.ieiworld.com/isdv/installation/tree/master/install/sdvoe_api) ### Step IV : build iSDV UI 1. [Build UI detail](https://gitlab.ieiworld.com/isdv/sdvoeui) ``` npm install npm run build ``` 2. Copy Dist folder from iSDV UI to sdvoe_api/public/dist ### Step V : Add signtool in innosetup 1. [Download and install tool before next line]((https://developer.microsoft.com/zh-tw/windows/downloads/windows-sdk/)) 2. [Add Code signing certificate in Inno Setup](https://support.ksoftware.net/support/solutions/articles/17169-how-do-i-automate-code-signing-with-innosetup-and-ksign-) * Open the InnoSetup IDE * Click Tools -> Configure Sign Tools * Click the Add button * For [Name of the Sign Tool] put signtool * Click OK * For [Command of the Sign Tool] put ```"C:\Program Files (x86)\Windows Kits\10\bin\x64\signtool.exe" sign /f "D:\git_project\iSDV_installer\innoSetup\IEI_certificate\IEI Integration Corp_.pfx" /fd SHA256 /tr http://timestamp.digicert.com /td SHA256 /p "Ieiworld)(*&OIyu" $f``` * Click OK, then OK again. ### Step VI : Build Installer 1. After above details open iSDV_Win_Installer.iss file in Inno Setup Compiler and `Click build`(start to build the APP) ### Step VI : Include sign code certificate with digicert 1. [Download and Install Digicert Utilities](https://www.digicert.com/support/tools/certificate-utility-for-windows) 2. [Follow code signing steps using digicert](https://www.digicert.com/kb/code-signing/digicert-certificate-utility-to-sign-code.htm#:~:text=Run%20the%20DigiCert%C2%AE%20Certificate,Double%2Dclick%20DigiCertUtil.&text=If%20you%20do%20not%20see,that%20you%20want%20to%20sign.) 3. Verify code signing certificate 4. Once build finish `Click Run` will start to install **Reference :*** 1. [Inno Setup Document](https://jrsoftware.org/ishelp/) 2. [Digicert certificate utilities](https://www.digicert.com/kb/code-signing/digicert-certificate-utility-to-sign-code.htm#:~:text=Run%20the%20DigiCert%C2%AE%20Certificate,Double%2Dclick%20DigiCertUtil.&text=If%20you%20do%20not%20see,that%20you%20want%20to%20sign.) 3. [Refer for third party software issue](https://medium.com/nerd-for-tech/use-node-without-installation-and-admin-access-b492796288c9) 4.