nsis

Electron auto update fails silently when installing update on Windows

故事扮演 提交于 2020-01-15 09:52:12
问题 I have an electron app which uses electron-builder for building, packing & publishing the app. I have the following auto-update code: autoUpdater.logger = log; autoUpdater.logger.transports.file.level = "info"; autoUpdater.autoDownload = true; const updateCheck = () => { autoUpdater.checkForUpdates().then(resp => { log.info("autoUpdate response:"); log.info(resp); }); }; app.on("ready", async () => { log.info(`Version: ${app.getVersion()}`); autoUpdater.on("update-downloaded", () => { log

Use one NSIS installer to install 32-bit binaries on 32-bit OS and 64-bit binaries on 64-bit OS possible?

╄→гoц情女王★ 提交于 2020-01-11 08:05:55
问题 I currently have two WIX installers for a product that I maintain. One for 32-bit operating systems, and one for 64-bit operating systems. Instead of maintaining two separate installers, I want to combine them into one NSIS installer that can "determine" the "bitness" of the OS and then copy the appropriate binaries into the program directory. Has anyone had any experience with this and could provide a working sample script that NSIS can use to make the installer? 回答1: x64.nsh has some helper

Use one NSIS installer to install 32-bit binaries on 32-bit OS and 64-bit binaries on 64-bit OS possible?

孤者浪人 提交于 2020-01-11 08:05:29
问题 I currently have two WIX installers for a product that I maintain. One for 32-bit operating systems, and one for 64-bit operating systems. Instead of maintaining two separate installers, I want to combine them into one NSIS installer that can "determine" the "bitness" of the OS and then copy the appropriate binaries into the program directory. Has anyone had any experience with this and could provide a working sample script that NSIS can use to make the installer? 回答1: x64.nsh has some helper

NSIS after PyInstaller Kivy app can't find database

冷暖自知 提交于 2020-01-07 09:21:12
问题 I successfully packaged my Kivy app for Windows using PyInstaller and my app.exe runs without any problems. (.spec: Kivy 1.9.1 Windows package .spec single exe) For easier distribution I want to package my file to a single standalone .exe. My .nsi file: SilentInstall silent Section InitPluginsDir Setoutpath KanjiOrigin File /r "dist\KanjiOrigin\*" ExecWait "dist\KanjiOrigin\KanjiOrigin.exe" Setoutpath $TEMP SectionEnd A .exe is build without error: http://pastebin.com/h91jzGgY However when

Port availability check on remote system

*爱你&永不变心* 提交于 2020-01-07 02:11:32
问题 How can I tell if a given port is available or not on a local or remote system, in an NSIS page? 回答1: Abuot COM ports: They cannot be detected directly from NSIS so write simple plug-in in C which will detect port by it's number. This is my basic idea: void GetListOfLocalPorts(CList<CString, CString>& o_lstPorts) { for( int i = 1; i <= 99; i++ ) { DCB dcb; HANDLE hCom = NULL; BYTE byPort = (BYTE)i; CString strPort; strPort.Format("COM%d", i); CString strCom = (CString)"\\\\.\\" + strPort;

NSIS ExecWait dosen't wait when installing the setup file via chrome browser

旧巷老猫 提交于 2020-01-06 20:04:34
问题 When downloading the .exe installation file (NSIS installation) and opening it via chrome in order to execute it the ExecWait dosen't work. I'm running a batch file which kill browsers processes inside of the installation, because I opened the exe file via the chrome (Download Manager) the ExecWait think that the execute has ended and therefore dosen't wait for the next ExecWait calls that coming after the line which call to execute the batch file. It think that chrome was the parent process

How can I make this function actually work in NSIS?

℡╲_俬逩灬. 提交于 2020-01-06 06:31:37
问题 I am trying to factor out a snippit of code I have ALL OVER my NSIS installer. The snippet is as follows: nsExec::ExecToStack 'Dism.exe /Online /Enable-Feature /FeatureName:NetFx3' Pop $0 ${If} $0 != 0 Pop $0 Push ".NET 3.5 failed to install: $\n$0" Call DetailPrintTS StrCpy $Errors "$Errors Errors From .NET 3.5 install:$\n$0$\n$\n" ${EndIf} So I'd like to factor this to something like: Function LoggedExec Pop $0 Pop $1 nsExec::ExecToStack $0 Pop $0 ${If} $0 != 0 Pop $0 Push "$1 failed to

NSIS play with InstalldirRegKey

只愿长相守 提交于 2020-01-05 10:08:39
问题 From NSIS documentation, we have root_key subkey key_name This attribute tells the installer to check a string in the registry, and use it for the install dir if that string is valid. If this attribute is present, it will override the InstallDir attribute if the registry key is valid, otherwise it will fall back to the InstallDir default. So, if I have these lines in a .nsi file: InstallDir "D:\myFolder\myFile" InstallDirRegKey HKCU "Software\${PRODUCT_COMPANY}\${PRODUCT_NAME}" "Install_Dir"

How to make a SectionGroup mandatory in NSIS script

廉价感情. 提交于 2020-01-05 07:10:23
问题 In an NSIS MUI script it is possible to make a section compulsory by adding "SectionIn RO" to the section. I would like to specify that the entire SectionGroup is compulsory. I know I can make each of the individual components compulsory which makes the group compulsory by default, but the SectionGroup checkbox is still enabled indicating that the user can turn it off. This could be confusing. Is there an equivilent to "SectionIn RO" for SectionGroups and thus force the group's checkbox to be

Getting a shortcut on the start screen from installer in Windows 8.1 (NSIS)

孤者浪人 提交于 2020-01-04 13:58:08
问题 I'm guessing this answer exists somewhere but I've been searching and trying things for 8+ hours now so I'm asking. How do I get an icon on the Windows 8.1 (and 8, and 7) start screen at installation time? I'm using Nullsoft Scriptable Install System. I've tried both version 2.46 and 3.0b0 (not that I thought that had anything to do with it but might as well try both). What I think is the relevant part of my script is this !define APPNAME "MyApp" !define COMPANYNAME "Greggman"