nsis

NSIS Create components based on folders

自作多情 提交于 2019-12-11 05:38:30
问题 I'm working on creating an installer that has several applications that can be optionally installed. I'd like to write my installer script so that I don't need to update it every time I add a new application to my apps directory. Is this possible with NSIS? I've got code to search through a folder for sub folders and extract their names, but am having trouble using that to make components in the installer. Folder Structure -Install_Directory -Main_Application -Applications -App_A -App_B -App

NSIS installer file copy operation not working

a 夏天 提交于 2019-12-11 05:14:19
问题 !include nsDialogs.nsh !include LogicLib.nsh Section !define FileCopy `!insertmacro FileCopy` !macro FileCopy FilePath TargetDir CreateDirectory `${TargetDir}` CopyFiles `${FilePath}` `${TargetDir}` !macroend ${FileCopy} 'E:\BACKUP\' 'E:\BACKUPNEW\' SectionEnd --it gives error: Never had OUTFILE command......... 回答1: Well, makensis is telling you the problem: "Never had OUTFILE command" A script must have a outfile command. Outfile "mysetup.exe" Page InstFiles ;You can omit this, but the

NSIS - Could not write updated PATH to HKLM

℡╲_俬逩灬. 提交于 2019-12-11 04:45:19
问题 Good evening, I have a problem when I try to modify the environment variable's path. I'm using the EnvVarUpdate nsi tand for some reason when I run the the installer I get this warning. Any suggestions are highly appreciated ! 回答1: I would think it has to do with permissions in your case, as HKLM is not writable for regular users. Are you setting RequestExecutionLevel admin in your script? It causes the installer to pop up the UAC prompt and ask for admin privileges before executing. Stefan

NSIS decompiler

天大地大妈咪最大 提交于 2019-12-11 03:28:42
问题 Anyone familiar with NSIS decompiler (google wasn't :-) ) Thanks, E 回答1: How to access the NSIS Installer Script? Okay that's the big topic for that post. http://netcologne.dl.sourceforge.net/project/nsis/NSIS%202/2.09/nsis-2.09-src.tar.bz2 nsis-2.09-src\Source\exehead\fileform.c nsis-2.09-src\Source\exehead\fileform.h #define FH_SIG 0xDEADBEEF // neato surprise signature that goes in firstheader. :) #define FH_INT1 0x6C6C754E // 'Null' #define FH_INT2 0x74666F73 // 'soft' #define FH_INT3

how to write or read from XML config file (.config)

我是研究僧i 提交于 2019-12-11 03:27:44
问题 I have to write a config file in the post section of installation and read from the config file if older version of the product exists. config file is XML Configuration File (.config) config file will have so many entries like <name> abcd </name> <company> xyz </company> <choise> choise1 </choise> How to read only choise tag's text and overwrite only choise tag's text. 回答1: NSIS has a total of 4 XML plug-ins to choose from; NsisXML (by Wizou), XML plug-in, NsisXML (by Joel) and NsXML Using

CPack NSIS, generate installer for Windows

别说谁变了你拦得住时间么 提交于 2019-12-11 03:14:25
问题 I´m trying to run packet generator within a VS project, it crashes while compiling because of the use of absolute path on installation from Targets and Files. ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ... I checked twice and all installation directories are relative. I set quite a lot of variables as sub-folders of ${PROJECT_BINARY_DIR} (which should be relative) such as: set(INSTALL_DIR ${PROJECT_BINARY_DIR}/bin) set(LIB_DIR ${PROJECT_BINARY_DIR}/bin/lib) set(EXT_DIR ${PROJECT

Change the text of install folder page in NSIS

此生再无相见时 提交于 2019-12-11 02:17:45
问题 I need to change the text on the "Choose Install Location" page of an NSIS installer to say that my program can not be installed in a directory containing spaces in the name. What is the best way to change this text? 回答1: !include MUI2.nsh !define MUI_PAGE_HEADER_TEXT Foo !define MUI_PAGE_HEADER_SUBTEXT Bar !define MUI_DIRECTORYPAGE_TEXT_TOP Baz !define MUI_DIRECTORYPAGE_TEXT_DESTINATION Bob !insertmacro MUI_PAGE_DIRECTORY !insertmacro MUI_PAGE_INSTFILES !insertmacro MUI_LANGUAGE English You

Is there a way to test beforehand if a windows exe will fail to load because of missing dlls?

谁说胖子不能爱 提交于 2019-12-11 00:00:01
问题 If you try and install the vs2015 redistributable on windows 8.1 without any updates, it will fail to install. But it will get far enough into the install process that the guid is in the registry so if you run a program that checks for the existence of the redistributable in the registry, you'll get past that check. If you then try and run a program compiled with vs2015 that requires some of the dlls that failed to install, you'll get a popup that says "The program can't start because..." you

Creating Setup of large data with NSIS Script

风流意气都作罢 提交于 2019-12-10 23:46:30
问题 I am creating setup of large data approximetly 10 GB with NSIS Script and trying to create a single setup (exe). Its giving an Error - Internal compiler error #12345: error mmapping file (xxxxxxxxxx, xxxxxxxx) is out of range. Note: you may have one or two (large) stale temporary file(s) left in your temporary directory (Generally this only happens on Windows 9x). Please tell me how to solve this issue ? Is there any other way to create a setup for this kinda situation ? 回答1: NSIS installers

NSIS Scroll License Welcome Screen

邮差的信 提交于 2019-12-10 23:18:37
问题 I have an installer that is having problems interacting with the scroll license plugin. The installer works great without the plugin, this is what the plugin has me include: ! include MUI.nsh !define MUI_PAGE_CUSTOMFUNCTION_SHOW LicenseShow !insertmacro MUI_PAGE_LICENSE "EULA.txt" unction LicenseShow ScrollLicense::Set /NOUNLOAD FunctionEnd Function .onGUIEnd ScrollLicense::Unload FunctionEnd Section A Section End The problem I run into is here. If the Welcome page displays BEFORE the License