nsis

sending https request using inetc

时光怂恿深爱的人放手 提交于 2019-12-13 00:20:04
问题 So I tried to send some POST data to an url using this code: StrCpy $PostStr "a=input1&c=input2" inetc::post $PostStr "https://url/index.php" "$INSTDIR\result.html" /END Pop $0 StrCmpS $0 "OK" success failedToSubmit failedToSubmit: MessageBox MB_OK|MB_ICONEXCLAMATION "There was an error submitting information: $0" Abort success: MessageBox MB_OK|MB_ICONINFORMATION "Your information was successfully received" but when the url is in https, the following message always appeared: There was an

how to get the exit code of other application in nsis

为君一笑 提交于 2019-12-12 12:34:04
问题 In my .nsi file I am calling ExecWait '"$INSTDIR\application.exe" ' $0 . In application.exe I am returning exit codes for success and failures. How to catch those exit codes in .nsi file. 回答1: If there is an error performing ExecWait, then the contents of the user variable passed in is undefined. To simply check if the program executed correctly or not, check the error flag. (btw, NSIS expects zero for success and non-zero for error) ClearErrors ExecWait '"$INSTDIR\application.exe"' IfErrors

NSIS Eclipse plugin not working

こ雲淡風輕ζ 提交于 2019-12-12 10:59:54
问题 I want to use the NSIS eclipse plugin under eclipse indigo and windows 7. I installed the NSIS plugin in eclipse with the eclipse plugin manager. When I click File->New->Other->EclipseNSIS_Script I get the error: EclipseNSIS only supports the following VMs on Windows 7: 1. Sun Version 1.4x, 5.x, 6.x 2. IBM Version 1.4x 3. BEA Version 1.4x and 1.5x After that I get another error message: Problem opening wizard.The selected wizard could not be started. Plug-in net.sf.eclipsensis was unable to

NSIS Installer with .NET 4.5

走远了吗. 提交于 2019-12-12 10:46:13
问题 I'm after some code snippets for NSIS to detect and conditionally run the .NET 4.5 installer This answer - NSIS Installer with .NET 4.0 - is too naive as checking only the presense of the registry key (not the value) will not discriminate between 4.0 and 4.5 回答1: You shouldn't check for an exact version number. This will change in the future (as was the case for 4.0 > 4.5). Instead use the codes from the deployment guide. In addition to that you should try to handle the reboot from .Net 4.5.

How to create an installer out of an installer?

柔情痞子 提交于 2019-12-12 10:13:17
问题 I have an old legacy application around for which I only have the installer. it doesn't do anything more than uncompress and register itself and his library's. As i don't have the source-code it gives me a lot of headaches in maintenance problems. In some particular computers (Acer Aspire One with Windows) just do not run. I would like to extract the files and re-create this installer with NSIS. Is this possible or I'm nuts? The original installer has been created with Ghost Installer Studio.

NSIS - printing to prompt during command line install

流过昼夜 提交于 2019-12-12 08:48:24
问题 I'm making installers for windows using NSIS and have a number of custom install options that the user can specify using the command line, for example: installer.exe /IDPATH=c:\Program Files\Adobe\Adobe InDesign CS5 /S What I want to do is show these options to the person installing. I can easily enough parse the /? or /help parameters with ${GetParameters} and ${GetOptions}, but how do I do the actual printing to the command prompt? 回答1: NSIS is a GUI program and does not really have the

How can change a text on a label in COMPONENTS PAGE when using MUI2 for NSIS?

前提是你 提交于 2019-12-12 04:42:47
问题 I want to add a link somewhere on the components page. I tried the method presented here, while it is indeed working for the WELCOME PAGE, it causes the installer to crash when I'm adding it to the components page. The thing I want to add is a text that contains an underlined blue word which opens a url on the default browser when clicked on. I want to add it to the existing components page. Thanks, J 回答1: I solved it using some help from the nsis forum the relevant links are: Add Link to

NSIS system kernel32::LoadLibrary does not search Outdir or Path

别来无恙 提交于 2019-12-12 04:39:30
问题 I am trying to load and call a C library DLL's function in my NSIS installer. When I try to load the DLL, an error 126 is emitted (ERROR_MOD_NOT_FOUND). This is the minimal installer script that I am using to test this: OutFile Main.exe ShowInstDetails show Section SetOutPath "C:\Program Files (x86)\MyApp" System::Call 'kernel32::LoadLibraryA(m "C:\Program Files (x86)\MyApp\API.dll")i.r0 ? e' Pop $9 DetailPrint $9 DetailPrint $0 System::Call 'kernel32::GetProcAddress(i r0,m "GetVersion")i.r1

how I can do a section in other section?

馋奶兔 提交于 2019-12-12 03:45:31
问题 I want to make a section in other section, how I can do this thing ? Section /o "Control System Toolbox" Section "Communications Toolbox" SectionIn RO FileWrite $9 "product=Control System Toolbox$\r$\n" AddSize 0 SectionEnd FileWrite $9 "product=Control System Toolbox$\r$\n" AddSize 0 SectionEnd 回答1: You can organize sections in section groups. The groups cannot execute code but you can put hidden sections in them: Page Components Page InstFiles SectionGroup /e "Main Component" Section "" SID

Building a multi-arch installer with msbuild

大憨熊 提交于 2019-12-12 03:26:15
问题 I'm building a multi-architecture installer for a C++ program with NSIS. I'm using Visual Studio 2010. All is well except I don't know how to make the installer depend on the build for all architectures. I have created a project to run makensis as a build step, and configured it to depend on all other projects in the solution. I'm currently building for Win32 and X86_64 architectures. The NSIS project is only built as a part of X86_64 configuration. But it packs files built in both X86_64 and