Closed derhoeppi closed 6 years ago
Sorry for taking so long, I had already written an answer last week, but must have forgotten to actually click the comment button...
Doesn't it depend on the situation if you want to install KSE for all users or only for the current one? Let's say I share a laptop with my wife and install KSE on this machine. My wife certainly does not want KSE to suddenly show up in her start menu.
So, it has to be presented by the installer as a choice to the user: "Do you want to install KSE only for you or for all users?"
The default choice should be "install only for current user" - for compatibility reasons. This would again be a problem for your deployment tool, right?
The software deployment tool acts as system account, so i want to deploy all installations for all users. Is it possible to create a parameter that i can choose for deployment (all user / current user) ?
I think that should be possible. I'll see what I can do.
Okay, I have added this feature, but I would appreciate if you could help me test it.
Yes i could test it. Is there a compiled version or should i compile my own version for testing?
Here is a build (it's zipped because I cannot upload .exe here):
--removed--
The new command line parameter is: /AllUsers
I've tested the installer. As per user installation the installer and uninstaller works as aspected. When i tried the same with the parameter /AllUsers then the installer works great but the uninstaller leave the StartMenue items instead of removing them.
This should be fixed now (at least it is on my Win10 machine). The start menu link to the uninstaller and the UninstallString registry key are now both created with the same parameter that was used for installation (/AllUsers
or /CurrentUser
).
I tested again with the fixed setup. Now it works as expected. The installation and uninstallation works great. Thank you.
Short description
The Installer will run as current user.
Steps to reproduce
Expected result
If i use the setup.exe with a software deployment tool then the tool act as system or maybe a service account to install / uninstall software. Therefore i need the installer to run in a all users mode to create startmenue / desktop items.
Actual result
The startmenue shortcuts will only created in the user context
Environment
The solution is to set the SetShellVarContext to all in the nsis script. The default value is current. This setting controls the variable $SMPROGRAMS. It' noticed in chapter 4.3.2 "constants" and 4.9.7.6 of the nsis scripting reference.