nsis

How to install postgres with NSIS with all parameters?

懵懂的女人 提交于 2019-11-28 10:43:44
问题 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

NSIS script for java installation

拜拜、爱过 提交于 2019-11-28 03:21:59
问题 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? 回答1: 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

Reproducing the blocked exe “unblock” option in file properties in windows 2003

自闭症网瘾萝莉.ら 提交于 2019-11-27 22:25:04
问题 When I download my program from my website to my windows 2003 machine, it has a block on it and you have to right click on the exe, then properties, then select the button "Unblock". I would like to add detection in my installer for when the file is blocked and hence doesn't have enough permissions. But I can't eaisly reproduce getting my exe in this state where it needs to be unblocked. How can I get the unblock to appear on my exe so I can test this functionality? 回答1: This is done using

How to Add a Desktop Shortcut Option on Finish Page in NSIS installer?

不问归期 提交于 2019-11-27 20:34:42
I'm trying to create an installer using NSIS Modern User Interface for the first time. I would like to know how I can add an option (checkbox) for users to select to have a desktop shortcut created on the Finish Page (the last screen of the installer) in addition to the "Run XXXX" option that's already there. If you are not using readme checkbox on the finish page, you can use it to perform whatever action you want: Function finishpageaction CreateShortcut "$desktop\foo.lnk" "$instdir\foo.exe" FunctionEnd !define MUI_FINISHPAGE_SHOWREADME "" !define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED !define

Build NSIS script as a MSI package

主宰稳场 提交于 2019-11-27 20:20:40
问题 Is there any way to compile the Nullsoft Installer Script (NSI) setup as a MSI package instead of an EXE? 回答1: Unfortunately, No. NSIS lets you create scriptable, procedural installation packages. It's simple, easy to use and has a number of features not present in Windows Installer. Windows Installer (MSI) creates database driven, transactional installation packages. When written properly a Windows Installer package is very robust, a file gets corrupted/deleted and it will be automatically

Detecting if a program is already installed with NSIS

天大地大妈咪最大 提交于 2019-11-27 18:52:41
I'm using NSIS to create an installer for a program, what is the best way to detect if this program is already installed? Also, since I'm running the installer from the autorun.inf, can I immediately quit the installer if it locates an installed copy? Is there a better way to do this? How about this. I had this in an old NSIS script laying around. ; Check to see if already installed ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\<YOUR-APP-NAME>" "UninstallString" IfFileExists $R0 +1 NotInstalled messagebox::show MB_DEFBUTTON4|MB_TOPMOST "<YOUR-APP-NAME>" \ "0,103" \ "

How can I modify the text in the MUI_WELCOME_PAGE when using MUI2 for NSIS?

帅比萌擦擦* 提交于 2019-11-27 16:01:55
问题 I want to add a label displaying the full version-string in the welcome screen in the installer I am creating using NSIS with MUI2. I have searched for info on how to do this, but only found references to using MUI_INSTALLOPTIONS* which I found ws deprecated for MUI2. Another one referred to the newer versions using INSTALLOPTIONS* with the same options, but I could not get it working. I finally also found a reference to using nsDialogs for this - which is what I am using for my custom pages.

Executing Batch File in NSIS installer

北战南征 提交于 2019-11-27 14:55:41
问题 I have a batch file that I need to run within my NSIS installer. It must run after all the files have been extracted, (I suppose this is obvious, otherwise the batch file wouldn't exist yet). I tried to use MUI_PAGE_CUSTOMFUNCTION_PRE with the finish page in order to run it but when it gets to that portion of the script it appears that it skips right over it. Below is how I invoke it. ;;Finish Page !define MUI_PAGE_CUSTOMFUNCTION_PRE Done !insertmacro MUI_PAGE_FINISH Function Done ExecWait '"

Reliable way to get Windows Version from registry

这一生的挚爱 提交于 2019-11-27 14:47:11
I'm checking the windows version in an installer (made with NSIS) by checking the following registry key: HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" "CurrentVersion" According to this post and this page from MSDN, the currentVersion number for Windows 10 should be 10.0. I just installed the Windows 10 Pro Insider Preview and the version number given in the registry is still 6.3, instead of 10.10 as it should. Is there another reliable way in registry to detect Windows 10? Instead of reading the value CurrentVersion , read the new values CurrentMajorVersionNumber (which is 10) and

Free software for Windows installers: NSIS vs. WiX? [closed]

点点圈 提交于 2019-11-27 09:23:13
问题 I'm need to choose a software package for installing software. NSIS and WiX seem promising. Which one would you recommend over the other and why? Feel free to offer something else if you think it's better than these two. 回答1: If you want to get an installer done today , with the minimum amount of overhead, use NSIS. Simple scripting language, good documentation, fast. If you want to build MSI files, integrate with the Windows Installer transactional system, and have plenty of time to devote