Search found 5838 matches

by davidc
Thu Oct 10, 2013 8:45 am
Forum: PowerShell Studio
Topic: Executable packages doesn't use COM?
Replies: 7
Views: 2892

Re: Executable packages doesn't use COM?

It is hard to see what is happening without the whole script. Can you post it here or email it to support@sapien.com?

David
by davidc
Wed Oct 09, 2013 9:31 am
Forum: PowerShell Studio
Topic: Can You View Hidden Characters in PowerShell Studio?
Replies: 1
Views: 1023

Re: Can You View Hidden Characters in PowerShell Studio?

PowerShell Studio does not support this, but I will add the request to the feature wish list.

David
by davidc
Wed Oct 09, 2013 9:26 am
Forum: Wish List and Feature Requests
Topic: PowerShell Studio Wishlist
Replies: 8
Views: 8354

Re: PowerShell Studio Wishlist

Thank you for the suggestion.

Note: You can update the template file located in the following folder:

C:\ProgramData\SAPIEN\PowerShell Studio 2012\Templates\FileTypes\

David
by davidc
Wed Oct 09, 2013 9:23 am
Forum: PowerShell GUIs
Topic: Getting the integer for your checkedlistbox
Replies: 4
Views: 3497

Re: Getting the integer for your checkedlistbox

FYI I moved this post to the GUIs forum. Your script incorrectly assumes the CheckItems positional index is the same as the index of the item in the CheckedListBox. I recommend using the CheckedIndices property to access the items instead. foreach($index in $checkedlistbox1.CheckedIndices) { $item =...
by davidc
Wed Oct 09, 2013 9:14 am
Forum: PowerShell GUIs
Topic: Run Start-Job without a window
Replies: 5
Views: 1837

Re: Run Start-Job without a window

FYI, I moved this post to the PowerShell GUIs forum.

What are you using to create the GUI? PowerShell Studio has a Control Set that triggers a job from a button press without freezing the UI.

David
by davidc
Wed Oct 09, 2013 9:09 am
Forum: PowerShell Studio
Topic: [Project][Package]Refering to project files
Replies: 5
Views: 2866

Re: [Project][Package]Refering to project files

Here are a few options you could consider: - Creating a MSI Installer (See MSI Wizard ) - Have the exe access the script file from a network share. This way users will always have the latest script. - Pass the function declarations in a script block to the powershell.exe - Embed the script (Base64En...
by davidc
Wed Oct 09, 2013 8:59 am
Forum: PowerShell Studio
Topic: Executable packages doesn't use COM?
Replies: 7
Views: 2892

Re: Executable packages doesn't use COM?

Yes, PowerShell processes a script line by line. Therefore if a function has not been declared in the previous lines, PowerShell has no way of knowing that it is located further down the script. NOTE: STA (Single Threaded Apartment) affects COM objects but that shouldn’t be an issue other than the f...
by davidc
Tue Oct 08, 2013 1:51 pm
Forum: PowerShell Studio
Topic: Executable packages doesn't use COM?
Replies: 7
Views: 2892

Re: Executable packages doesn't use COM?

Do you have the correct bitness (32 or 64 bit) set on the packaged exe?

Please include the following information if this is not the case:

- OS
- PowerShell Version
- PowerShell Studio version
- Packager Settings

David
by davidc
Tue Oct 08, 2013 9:17 am
Forum: PowerShell Studio
Topic: [Project][Package]Refering to project files
Replies: 5
Views: 2866

Re: [Project][Package]Refering to project files

Yes, it will terminate once the script is complete. Though I'm confused as to what you are exactly doing. Why not just call the powershell.exe like you originally mentioned? $path = Get-ScriptDirectory $path += "\myFunctions.ps1" powershell.exe -File $path -NoExit Make sure myFunctions.ps1 is a stan...
by davidc
Mon Oct 07, 2013 1:31 pm
Forum: PrimalSQL
Topic: Prompt for value
Replies: 1
Views: 5438

Re: Prompt for value

This isn't supported but I will add a request to the feature wish list.

David