nsis

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

柔情痞子 提交于 2019-12-01 15:07: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? x64.nsh has some helper macros and you can install into $programfiles32 or $programfiles64 Edit: Function .onInit StrCpy $instdir

Adding a checkbox to the NSIS Uninstaller Welcome Page

大憨熊 提交于 2019-12-01 08:25:29
问题 I'm trying to add a checkbox to the welcome screen of my NSIS uninstaller, but I'm having trouble finding an example. From the documentation for MUI2 I can't find any custom functions that can be run on the welcome page. It looks like the finish page is more easy to customize based on the documentation and other answers I've found. Is there a way to customize the Welcome Page? If not, what are the other options for accomplishing the intent? 回答1: The MUI(1) documentation you linked to has a

NSIS automatic and silent update

爱⌒轻易说出口 提交于 2019-12-01 06:54:49
I am currently building an application and want to have an installer and automatic silent updates for it. Dropbox, Spotify and Chrome all are amazing at updating without anyone noticing. So I took a look at the Dropbox Roaming Folder in AppData and found a file named DropboxUpdateHelper.exe with an NSIS Icon. In the Spotify folder I could only find a SpotifyHelper.exe and a mentioning of NSIS in the Terms. Is there a tutorial of how to install an application inside the Roaming Folder and have a silent auto updater? I am not fixed on NSIS but would prefer an open source and free installer. NSIS

NSIS automatic and silent update

丶灬走出姿态 提交于 2019-12-01 05:35:54
问题 I am currently building an application and want to have an installer and automatic silent updates for it. Dropbox, Spotify and Chrome all are amazing at updating without anyone noticing. So I took a look at the Dropbox Roaming Folder in AppData and found a file named DropboxUpdateHelper.exe with an NSIS Icon. In the Spotify folder I could only find a SpotifyHelper.exe and a mentioning of NSIS in the Terms. Is there a tutorial of how to install an application inside the Roaming Folder and have

NSIS打包教程

会有一股神秘感。 提交于 2019-11-30 18:20:39
NSIS中文版 :https://pan.baidu.com/s/1mitSQU0 装好之后会出现两个软件:Nullsoft Install System 和 VNISEdit 编译环境 其中 Nullsoft Install System:是使用教程手册集合 VNISEdit 编译环境: 才是打包exe安装程序的软件 教程: 1.打开VNISEdit 编译环境 软件,然后打开“文件—新建脚本:(向导)” 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16.生成的exe安装文件 17. 18. 19. 20. 21. 22. 23.生成的桌面快捷方式 24.注意点 ①ico图标要规范,不能随便拿张png,jpg图片改一下后缀名就行了,需要用专业ico工具制作或者导出 26.教程所有资源分享 来源: https://www.cnblogs.com/zp9628/p/11634756.html

How to create a batch file which work for both Program Files and Program Files(x86)?

断了今生、忘了曾经 提交于 2019-11-30 18:20:25
I have created a batch file which automatically copy a .sql file to the path of installed Jasper server(it could be any software installation directory). This is my batch script-- C:\PROGRA~2\JASPER~1.0\mysql\bin\mysql.exe -u root -proot < create_database.sql that is working when jasper is installed in Program Files(x86). How can i generalize it for both Program Files and Program Files(x86). You want to use environment variables to look up things like this. On 32bit Windows, %ProgramFiles% is your friend. On 64bit Windows, things are a little more complicated, as application can be installed

Make Windows refresh icon cache

风流意气都作罢 提交于 2019-11-30 09:56:05
I really liked the oxygen appearance of KDE SC 4. I wrote a program to apply these icons to windows. The program is written in NSIS, and is currently nearly fully functional. However, the only way I found to make Windows aware of the icon changes is to kill explorer.exe, delete the icon cache, and respawn explorer.exe. SHChangeNotify with SHCNE_ASSOCCHANGED seems to be unable to make Windows aware of the changes to the Control Panel icon, the My Computer icon, etc. Please suggest a better, less brutal approach to make Windows aware of these changes. EDIT: I found a program called Icon Tweaker

Accessing command line arguments in NSIS

狂风中的少年 提交于 2019-11-30 07:39:10
I am trying to make my setups scripts modular. I am calling setup exe's from within main setup script based to the requirements. I want to pass command line arguments to the exe being called. Can someone please tell me how to access the command line arguments in the script being called. Thanks in advance. you can use GetOptions function ( FileFunc.nsh must be included above). Following example shows p parameter reading; its value is saved into the variable. $CMDLINE is your command line (absolute or relative, as you called) containing also your parameters. !include FileFunc.nsh ${GetOptions}

Auto-installing a google chrome extension won't work !

强颜欢笑 提交于 2019-11-30 07:34:21
I am working on a job in relation with this page http://code.google.com/chrome/extensions/external_extensions.html I wrote a NSIS script that is trying to auto install a chrome extensions. (Why ? because our extension can be offered with another product installation flow through a checkbox, then if user select our extension to be added, it will auto-install on the user chrome browser using NSIS silent installation) I tried a lot of scenario and I need help, on google website, they say you can do this Using a preferences JSON file Using the Windows registry They also say that "Using a

CurrentVersion value in registry for each windows operating system

最后都变了- 提交于 2019-11-30 07:32:50
I am working on nsis installer. For this purpose I want to know CurrentVersion value for each operating system at HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" For example: I have windows 7 professional installed on my machine and CurrentVersion value is 6.1 . Can any one list it down for all windows operating systems since Windows 98? Ajinkya These are the required versions of windows operating systems: Operating system Version number ---------------------------- -------------- Windows 10 10.0 Windows Server 2019 10.0 Windows Server 2016 10.0 Windows 8.1 6.3 Windows Server 2012 R2 6.3