nsis

Conditional Display of pages in NSIS using nsDialog

I have added a custom page to my installer created using nsDialogs, however, the page is only necessary to be displayed to one of my InstType options. InstType "Default" # 1 InstType "Developer" # 2 In the example above, I'd like the extra page to be shown to only developers. What is the best practice? Inspect some attribute to det...

How do I create a shortcut (.lnk) with a relative target?

Hi, I have an executable on my disk-on-key in dir\program\prog.exe I'd like to have a shortcut to the executable on the DoK's root directory, that is, prog.lnk would refer to dir\program\prog.exe. However, it seems that prog.lnk can't have a relative target. This is a problem when the DoK will have different drive letters assigned to ...

NSIS decompiler

Anyone familiar with NSIS decompiler (google wasn't :-) ) Thanks, E ...

NSIS: Problem reading installdir by InstallDirRegKey

I have a nsi script which starts as following: Name "myprog" OutFile "myprog.exe" InstallDir $PROGRAMFILES32\xx InstallDirRegKey HKLM "Software\yy\xx" "InstallDir" RequestExecutionLevel admin AutoCloseWindow true BrandingText /TRIMCENTER "me" LoadLanguageFile "${NSISDIR}\Contrib\Language files\German.nlf" Caption "Updateprogramm" It w...

how do I use a NSIS wildcard in the middle of a relpath

I have a directory structure that has the USER_ID in it, I'd like to distribute an nsis script that goes to a wild-carded directory ... something like File ..\*Project\a\b.exe ;or File ..\B???Project\a\b.exe to go to ..\B123Project\a\b\c.exe or B234Project\a\b.exe. The wild card does what I want for files, but not directories. ...

Resources on how to create a NSIS plugin

Is there documentation on how to write a NSIS plugin? Where can I find it? ...

Why don't QLocalSocket/Server connections work when one process was invoked by an NSIS installer?

I have an NSIS installer that installs my Qt application. At the end of the install process, the installer gives the user the option to launch the application immediately. My application uses QLocalSocket/QLocalServer to talk to other local instances of the application. (They talk to each other basically just to ensure that there's only...

NSIS Installer with .NET 4.0

Is there a standard/preferred method for automatically downloading and installing the .NET 4.0 Framework from an NSIS installer, if the machine doesn't already have it? There are several examples for making this work on older versions of the framework, but seemingly none of them work for 4.0. Before I hack something together myself, I ...

How can I disable a button in NSIS while installation ?

Hi, I am creating a installer which is having multiple component to install(checkbox are provide to select the desired component). Now, suppose user has not selected any option, even then Next button on the component page is activated.Here I want to disable that next button when no option is selected. Can anybody tell me how I can do tha...

nsis on Windows-7 reboot for .NET 4 installation does not continue installation

When installing my application I also install the .NET 4.0 redistributable if .NET 4.0 is not present on the machine. On Windows-7 this sometimes (maybe always) causes a reboot (outside of nsis's control). I should like the installation to continue after the reboot. I should be grateful for advice on how to address this scenario with ...

Deploy web application as a standalone executable

I have a web application that I developed with the Google Web Toolkit (GWT), it is a utility application that helps make calculations when planning specific server deployments. I want to be able to offer this application as a download on my website for people that want to use the application but don't always have internet access. I was...

Copy Files in NSIS

I am using the following command to copy files. After setting output path... File "Documents\*" This action works flawlessly. There are no issues coping the files in the Documents directory until... if there is a copy of an existing file (with a different name) in the directory only the first instance of the file gets copied regardl...

boilerplate installer for windows "chroot"

I'm looking at distributing an windows app that needs to use the "Chroot" on windows solution described here. I've build some simple installers before but nothing complicated (i.e. one that creates users and deals with windows permissions) so I'm looking for a starting point. Does anyone know of a installer that sets up the stuff needed ...

NSIS installer (on OS X) gives 'Invalid command: TargetMinimalOS'

I built NSIS 2.46 on my OS X computer according to the instructions provided at http://nsis.sourceforge.net/Docs/AppendixG.html#G.3. The build worked fine and it correctly creates my installer. My installer is fully working, but I tried to add the command: TargetMinimalOS 5.0 This isn't essential to my task; as I understand it, all i...

How to do incremental software update and restart like Chrome or Firefox

I have written a Java app and an NSIS installer. Works great. The issue is when there is a new version, the full installer needs to be downloaded and run (and possibly the old version uninstalled first). How do you achieve the "Help >> Check for updates" system that Chrome, Firefox, dozens of other applications use to make staying curre...

Unicode NSIS Exec/ExecWait

Hi! Is it possible to execute command within Unicode NSIS script. Execution works ok, if i use non Unicode NSIS version, but when i try it with Unicode version it just doest do anything. Command: Exec '"$TEMP/myFile.exe"' Thank you ...

Runtime Exception: "CoCreateInstanceEx: The specified service does not exist as an installed service."

I just checked the latest source out of our repository after the installer (NSIS if it really matters) was created and a bug was discovered. I started receiving the runtime exception CoCreateInstanceEx: The specified service does not exist as an installed service. on the following code: Opc.IDiscovery discovery = new OpcCom.ServerEnume...

running imported nsis code from within a compiled nsis executable

Is it possible to import nsis code and run it from within a compiled nsis executable? Suppose I have a nsis script fubar.nsi and compile it to fubar.exe. For strange reasons*, I also have some additional nsis statements that I want to read in and execute when fubar.exe is run - I am not sure what they will be until then. Does a plugin ...

NSIS: Detecting in unistaller is a program working

Is it possible to determine in uninstaller script is a program (that should be uninstalled) working? ...

How to execute another NSIS installer and wait for it to finish?

I'm writing an installer in NSIS, which is kind of a wrapper for another installer, created with NSIS. The inner installer is not mine. It's created with BioWare Installer 1.03 (NSIS 2.34). It may be broken somehow, but I can't modify it! What my installer does is that it simply modifies some registry values (otherwise the "inner" instal...