nsis

How do you set directory permissions in NSIS?

折月煮酒 提交于 2019-12-29 19:13:50
问题 I'm trying to build a Windows installer using Nullsoft Install System that requires installation by an Administrator. The installer makes a "logs" directory. Since regular users can run this application, that directory needs to be writable by regular users. How do I specify that all users should have permission to have write access to that directory in the NSIS script language? I admit that this sounds a like a sort of bad idea, but the application is just an internal app used by only a few

Exec vs ExecWait vs ExecShell vs nsExec::Exec vs nsExec::ExecToLog vs nsExec::ExecToStack vs ExecDos vs ExeCmd

人走茶凉 提交于 2019-12-29 10:14:12
问题 Can I know what are the differences between each Exec , ExecWait , ExecShell , nsExec::Exec , nsExec::ExecToLog, nsExec::ExecToStack , ExecDos and ExecCmd , as in when to use which? I 've posted the various execute calls I know. I am trying to make a comprehensive list, so that it helps future visitors.. Exec : Plainly execute the called string, be it some application, console or file. ExecWait : Executes like Exec but waits till the process exits. ExecShell : What is it for? nsExec::Exec :

How to set the checkbox by default checked in the windows installer Finish page using NSIS

自古美人都是妖i 提交于 2019-12-25 18:27:57
问题 I wanted to set the checkbox as checked by default in the windows installer Finish page using NSIS. For that I used the below code snipped. But it is not even displaying the checkbox in the Finish page. Please help me on this. Var Checkbox Var CheckState ; Stored globally so we remember the choice if the user presses the back button and goes back to our page !define CheckHeight 28 !macro CreateNativeControl hParent cls style exstyle x y w h text ; Note: Only supports pixel coordinates System:

Getting info from struct after calling system plugin

北慕城南 提交于 2019-12-25 18:21:24
问题 I am trying to get some info from windows via the System plugin and the netapi32 library. I try to call NetWkstaGetInfo() after allocating a struct suitable as a WKSTA_INFO_100 . The NetWkstaGetInfo() prototype states in MSDN: NET_API_STATUS NetWkstaGetInfo( _In_ LPWSTR servername, _In_ DWORD level, _Out_ LPBYTE *bufptr ); While the WKSTA_INFO_100 is typedef struct _WKSTA_INFO_100 { DWORD wki100_platform_id; LMSTR wki100_computername; LMSTR wki100_langroup; DWORD wki100_ver_major; DWORD

Recommended Library/Macro that Deletes Installed Files on Uninstallation

瘦欲@ 提交于 2019-12-25 18:18:50
问题 Which library or macro that deletes only installed files when the uninstallation is run would you recommend? I'm aware this kind question has been asked alot but I'm looking for advice on the most current and easiest to use macro/library. As in the past,I used old macros that were posted on NSIS Website for things like Command Line Argument parsing and had problems with the code and implementation. My understanding is that there are 2 so far(are there more?): Advanced_Uninstall_Log Uninstall

Jump to another label from within a label

别来无恙 提交于 2019-12-25 08:27:50
问题 In NSIS, how do I jump to a label from within another label? Note: I am not sure if what I am talking about is actually called a label so correct me if I am wrong. In the following code I want to jump to the label 'InstallFiles', see the line '# SEE HERE': # the following code is from within a macro # Check the directory exists IfFileExists $installDirectory InstallFiles CreateDirThenInstall CreateDirThenInstall: # this is a label...I think? :P file $installDirectory # SEE HERE: HOW DO I call

Product version string from an exe - nsis

泪湿孤枕 提交于 2019-12-25 07:23:39
问题 I want to read the product version (optional string) from a given executable (actually from the installer I'm trying to create if it makes any difference), if it is possible at the run-time. This string will be further used to download files from a link. Thank you very much ! 回答1: NSIS does not have native support for reading anything other than VS_FIXEDFILEINFO ->dwFileVersion so you have to call the Windows API directly: ; Add some version information so we have something to test

How to make sure all components are deselected when using /COMPONENTSONLYONCUSTOM?

梦想与她 提交于 2019-12-25 03:29:05
问题 I have the following NSIS installation types: InstType "X (recommended)" InstType "/CUSTOMSTRING=Y (advanced mode)" InstType /COMPONENTSONLYONCUSTOM The idea is that installation "X" should install all components silently, whereas installation "Y" should only install components that have been selected. The components of installation "Y" should all be deselected by default. This is something I can't manage to achieve. I have tried a lot of different scenarios to get all components deselected

Why my uninstaller is not working properly in nsis?

淺唱寂寞╮ 提交于 2019-12-25 02:53:48
问题 I have written a nsis script in which i need to prompt the user where there was previous installation and uninstall the previous version if user select the same folder as previous version.It is working fine.But suppose user choose different directory than the uninstall.exe is giving problem. Ex-suppose user install version 1.2 in folder a and then agian version 1.2 in folder B . Than in every case the uninstall .exe is pointing to folderb not folder a.How can i solve this issue 回答1: In the

SelectFolderDialog with only drives, no folder selection inside drives

走远了吗. 提交于 2019-12-25 02:39:39
问题 In nsis SelectFolderDialog for folder selection window. But i want to appear or user to select only drives.There should not be selection of folders inside a drive. So user should get drives like C: D: E: etc Is there any option to do it? 回答1: This only allows you to select paths shorter than 4 characters inside My Computer, if you want to hide the folders in the dialog you need to write a plugin and implement IFolderFilter (WinXP+ only) #BIF_RETURNONLYFSDIRS 0x00000001 #BIF_NEWDIALOGSTYLE