Change Permissions of .exe after packaging?

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.
Locked
User avatar
oze41998
Posts: 1
Joined: Tue Mar 29, 2016 7:00 pm

Change Permissions of .exe after packaging?

Post by oze41998 » Fri May 19, 2017 1:56 pm

RunAs Different User causes an error (cannot find the file, even though it exists) - the fix has been to explicitly modify the ACL to include "Authenticated Users".

Is there a way to modify permissions of the package from within a manifest?

User avatar
Alexander Riedel
Posts: 6327
Joined: Tue May 29, 2007 4:43 pm

Re: Change Permissions of .exe after packaging?

Post by Alexander Riedel » Fri May 19, 2017 2:04 pm

This is usually not necessary. Most likely you package the exe in a user folder. run the exe and it changes its security context to run itself under the new context. If the file is in a user folder (of the original user) it is no longer accessible.
In most cases it is sufficient to place the packaged exe in a folder that is accessible to all users.
Alexander Riedel
SAPIEN Technologies, Inc.

Locked