Tag Info

Hot answers tagged

2

If you run a program (that is you, as in your account, not the OS/System) then I 4expect it to write to your temp folder. By default that is %osdrive% (aka C:) /users/username/AppData/local/temp. YOu can verify that with starting cmd.exe and typing echo %tmp% This should be different from the OS tmp files! Else a user could mofify files in the OS tmp files ...


1

It's probably a bad idea to leave the choice to the user. I'd use the x64 headers to determine the default durectory. Include this in the header of your script. !include LogicLib.nsh !include x64.nsh Then use this in the script, e.g. in the .onInit function: ${If} ${RunningX64} # 64 bit code ${Else} # 32 bit code ${EndIf} Since you can't ...


1

I don't know what the cause is, but restarting fixes this. Man I hate restarting...


1

I've learned a simple rule with Microsoft products: if they do not work as expected, restart them or reboot the computer, and if they still don't work, DON'T PANIC and look online for a solution.


1

Maybe you have a file virus which inserts itself into executables between downloading and execution. Try uploading one of the corrupted files to Virustotal for scanning.


1

I made my installer abort if it found that the ports 80 or 3306 were in use. I used a TCP plugin for NSIS, http://nsis.sourceforge.net/TCP_plug-in I used it in this fashion, ... TCP::CheckPort "80" Pop $0 StrCmp $0 "free" port_ok StrCmp $0 "socket_error" socket_error StrCmp $0 "inuse" socket_inuse Goto port_ok socket_inuse: MessageBox MB_OK "Port 80 ...


1

Thanks to a post on the NSIS forums, I learned that when you associate a file extension manually, Explorer creates a registry key that overrides the system settings for that extension. In the case of NSIS files, this key is: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts.nsi If you delete that key, you will lose your ...


1

should be ExecShell ExecShell open un.bat


1

you might have to specify an output directory as well, see SetOutPath SetOutPath $TEMP File "un.bat" # will be extracted to $TEMP ExecShell open "$TEMP\un.bat"



Only top voted, non community-wiki answers of a minimum length are eligible