nsis

NSIS scripts-Changing header text. Also using same variable in both installer and uninstaller section.

I am writing an installer using NSIS. I wanna know how to change or write a description(text on white header)on custom pages? For eg: I am inserting a customized page after the directory page and the description remains the same i.e Choose Install Location... But I wanna change it according to my page requirement. How should I change thi...

Adding custom pages to uninstaller.

I am creating a custom page in my uninstaller as follows: UninstPage custom mypageCreate ..... ..... ..... Function mypageCreate ;call nsDialogs or InstallOptions functions here FunctionEnd UninstPage custom mypageCreate But I am getting an error- Error- resolving create-page funtion "mypageCreate" in uninstall pages. Help.. ...

Nsis - changing installation directory.

Currently I am in my installing directory say c:\Program File\My installer.I have to execute a demo.bat file that is stored at some other location say c:\Program Files\Temp\example.bat,which I have to go at that location and execute coz my example.bat has some support files that are only stored in Temp folder. My question is how can I c...

Get WiX to write a new GUID to the registry after each install

I'm trying to port an NSIS installer to WiX. Every time the installer runs it sets a registry key to a new GUID value, so that when my app runs it can see if it's first run after an install. On first run the app sets another registry key to the GUID value from the installer. As long as the two keys match then I know the installer hasn...

how to create a SETUP.EXE wrapper for an MSI file using NSIS

I want to wrap a existing msi installer file into NSIS installer executable. Because there is not any option to change the icon of the msi file. I just want to customize the icon of the output setup.exe. Along with this I would also want to make sure that NSIS does not add any extra user interface into my installer. Have anybody an idea ...

NSIS: How to add Items to a listbox control?

How to add items to a listbox control at run time in NSIS? ...

NSIS Vs WiX Vs AnyOther Installation Package

Hi, Need to create a Installation Package that would need to a) install a Database, b) create database and tables, c) installed already created installable in Visual Studio, d) create ODBC datasource, e) copy files. f) create shortcuts, etc Can you please suggestion which one to use? To simplify following would be my criteria(Desce...

NSIS: What is a registry?

What is a registry in NSIS? How do you write to and read from a registry? ...

Nsis: Problem in FileRead

When I read a file using FileRead and display the contents in a listbox I get some garbage characters after the line. Eg. if my line is : a.txt I get something lk: a.txt$$ (Note $$ are some garbage characters) Its probably because of $\r$\n. What can I do to correct this? ...

NSIS: Problem to copy 1 file to another excluding a line

I want to replace the file 1.txt with its original contents except the line in R1, for which I wrote the following code: FileOpen $0 "1.txt" "r" GetTempFileName $R0 FileOpen $1 $R0 "w" loop: FileRead $0 $2 IfErrors done ...

NSIS:Problem when moving the files from one folder to another folder.

I have a folder containing files which will be having chinese names. When I am trying to use MoveFolder it's not moving the folder it's failing. Can anybody know the reason? Thanks in Advance, Trivikram ...

NSIS- How can I dynamically show a particular custom page?

My 1st page contains 2 radio buttons: 1 for install and other for upgrade. Depending upon user selection I have to show custom pages for installation or upgradation. How can I do this? ...

NSIS - How to run Java Application In NSIS?

I wanna run a java application through NSIS. My java program is called PropertiesReader.java which reads a property from a .config file.How can I do this? Also the output of java program (which in this case is the property value) is stored in some variable say property_value in java program. How can i access back the value of this variab...

Start application non-elevated from NSIS installer

I have an NSIS installer, that gives the option "Run program now" when the installation has completed successfully. The installer runs elevated (as administrator) on Vista, but as a result, my installed program will also run elevated when started immediately from the installer. This gives a problem with certain 3rd party software I'm us...

Detect if an instance is running with kernel32::CreateMutexA

Hello. I'm working on an NSIS installer, and trying to check if a certain application is running before uninstalling. So, I use kernel32::CreateMutexA call. Here is the chunk: System::Call 'kernel32::CreateMutexA(i 0, i 0, t "cmd.exe") i .r1 ?e' Pop $R0 StrCmp $R0 0 +3 MessageBox MB_USERICON "The application is already running." Ab...

NSIS- Error handling

I have written an installer and uninstaller in NSIS which creates and drops an sql database, which is working fine. I have written some .bat and .sql files to create and drop the database and then just call these files from NSIS script. My problem is if I keep this database open in SQL Server Management Studio and run the uninstaller ide...

What is the easiest way to add a page to ask for a string in NSIS using MUI?

I'm an NSIS novice. I'm using the NSIS editor, and the build-in wizard to create a basica installer. I've figured out how to add a second page to ask the user for an alternate folder (install path vs data storage path). I also need to ask them for a URL (a SOAP/WSDL location), and I'd like to just add in another page similar to the dire...

Can .bat file execute an sql query and return a value?

How can I call a query from a .bat file? (say my query is: select version from system). Can my .bat file save the output that this query returns? I wanna use this output in my NSIS script. ...

NSIS - How do I detect silent install?

If an NullSoft Install System installer is launched with the /S switch, how can I detect it from the script? Thanks! ...

Retain data on custom pages when back button is pressed

Incase of custom pages in NSIS script is there any way to retain the data entered by user when back button is pressed (when the installer is running)? ...