compiling error code 2 ?

Ask your PowerShell-related questions, including questions on cmdlet development!
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 2 months and 2 weeks 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
Domtar
Posts: 136
Last visit: Tue Aug 27, 2024 4:34 pm
Has voted: 3 times

compiling error code 2 ?

Post by Domtar »

hi all,

any idea what error code 2 means when compiling a script using Powershell Studio, latest version? the error doesn't say more, so I'm at a loss...

Error: Writing settings to bin\x64\Packager.exe failed, error code 2

thanks!
User avatar
Alexander Riedel
Posts: 8583
Last visit: Fri Nov 08, 2024 3:54 pm
Answers: 23
Been upvoted: 42 times

Re: compiling error code 2 ?

Post by Alexander Riedel »

https://learn.microsoft.com/en-us/windo ... es--0-499-
Error code 2 means file not found. When packaging, that usually means that your A/V application, whichever one you use, snatched the new created executable file and deleted or quarantined it before the packager can even finish it.
Alexander Riedel
SAPIEN Technologies, Inc.
This topic is 2 months and 2 weeks 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