nsis

Customizing an exsisting NSIS MUI2 page

谁说胖子不能爱 提交于 2019-11-29 16:59:01
I have added a checkbox successfully to nsis installer's finish page defining functions for MUI_PAGE_CUSTOMFUNCTION_PRE and MUI_PAGE_CUSTOMFUNCTION_SHOW in finish page using MUI . But if I include MUI2 instead of MUI , the check box is not displayed. I suppose there is something different in MUI2 than MUI with respect to this. I could not find documentation on that an if anyone knows that, can I please know??? Thank you Anders MUI1 uses InstallOptions for the Welcome and Finish pages and MUI2 uses nsDialogs. This is documented in the MUI2 readme : The welcome and finish page are no longer

How to install postgres with NSIS with all parameters?

心不动则不痛 提交于 2019-11-29 16:22:37
We have a C# program which uses postgres as its database, so we want to bundle the postgres in the installer as a semi-silent install, i.e. the user will be notified about the mandatory installation, but the installation itself will be automatically performed without the need for user input. After researching opinions on WiX, Inno Setup and NSIS we decided to use NSIS. As I see it the easiest way will be to include the binary .zip distibution of postgres and perform the following in the script: Copy the pgsql folder to the installation dir Run initdb.exe with the appropriate arguments to

Accessing command line arguments in NSIS

谁说我不能喝 提交于 2019-11-29 10:48:21
问题 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. 回答1: 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

NSIS script for java installation

穿精又带淫゛_ 提交于 2019-11-29 10:07:45
I want to install Java using an NSIS script, but i have to know whether Java is installed or not in the system (Windows). based on the register keys how can we check if Java is installed or not? Can anybody provide an NSIS script to check Java installation based on registery keys? jing I didn't compile it, but I would try following. I chose registry key based on How can I detect the installed Sun JRE on Windows? . ;-------------------------------- ;Defines !define JavaRegKey 'HKLM "Software\JavaSoft\Java Runtime Environment" ""' ;-------------------------------- ;Installer Sections Section

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

不问归期 提交于 2019-11-29 09:56:56
问题 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

CurrentVersion value in registry for each windows operating system

有些话、适合烂在心里 提交于 2019-11-29 09:43:17
问题 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? 回答1: These are the required versions of windows operating systems: Operating system Version number ---------------------------- -------------- Windows 10

NSIS: Installing an Application to always Run as Administrator

我的未来我决定 提交于 2019-11-29 08:52:28
问题 I have a NSIS script that is working well for a large application. I have read many threads all over the web, but cannot get a clear answer to the following: is it possible to install an application using NSIS which, when launched (regardless of the type of user) automatically is run as administrator? If this is possible how can it be achieved? Note: I am already imposing that the NSIS package must be run as admin using RequestExecutionLevel admin I have tried writing the UAC requirement to

How do you make an update installer with NSIS?

邮差的信 提交于 2019-11-29 08:18:03
问题 I currently have a project with an installer I made with NSIS, but I would like to have an update to new versions that only has the changed files and will show a changelog. The target platform is windows. What methods/suggestions do you have to do this? 回答1: You might want to reconsider using NSIS. If you are into patching and distributing updates you will probably get the most benefit from using an installer technology that utilises the Windows Installer capabilities (msiexec). NSIS is

Launch4j, NSIS, and duplicate pinned Windows 7 taskbar icons

荒凉一梦 提交于 2019-11-29 07:58:07
I'm having a problem wherein when I pin a taskbar icon in Windows 7 for my application, clicking the icon opens up a separate (duplicate) icon for the program instead of keeping it grouped with the shortcut used to call it. The application itself is a .jar file that's been wrapped into an .exe using Launch4j. That would explain why the icon is getting duplicated -- Launch4j is calling a separate process of javaw.exe, and it looks like the AppModelUserID gets confused when you start doing stuff like that. According to this post , the solution is to specify your AppModelUserID through some

Automating NSIS script build using maven2

点点圈 提交于 2019-11-29 02:44:09
We have developed a script using NSIS Version 2.46 which would generate a installer for windows. Now that we would want to automate the build process of generating the installer by taking help of maven. We currently use maven for building our java code projects and for building our end product. For automating the build process of NSIS script, I am not able to find the maven plugin information which supports NSIS script build. I googled for the information but I did not get any concrete information on how to start with it. Could anyone explain how to start with it or point me to a page which