nsis

Check for .NET4.5+ with NSIS

僤鯓⒐⒋嵵緔 提交于 2019-11-29 02:43:29
问题 All, I am aware of the following methods to check the framework version in NSIS. For .NET4.0+ I currently use Function IsDotNetInstalled StrCpy $0 "0" StrCpy $1 "SOFTWARE\Microsoft\.NETFramework" ; Registry entry to look in. StrCpy $2 0 StartEnum: ; Enumerate the versions installed. EnumRegKey $3 HKLM "$1\policy" $2 ; If we don't find any versions installed, it's not here. StrCmp $3 "" noDotNet notEmpty ; We found something. notEmpty: ; Find out if the RegKey starts with 'v'. ; If it doesn't,

NSIS installer that checks for .NET Framework

可紊 提交于 2019-11-29 02:32:19
问题 I want to create an NSIS installer that checks for the .NET Framework and installs it if it's not there. Can you point me to a script for this? I'm very new to NSIS. 回答1: Try the DotNetVer script. It uses LogicLib and is quite easy to use. HasDotNet<version> checks if the specific version of .NET framework is installed. <version> can be replaced with the following values: 1.0, 1.1, 2.0, 3.0, 3.5, 4.0. AtLeastDotNetServicePack checks if the .NET framework has a service pack version at least as

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

て烟熏妆下的殇ゞ 提交于 2019-11-29 01:34:58
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. However - I found no reference or samples on how to change any of the existing pages that comes with

Executing Batch File in NSIS installer

给你一囗甜甜゛ 提交于 2019-11-28 23:25:11
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 '"$INSTDIR\BatchFile" "$INSTDIR" "$DATA_FOLDER"' FunctionEnd Thanks in advance for your help. UPDATE I

How to create an installer with CMake + CPack + NSIS on Windows?

Deadly 提交于 2019-11-28 20:09:06
问题 I'd like to create a cross-platform installer for a C++ based system I am building. I use CMake to build everything, and it would be great if I could use CPack to make the installer. I already have CPack working on OSX, but I cannot get it to work on Windows. To make things easier, I tried to get the example at http://www.cmake.org/Wiki/CMake:Packaging_With_CPack to work with the NSIS installer software. I cannot find the NSIS installer anywhere after configuring (with VS 2010 Win64 generator

NSIS - put EXE version into name of installer

谁都会走 提交于 2019-11-28 19:06:58
问题 NSIS has a Name variable that you define in the script: Name "MyApp" It defines the name of the installer, that gets displayed as the window title, etc. Is there a way to pull the .NET Version number out of my main EXE and append it to the Name? So that my installer name would automatically be 'MyApp V2.2.0.0" or whatever? 回答1: There might be a very simple way to do this, but I don't know what it is. When I first started using NSIS, I developed this workaround to suit my needs and haven't

Build NSIS script as a MSI package

巧了我就是萌 提交于 2019-11-28 18:13:48
Is there any way to compile the Nullsoft Installer Script (NSI) setup as a MSI package instead of an EXE? 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 reinstalled. Windows Installer is aware of UAC and only elevates when required, basically if you're creating

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

ぃ、小莉子 提交于 2019-11-28 15:46:40
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. 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 to learning the declarative model used by Windows Installer, then check out WiX. pilif Also, maybe give Inno

NSIS: How to add custom button to left bottom corner and handle it's click?

心已入冬 提交于 2019-11-28 13:05:44
I tried the ButtonEvent plugin, but when I run compiled example, it fails with memory access error. Maybe it is able to do with System plugin via Windows API or something else? Can anyone show how it can be done? UPD: Error was appeared because I tried to use non-unicode ButtonEvent on Unicode NSIS. Now example compiles and executes OK, but when I click on TryMe button, callback function is not called and nothing happens. How to determine what is the problem? Can anyone compile ButtonEventMUI.nsi and click on TryMe button? I downloaded latest ButtonEvent version. Using NSIS 2.46 Unicode The

Customizing an exsisting NSIS MUI2 page

时光毁灭记忆、已成空白 提交于 2019-11-28 10:47:22
问题 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 回答1: MUI1 uses InstallOptions for the Welcome and Finish pages and MUI2