nsis

NSIS - rebuilding the installer exe file

依然范特西╮ 提交于 2019-12-11 17:17:55
问题 Suppose I have created an installation exe using NSIS. The exe is a compressed (7zip maybe) file that contains everything to install the application on a fresh machine, and that comprises big exe files (like .NET runtimes, mysql server installer, etc.). I have to send via the Internet the big exe file to another person. To save time and bandwidth, I'd like to remove the contained big files; I can do that using 7zip to open and extract all the files in the original exe, delete the big ones,

FileCopy of NSIS installer not working in Windows 7 but working in Windows XP

天涯浪子 提交于 2019-12-11 15:24:54
问题 I am using FileCopy of NSIS installer to copy a folder along with its all subfiles from a source to destination. This works on XP but not on Windows 7. When i run the installer on Windows 7 , then the FileCopy dialog doesn't even appears, it is just skipped out. But in Windows XP, it properly shows the dialog box of "Copying Files" and succeeds. What's the problem? Please help. !define FileCopy `!insertmacro FileCopy` !macro FileCopy FilePath TargetDir CreateDirectory `${TargetDir}` CopyFiles

Close All Browser In Nsis

本小妞迷上赌 提交于 2019-12-11 12:42:07
问题 Making A Code Which Will Close All opened Browser in nsis. var hadBrowsers Function closeAllBrowsers FindWindow $0 "IEFrame" IntCmp $0 0 0 closeAll FindWindow $0 "MozillaUIWindowClass" IntCmp $0 0 0 closeAll FindWindow $0 "Chrome_WidgetWin_0" IntCmp $0 0 done closeAll closeAll: MessageBox MB_OK "Please close your browsers or press ok to close them all automatically" ;Closing all IE Windows loop: FindWindow $0 "IEFrame" IntCmp $0 0 skipIE IsWindow $0 0 skipIE System::Call 'user32::PostMessageA

Executing Bat File in NSIS installer-not working

孤街醉人 提交于 2019-12-11 11:58:35
问题 I have builded nsis script successfully for my java project.I have a batch file that I need to run within my NSIS installer.It must run after all the files have been extracted.I have tried following commands !define MUI_FINISHPAGE_RUN $INSTDIR\bin\batch.bat This one also have tried: SetOutPath $INSTDIR ExpandEnvStrings $0 %COMSPEC% nsExec::ExecToStack '"$INSTDIR\batch.bat"' I have referred this link. My Requirement is: 1.How to start batch file after installation completion using Nsis script?

create custom page, after the install is complete

邮差的信 提交于 2019-12-11 10:02:28
问题 I am working on a script that is installing my application made in electron and so far all seems to be working fine. There is one problem however, i was able to add new custom page, but it is added before the install is taking place. It is a problem because this page contains two input fields which user must fill and then the provided data is stored in directory where app is installed. But because app is installed after this step, directory gets overwritten and file is gone. This is the code:

Get NSIS Variable for %ALLUSERSPROFILE%

♀尐吖头ヾ 提交于 2019-12-11 08:48:16
问题 Is there a NSIS variable for %ALLUSERSPROFILE% ? If not do you know how I can obtain this environment variable using NSIS code? Note: If I use ReadEnvStr $R7 "ALLUSERSPROFILE" , $R7 contains C:/ProgramData because the installer has requested elevated privileges ( RequestExecutionLevel admin ). This is sooo frustrating! 回答1: Starting with Vista %ALLUSERSPROFILE% is %SystemDrive%\ProgramData. Some of the things that used to be under All Users was moved to %Public% and the rest is in

NSIS problem accessing data

萝らか妹 提交于 2019-12-11 07:23:54
问题 I'll try to make myself as clear as possible. I made an installation program with NSIS. An icon was created on the desktop and when I double-click it, the application lanches well. However, in the install directory I have other directories (like "css" which contains "style.css"), and it seems that the program is looking for my css file in the directory of the shortcut (-> desktop). How could I make the program looking in the install directory rather than in the desktop ? Thanks for your

How to set wizard images in NSIS through CMake/CPack?

荒凉一梦 提交于 2019-12-11 07:02:43
问题 I see that there is no CPACK_xxx variable for changing the wizard image(s) in NSIS (like CPACK_PACKAGE_ICON). So I copied the NSIS.template.in and modified it. I could do something like: !define MUI_WELCOMEFINISHPAGE_BITMAP "C:\work\project\img\wizardInstall.bmp" !define MUI_UNWELCOMEFINISHPAGE_BITMAP "C:\work\project\img\wizardUninstall.bmp" and it will work. However, the source code goes in a repository where many developers colaborate, and it's not really good idea to keep absolute paths

Window Socket programming in NSIS

喜欢而已 提交于 2019-12-11 06:41:08
问题 I am trying to create a socket in the .nsi file to check whether the socket will get created successfully or not to check for port availability. So any help with respect to windows socket programmin in nsis is highly appreciated. thank u 回答1: !include LogicLib.nsh !ifndef AF_INET !define AF_INET 2 !define SOCK_STREAM 1 !define IPPROTO_TCP 6 !define INADDR_ANY 0 !define SOL_SOCKET 0xffff !define /math SO_EXCLUSIVEADDRUSE 0xffffffff ^ 0x4 !endif Function QueryCanBindToIP4TCPPort Exch $0 Push $1

When using NSIS, how do I create an uninstaller with custom pages?

a 夏天 提交于 2019-12-11 06:28:09
问题 I would like to have an uninstaller with custom NS pages. How do I do that with NSIS? 回答1: Example: UninstPage custom un.mypage Function un.mypage ;func body here FunctionEnd "un." is required for uninstall functions. 回答2: Function un.mypageCreate ;call nsDialogs or InstallOptions functions here FunctionEnd UninstPage custom un.mypageCreate 回答3: The Function has to begin with un. (e.g. "un.myPageCreate") though I'm not sure that is the problem the error message is referring to. 来源: https:/