nsis

NSIS - How to include all folders from source to Installer

為{幸葍}努か 提交于 2019-12-20 09:45:20
问题 I have an application which consists one .exe , many .dlls and a few folders. I use NSIS to create an installer. It works but when I install the software, I don't see all the folders inside my application. What do I have to do to bundle all the folders within my application into the installer? This is the code I set the data source at this time: File "c:\MyProject\MyApp\*" 回答1: The documentation tells us that the /r argument of the File command includes all sub folders and files. So you would

fill directory textbox on button click in MUI NSI Installer , using ButtonEvent plug-in

笑着哭i 提交于 2019-12-20 05:49:30
问题 i have added custom button using Resource Hacker on the MUI Directory Page of the installer, now i want that when the button is clicked then the Default Textbox where the user enters the InstallDir (the path where the application is installed), is filled with some specified text. please help me with the code? I am using ButtonEvent plug-in, but i don't know what code to write in the event handler. Currently am just displaying a message box when the button is clicked to ensure that the event

Windows control panel requires admin privileges when uninstall via NSIS

孤街醉人 提交于 2019-12-20 05:42:07
问题 I have a NSIS installer/uninstaller which install an application for the current user only. There are registry writings in HKCU in order to make the application appears in control panel. It works perfectly well. However, when I try to uninstall the application from control panel, it pop-up the admin privileges pop-up box (the AUC stuff) and run the uninstaller as admin. Therefore HKCU is related to the admin account and not the user account. In this way, a user can 'uninstall' the admin

Set environment variables with NSIS in Window 7

旧时模样 提交于 2019-12-20 05:39:11
问题 I want to set environment variable using NSIS installer. I will run script on Windows 7, if it is important. Thanks! 回答1: How can I create or change an environment variable Note: Changing %path% this way is unsafe and can corrupt the entry if it is longer than the NSIS string length! 回答2: You can create a windows batch file, pack it with the setup just like other files, on install unpack it to the plugins directory and execute it: File "/oname=$PluginsDir\appendvar.bat" "PathToScriptDir

Create an installer program: read a path to install to, from registry key (something like wix/installshield/nsis)

给你一囗甜甜゛ 提交于 2019-12-20 03:17:23
问题 I would like to create an installer of my program. However because the installation is quite complicated, I need something more advanced than installshield limited edition. I have to run another installer from my current one. It doesn't matter if the user press "cancel" or installs the program, I just need to run it. I have to install a directory structure on user computer which has a lot of files, that's why i'm going mad with wix: 100 files and I should write all of them with my hands in

NSIS Get Product Version

主宰稳场 提交于 2019-12-19 11:49:40
问题 All, I am trying to get the ProductVersion using NSIS 2.49. Does anyone have examples on how to get the product version? GetDllVersion "C:\data\Some.exe" $R0 $R1 ;the two values were read during compilation IntOp $R2 $R0 / 0x00010000 IntOp $R3 $R0 & 0x0000FFFF IntOp $R4 $R1 / 0x00010000 IntOp $R5 $R1 & 0x0000FFFF MessageBox MB_OK '$R2.$R3.$R4.$R5' I have tried the above but, it is just retrieving a the File Version. Thanks 回答1: NSIS does not have native support for this, you have to call the

Make Windows refresh icon cache

南笙酒味 提交于 2019-12-18 13:37:30
问题 I really liked the oxygen appearance of KDE SC 4. I wrote a program to apply these icons to windows. The program is written in NSIS, and is currently nearly fully functional. However, the only way I found to make Windows aware of the icon changes is to kill explorer.exe, delete the icon cache, and respawn explorer.exe. SHChangeNotify with SHCNE_ASSOCCHANGED seems to be unable to make Windows aware of the changes to the Control Panel icon, the My Computer icon, etc. Please suggest a better,

Launch4j, NSIS, and duplicate pinned Windows 7 taskbar icons

烂漫一生 提交于 2019-12-18 05:01:35
问题 I'm having a problem wherein when I pin a taskbar icon in Windows 7 for my application, clicking the icon opens up a separate (duplicate) icon for the program instead of keeping it grouped with the shortcut used to call it. The application itself is a .jar file that's been wrapped into an .exe using Launch4j. That would explain why the icon is getting duplicated -- Launch4j is calling a separate process of javaw.exe, and it looks like the AppModelUserID gets confused when you start doing

Automating NSIS script build using maven2

放肆的年华 提交于 2019-12-18 03:46:56
问题 We have developed a script using NSIS Version 2.46 which would generate a installer for windows. Now that we would want to automate the build process of generating the installer by taking help of maven. We currently use maven for building our java code projects and for building our end product. For automating the build process of NSIS script, I am not able to find the maven plugin information which supports NSIS script build. I googled for the information but I did not get any concrete

Detecting if a program is already installed with NSIS

别来无恙 提交于 2019-12-17 15:35:56
问题 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? 回答1: 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