Support Forums

Search found 4573 matches

by davidc
Fri Apr 07, 2017 11:26 am
Forum: PowerShell Studio
Topic: Unhandled exception on "Find All References"
Replies: 4
Views: 242

Re: Unhandled exception on "Find All References"

I believe we resolved the issue on our end. Does the trouble script contain any of the following cmdlets?

Clear-Variable
Set-Variable
Get-Variable
Import-LocalizedData
Tee-Object

If so, that is the likely cause of the crash and it will be resolved in the next service build.
by davidc
Fri Apr 07, 2017 8:22 am
Forum: PowerShell Studio
Topic: Unable to use nested modules in Module Project
Replies: 2
Views: 77

Re: Unable to use nested modules in Module Project

At the moment, the Module Project does not allow multiple instances of psm1, but we will see what we can do about allowing psm1 in sub-directories.

In the meantime, you can still dot source the psm1 files from your project or include them in the manifest.
by davidc
Thu Apr 06, 2017 9:31 am
Forum: PowerShell Studio
Topic: Make EXE out of 7 files that are being dot-sourced into one.
Replies: 5
Views: 168

Re: Make EXE out of 7 files that are being dot-sourced into one.

When you set Build = Include , PowerShell Studio will merge the files into a single script. The reference (Invoke-filename) functions will be defined within the generated script so it will not need to load the external file at run-time. But every time you call the function, it will invoke the code a...
by davidc
Wed Apr 05, 2017 3:38 pm
Forum: PowerShell GUIs
Topic: Variable not displaying correctly in a text Box
Replies: 2
Views: 68

Re: Variable not displaying correctly in a text Box

[TOPIC MOVED TO POWERSHELL GUIS FORUM BY MODERATOR]

Try piping the output to Out-String:

Code: Select all

$textBox.Text = Get-ChildItem 'C:|FilePath' | sort LastWriteTime | select -last 1 | Select-Object LastWriteTime | ft -hidetableheaders | Out-String
by davidc
Wed Apr 05, 2017 8:29 am
Forum: PowerShell Studio
Topic: Unhandled exception on "Find All References"
Replies: 4
Views: 242

Re: Unhandled exception on "Find All References"

When you are invoking Find All References, what are you referencing? A variable or a function?
by davidc
Wed Apr 05, 2017 8:22 am
Forum: PowerShell Studio
Topic: Unhandled exception on "Find All References"
Replies: 4
Views: 242

Re: Unhandled exception on "Find All References"

Yes, we would be happy to help. You can upload the offending file our Supports Upload page:

https://www.sapien.com/support/upload

Once we have the file, we will try to reproduce the issue and hopefully find the cause.
by davidc
Wed Apr 05, 2017 8:17 am
Forum: Windows PowerShell
Topic: ExpandProperty dosent work
Replies: 4
Views: 224

Re: ExpandProperty dosent work

[TOPIC MOVED TO THE POWERSHELL FORUM BY MODERATOR]
by davidc
Wed Apr 05, 2017 8:15 am
Forum: PowerShell Studio
Topic: Make EXE out of 7 files that are being dot-sourced into one.
Replies: 5
Views: 168

Re: Make EXE out of 7 files that are being dot-sourced into one.

You don't need to dot source anymore, but it really depends on that the ps1 files do. Do they contain functions declarations or do they executing code? If they only contain function definitions, then use Shared = True . If they execute code, then set Shared = False and call the file's reference func...
by davidc
Tue Apr 04, 2017 11:28 am
Forum: Customer Service
Topic: Powershell Studio 2017 deactivated after update
Replies: 1
Views: 89

Re: Powershell Studio 2017 deactivated after update

Hello,

Unfortunately, I don't see a subscription associated with your account, so I’m unable to determine the issue.
Please email our sales department (include the subscription number and the exact error message) at sales@sapien.com and they will be able to assist you further.
by davidc
Tue Apr 04, 2017 8:59 am
Forum: PowerShell Studio
Topic: PS1 to MSI
Replies: 2
Views: 125

Re: PS1 to MSI

The dashes in the Product Name is why it is failing validation and disabling the OK button. If you remove the dashes, you should be OK.

Go to advanced search