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.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 6 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
oze41998
Posts: 1
Last visit: Wed Oct 03, 2018 6:01 pm

Change Permissions of .exe after packaging?

Post by oze41998 »

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: 8488
Last visit: Tue Apr 16, 2024 8:42 am
Answers: 20
Been upvoted: 37 times

Re: Change Permissions of .exe after packaging?

Post by Alexander Riedel »

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.
This topic is 6 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked