Support Forums

Search found 4528 matches

by davidc
Wed Mar 29, 2017 9:34 am
Forum: PowerShell Studio
Topic: Form Project build file order
Replies: 3
Views: 15

Re: Form Project build file order

I'm glad it worked and the file looks good to me.
by davidc
Wed Mar 29, 2017 9:33 am
Forum: PowerShell Studio
Topic: PowerShell v5 Class Inheritance Issue
Replies: 4
Views: 30

Re: PowerShell v5 Class Inheritance Issue

It could be that the assembly requires a missing dependency. Validate that Add-Type is indeed loading the assembly in the script by using the PassThru parameter. It should list all the exported types.

If this is a module, you might want to make sure you are loading the module first.
by davidc
Wed Mar 29, 2017 9:22 am
Forum: PowerShell Studio
Topic: ProgressBarOverlay causes Unhandled Exception
Replies: 4
Views: 36

Re: ProgressBarOverlay causes Unhandled Exception

You are getting this error because you are using the exit command in a GUI environment. Instead use the form's Close event. if ($Error.count -gt 0) { $formBulkUserDisabler15.Close() return } Related article: http://info.sapien.com/index.php/guis/gui-scripting/closing-the-form-what-yo...
by davidc
Wed Mar 29, 2017 8:58 am
Forum: Wish List and Feature Requests
Topic: Can you please make @'here strings'@ collapsible
Replies: 1
Views: 2935

Re: Can you please make @'here strings'@ collapsible

[TOPIC MOVED TO WISH LIST AND FEATURE REQUESTS FORUM]

In our latest service release, we including code collapsing for multi-line strings.
by davidc
Wed Mar 29, 2017 8:45 am
Forum: PowerShell Studio
Topic: PowerShell v5 Class Inheritance Issue
Replies: 4
Views: 30

Re: PowerShell v5 Class Inheritance Issue

In the screen shot you are using Run Selection . Please make sure you include the Add-Type line when running a selection, otherwise the assembly will not be loaded. PowerShell Studio always resets the runspace when you run the script in the internal host. Alternatively, you use the Run in Console co...
by davidc
Wed Mar 29, 2017 8:40 am
Forum: PowerShell Studio
Topic: Form Project build file order
Replies: 3
Views: 15

Re: Form Project build file order

There is no way to affect the order in the UI. The only way to alter the order would be to edit the project file itself, although we don't normally recommend people edit the file. You can change the order by shifting the order the <File> elements within the <Files> group in the psproj file.
by davidc
Mon Mar 27, 2017 8:31 am
Forum: PowerShell Studio
Topic: Packaging winform scipt
Replies: 1
Views: 86

Re: Packaging winform scipt

[TOPIC MOVED TO THE POWERSHELL STUDIO FORUM] You can create a MSI using the deploy tab: Deploy Tab.png For more details, please refer to the following article (which also applies to PowerShell Studio): https://www.sapien.com/blog/2014/04/14/from-script-to-server-deploying-solutions-with-primalscript...
by davidc
Mon Mar 20, 2017 9:06 am
Forum: Windows PowerShell
Topic: Projects and Git (what's in your .gitignore file)
Replies: 4
Views: 165

Re: Projects and Git (what's in your .gitignore file)

I also recommend adding the following:

    *.RestorePoint.*
    *.Run.ps1
    *.Package.ps1
by davidc
Fri Mar 17, 2017 9:13 am
Forum: PowerShell Studio
Topic: Not all cmdlets in intellisense?
Replies: 7
Views: 250

Re: Not all cmdlets in intellisense?

Get-AdClaimType is part of the ActiveDirectory module and not all Windows OSes have this module installed.

Please check that the module is installed on your system.

If it is, please verify that it appears in the list of module within PowerShell Studio's Object Browser panel.
by davidc
Fri Mar 17, 2017 7:53 am
Forum: PowerShell Studio
Topic: Text replacement with regular expressions
Replies: 2
Views: 78

Re: Text replacement with regular expressions

Try using "$1" instead of "\1" to perform the replacement.

Go to advanced search