How can i run the App package created with NSIS without admin rights - package

I've created one app package using NSIS which requires admin rights to run. I want the package to be installed without admin rights. I've tried below options to make it work but none of them worked.
Added !define MUTIUSER_EXECUTIONLEVEL user in nsisconf.nsh
file
Added RequestExecutionLevel user in
nsisconf.nsh file
Added !define MUTIUSER_EXECUTIONLEVEL user in UserVars.nsi
file under ProgramFiles\NSIS\Examples
Added RequestExecutionLevel user in
UserVars.nsi file under ProgramFiles\NSIS\Examples
What else I can do to allow the package to run without admin rights?Please suggest.
Thanks!

Add !define MULTIUSER_EXECUTIONLEVEL user at the top of your .NSI file and RequestExecutionLevel user at the bottom. (You only need one of them but without example code I can't tell which one you need.)
nsisconf.nsh is not the right place for this because it applies to all installers and including this file is optional.

Related

GPO is applied but not showing

i want every user in my domain to have a specific link in their desktop.
what i did to achieve it:
created a GPO and linked it to a OU, the GPO was edited like that:
user configuration --> preferences --> windows settings --> shortcuts --> new shortcut (the configuration of the shortcut is in the images)
General
Common
inside the item-level targeting i added a security group.
that security group is in the OU that the GPO is linked to and there is a user that he is inside that security group and he is also inside of the OU that the gpo is linked to.
in summary:
user --> security group --> OU
GPO --> OU
At the end i run "gpupdate" on the users computer (the user is logged on to the computer) and the link isn't showing in the desktop but when i run "gpresult /r" i see that the gpo is applied.
I may be wrong but looking at your picture you are setting up the shortcut wrong.
You are using the replace action, this is wrong it should be update.
The rest looks ok, the GPO will run but as it is incorrect it will never create it.
I have set up shortcuts before and this was how i did it.
https://blogs.technet.microsoft.com/askds/2014/02/17/adding-shortcuts-on-desktop-using-group-policy-preferences-in-windows-8-and-windows-8-1/

Resetting appengine-maven-plugin login credentials?

I have changed the account I want to use to do deployments.
How do you change the login credentials once they are set?
This is hidden in the documentation page for the plugin:
To solve this issue, change directories to ~, locate a file named
.appcfg_oauth2_tokens_java, and rename it. Then try updating again.

find the user who is trying to create a directory

Hello I am using cakePHP's bake console to create a cakePHP application. But when I run the scripts, it says that the present user does not have permission to create a folder in the directory. So to find out the user who is being denied, I echoed whoami from the PHP script, and got the user. Now I made that user the owner of the directory. And as a check I even created folders on that directory from the terminal. But when the script runs via PHP, it spits the error on the terminal saying the user does not have permission.
What could the problem be?
On Ubuntu, ensure that the owner and group of the folders are both www-data. During the development phase, I also tend to make the permissions 777 or 755.

Show UAC prompt when launching an app

I have an app which needs administrator privileges to do some things. I'd like to just show the UAC prompt when it starts, and then be elevated. I'm not sure how to do this, but I'm hearing about things like manifests and whatnot but not seeing a plain answer anywhere.
You need an app manifest that demands elevated privileges. Here's a quote from a blog that answers this:
First, you can create a manifest file by adding an “Application
Manifest File” Item to your project (default name: app.manifest), then
you can set it through the Application Tab in the Project Properties.
If you want to change the Windows User Account Control level in your
manifest file, all you need is to set the value of the level attribute
of the requestedExecutionLevel node with one of the following:
asInvoker (default): the application will run using the current Windows user provileges
requireAdministrator: the application requires an Administrator user
highestAvailable: highest privileges for the current user will be used
http://dariosantarelli.wordpress.com/2007/11/21/vs2008-embedding-uac-manifest-options/

trac "OperationalError: attempt to write a readonly database" problem with visualsvn

I have installed the latest VisualSVN (2.0.5) and its trac-package on WindowsXP, but ran into a problem. The trac system works, except the "Timeline" tab. When I clicked on it, I saw
Oops…
Trac detected an internal error:
OperationalError: attempt to write a readonly database
Does anybody have any idea, why it does not works? Everything was installed and configured using its manual.
change the owner of the folder where the TRAC enviroment lives
this is check the user that runs the VisualSVN service and give access to this user to the folder where trac runs
this fix me issue
As user163175 said you have to change the owner (or give permission to the web server user).
To do this on Windows (Server Standard) you need to:
Go to your trac directory (where all the your trac projects live, the one you set as PythonOption TracEnvParentDir) in explorer
Right click and select Properties
Click on the Edit... button
Click Add... button
Type "NETWORK SERVICE" in to the Enter the object names to select input
Click the Check Names button.
Click on OK
Click on the new NETWORK SERVICE user/group
Check off "Full Control"
Click Apply
That should do it (at least that worked for me).

Resources