Search found 5888 matches

by davidc
Tue Jun 18, 2019 3:49 pm
Forum: Wish List and Feature Requests
Topic: Error object blocks with open brace on newline
Replies: 6
Views: 44

Re: Error object blocks with open brace on newline

I understand and thank you for the suggestion. I wonder if this would make more sense as a PSScriptAnalyzer rule.
by davidc
Tue Jun 18, 2019 2:51 pm
Forum: Wish List and Feature Requests
Topic: Error object blocks with open brace on newline
Replies: 6
Views: 44

Re: Error object blocks with open brace on newline

My apologies, I misunderstood the request. I thought you were reporting a formatting issue where PowerShell Studio was placing the opening bracket on a new line. As for errors, it is PowerShell engine that reports the syntax errors. Even though your intention was for the script block to be part of t...
by davidc
Tue Jun 18, 2019 2:16 pm
Forum: Wish List and Feature Requests
Topic: Error object blocks with open brace on newline
Replies: 6
Views: 44

Re: Error object blocks with open brace on newline

Please try the latest service build of PowerShell Studio (v165). It should resolve this issue.
by davidc
Tue Jun 18, 2019 10:22 am
Forum: PowerShell GUIs
Topic: Windows Form Hanging Citrix Cloud
Replies: 2
Views: 58

Re: Windows Form Hanging Citrix Cloud

Some cmdlets can hang when the form is displayed because the GUI is holding up the pipeline. This all depends on the internal implementation of the cmdlets. You can try to run these commands before the form is displayed or use a job to run the commands via the Job Tracker control set. https://info.s...
by davidc
Tue Jun 18, 2019 10:18 am
Forum: PowerShell GUIs
Topic: Windows Form Hanging Citrix Cloud
Replies: 2
Views: 58

Re: Windows Form Hanging Citrix Cloud

[TOPIC MOVED TO POWERSHELL GUIS FORUM BY MODERATOR]
by davidc
Mon Jun 17, 2019 12:57 pm
Forum: Wish List and Feature Requests
Topic: Repackage EXE into an Windows Installer files (MSI)
Replies: 4
Views: 129

Re: Repackage EXE into an Windows Installer files (MSI)

PowerShell Studio's MSI installer is designed for scripts and project created in PowerShell Studio, and not stand-alone installers for existing executables. Although you do have the option to add secondary files to your MSI installers.
by davidc
Mon Jun 17, 2019 8:40 am
Forum: PowerShell Studio
Topic: What is default script path for PSS scripts?
Replies: 4
Views: 315

Re: What is default script path for PSS scripts?

Actually $PSScriptRoot should work. A few builds ago, we added $PSScriptRoot support to our package exectuables. The .\ImportPs1\AutoWinUpdates.ps1 path will only work if the current directory the same as the script's directory. This might not always be the case depending on how the script as ran. B...
by davidc
Mon Jun 17, 2019 7:48 am
Forum: PowerShell Studio
Topic: What is default script path for PSS scripts?
Replies: 4
Views: 315

Re: What is default script path for PSS scripts?

If you want to get the folder of the project script, I recommend using the Get-ScriptDirectory function (snippet shortcut: getscriptdirectory). This function will work in package executable or normal script host.
by davidc
Mon Jun 17, 2019 7:45 am
Forum: Wish List and Feature Requests
Topic: Repackage EXE into an Windows Installer files (MSI)
Replies: 4
Views: 129

Re: Repackage EXE into an Windows Installer files (MSI)

If you package your script into an executable, then yes, you can create an MSI installer for it. For more details, please refer to the following article: https://info.sapien.com/index.php/packaging-deployment/from-script-to-server-deploying-solutions-with-primalscript We don't offer anything that va...
by davidc
Mon Jun 17, 2019 7:34 am
Forum: PowerShell GUIs
Topic: File location for icons or buttonbusy animation
Replies: 1
Views: 132

Re: File location for icons or buttonbusy animation

[TOPIC MOVED TO POWERSHELL GUIS FORUM BY MODERATOR]

These images are embedded into the psf file and the generated ps1 script. Refer to the following article for more details on the ImageList control:

https://info.sapien.com/index.php/guis/ ... st-control