nsis

Let user cancel an installation in progress in NSI

Using an NSIS built package, when it gets to the point of writing the files and doing the actual install procedure, the 'Cancel' button is grayed out and can't be used. How can I reactivate this button so users can cancel out of the install during this step? ...

How to make a SectionGroup mandatory in NSIS script

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 indicatin...

NSIS Overwrites Shortcuts

Is there any way to tell NSIS not to overwrite my start menu shortcut. The reason I don't want it to overwrite is so the user's command line options aren't cleared when they upgrade to a new version. I've tried this to no avail: Section -AdditionalIcons SetOverwrite off CreateDirectory "${START_MENU_DIR}" CreateShortCut "${START...

NSIS callback function crashes installer when file is not present

Hi, I'm stuck on this. I have this callback function at the bottom of a subscript (.nsh) file. (As you can see I'm using LogicLib): Function InstallFoo MessageBox MB_OK "Within InstallFoo function" ${If} ${FileExists} "$EXEDIR\Modules\foo.zip" MessageBox MB_OK "foo.zip found, do install it!" nsisunz::Unzip "$EXEDIR\Modules\foo.zip" "...

Blowfish-encrypted messages between NSIS and PHP

For a project I'm working on, I need to encrypt and decrypt a string using Blowfish in a compatible way across NSIS and PHP. At the moment I'm using the Blowfish++ plugin for NSIS and the mcrypt library with PHP. The problem is, I can't get them both to produce the same output. Let's start with the NSIS Blowfish++ plugin. Basically t...

Read .inf file in nsis script

How to read a .inf file in nsis script? To be precice: I wanna read ${PRODUCT_VERSION} from a .inf file which is suppose like this: Version = 1.0.0, so I have to read it in .onInit function. Tried using FileRead or ConfigRead but failed to get what is required. I have to read a .inf file only cant change it to .txt or .config or any othe...

NSIS - error handling for "unable to write file"

I'm writing an NSIS installer. I'm trying to figure out how to capture the error when the file is unwritable (eg, if C:\Program Files\ is unwritable because the user doesn't have permissions). The error text shown can be changed with "FileErrorText", but I'd like to call a function to do some work instead of showing a dialog box. .onI...

how to create progress bar using nsDialogs?

I want to create a progress bar for my installer which will show the progress of my installation process.I know a command as ${NSD_CreateProgressBar} in nsDialogs to create a progress bar in nsis script. But I am unaware of how to use it and how to invoke the same in my script. Any kind of help in respective subject will be appreciated.....

Add registration dialog to PackageMaker

I'm currently in the process of writing a Mac PackageMaker-based installer for an application that I had previously distributed for Windows using an NSIS installer. In NSIS, I was able to create a customized dialog that allowed the user to enter their serial number and license key before being allowed to install the program. In Package...

NSIS script - download .NET framework, DirectX

Can a NSIS script download .NET and DirectX from microsoft, then install it? I don't want to include the installers in my installer because they are huge. ...

Start windows service on remote machine using NSIS script

Can I start a service on remote machine using NSIS script. I know we can use: sc \\machine start servicename through DOS prompt. But can we do the same in NSIS? Can SimpleSC be used for this? ...

Connect to oracle server in NSIS

Like we can connect to SQL Server using MSSQL_OLEDB plugin, how can we connect to Oracle server in NSIS? Also what if Oracle server is on some remote machine? ...

NSIS support for Linux and Solaris

Does NSIS support Linux and Solaris? I read somewhere that we can compile nsis script on Linux but cant execute the .exe generated on any other platforms but Windows. Can somebody put more light in this? ...

NSIS: Is there a way to set the location of strings or controls such that they are in reference to one another?

I'm currently using the NSIS InstallOptions plugin to create some custom pages in my installer. When you set the location of controls you want to create, you have to specify the exact coordinates of where that control should be created. This is fine when your installer is truly static, but I'm making a move to internationalize the inst...

how to deploy an ear file in websphere application server

I want to deploy an ear file which will automatically run the ear file with all the configuration in my Web Sphere application server. ...

customizing setup using NSIS Script Editor

I developed customize setup wizard using NSIS Editor. Setup allows an user to Install an application in only available Drive Letter In Client Machine, shown in combobox . But problem is that removable Drive like PENDRIVE also detects in Setup Wizard if it is connected , Is that Possible to not detecting Removable Drive In Setup Wizard...

writing current date & time as file name using NSIS

Hello Friends, I have developed customized setup Installer using NSIS. But every time when I reinstall an application, I want to take backup of old database files. & backup file should be rename as 'currentdatetime'(ex: 201003101140 means 2010-03-10 at 11:40 AM). please, Help me soon I am waiting your reply Thanks ! ...

How to launch a program as as a normal user from a UAC elevated installer

I'm writing an NSIS installer and the setup program elevates "as administrator" as needed on Windows 7 / vista. I need to run the installed program at the end of the install and don't want to launch it with the same privileges as the installer. The regular NSIS exec commands run the child process with the same permissions as the install...

NSIS Installer - Displaying different licences

Heya, I'm trying to modify an existing NSIS install script to allow for different licence files to be presented to the user depending on whether they are a new or existing user. I have pre-existing code which detects an existing install in the .onInit section. However I'm running into bumps trying to use the NSIS provided licence scree...

Including SQL Server Express with Application

I'm bundling an application for distribution and SQL Server is a prequisite so we're including SQL Server Express. What's the easiest way to include SQL server in a point and click installer? In the past I've used NSIS, but it was always flaky when installing the .NET Framework, so .NET, SQL Server and our app seems like an impossible ta...