Search found 5725 matches

by davidc
Wed Mar 20, 2019 7:38 am
Forum: PowerShell Studio
Topic: Saving and sign script removes last charactor in script
Replies: 6
Views: 191

Re: Saving and sign script removes last charactor in script

We made some changes to hopefully work around the issue in case someone else uses Unix line endings.
by davidc
Tue Mar 19, 2019 1:18 pm
Forum: PowerShell GUIs
Topic: richtextbox and array data
Replies: 1
Views: 47

Re: richtextbox and array data

Whenever setting text in a RichTextBox or TextBox you must make sure you convert the objects to strings

Code: Select all

$textBox.Text = $results | Out-String

Note: The RichTextBox's Lines property expects an array of strings.
by davidc
Tue Mar 19, 2019 8:59 am
Forum: PowerShell Studio
Topic: Saving and sign script removes last charactor in script
Replies: 6
Views: 191

Re: Saving and sign script removes last charactor in script

I confirmed this also occurs if you use the Set-AuthenticodeSignature cmdlet.
by davidc
Tue Mar 19, 2019 8:06 am
Forum: PowerShell Studio
Topic: Registry Picker to export registry files
Replies: 1
Views: 116

Re: Registry Picker to export registry files

I'm sorry, but I'm not familiar with this example. Can you provide a link?

It looks like you have access to the registry items directly, so you should be able to use the Name property of the RegistryKey object:

Code: Select all

$_.Node.Tag.Name
by davidc
Tue Mar 19, 2019 7:54 am
Forum: PowerShell Studio
Topic: Encoding Problems since Update to v5.6.160
Replies: 8
Views: 198

Re: Encoding Problems since Update to v5.6.160

Hello, We will be happy to assist you. Please answer the following questions before we can investigate further: 1. If possible, please zip the project and upload it here: https://sapien.com/support/upload At the minimum, if you can upload the psbuild file for the project, that will help us try to re...
by davidc
Tue Mar 19, 2019 7:45 am
Forum: PowerShell Studio
Topic: Saving and sign script removes last charactor in script
Replies: 6
Views: 191

Re: Saving and sign script removes last charactor in script

If you are using Unix line endings, the signing process unfortunately chops the last line because it expects and uses Windows line ends.
I will ask the Dev team to look into it, but since the signing process is external, I'm not sure there much we can do.
by davidc
Tue Mar 19, 2019 7:21 am
Forum: PowerShell Studio
Topic: Saving and sign script removes last charactor in script
Replies: 6
Views: 191

Re: Saving and sign script removes last charactor in script

Is the file using Unix line ends?
by davidc
Tue Mar 19, 2019 7:18 am
Forum: PowerShell Studio
Topic: Git Merge now cant open file!
Replies: 3
Views: 171

Re: Git Merge now cant open file!

Sounds like Git broke the encoded block in the psf file when it merged the file. There might be a way to prevent merging of the psf file extension. I recommend investigating the .gitattributes file.
by davidc
Mon Mar 18, 2019 7:50 am
Forum: PowerShell Studio
Topic: Output issue
Replies: 6
Views: 299

Re: Output issue

We ran a few quick tests and we were able to get output from the Debug Console:
Debug Console Output.png
Debug Console Output.png (8.75 KiB) Viewed 205 times
Please make sure you are debugging and stopped at a breakpoint, otherwise the console will not respond.
by davidc
Mon Mar 18, 2019 7:27 am
Forum: Installation Issues
Topic: Global question
Replies: 3
Views: 159

Re: Global question

You can find our GUI scripting articles here:

https://info.sapien.com/index.php/guis