Page 1 of 1

Access Poweshell Studio Settings as an object

Posted: Wed Jan 25, 2017 5:29 pm
by owinsloe
According to viewtopic.php?t=7371 (DavidC) there are two means to access the productioversion programmatically; via [System.Windows.Forms.Application]::ProductVersion (when packaged) or via a script variable.

I use a script variable but when using forms this means I have three locations to change the variable and can often result in one being overlooked and therefore being incorrect.

In forms I set $script:Version, add the same value into the main title bar and of course set the file and production version under the Settings tab of Powershell Studio.

In command line packaged scripts I set $script:Version and the product and file version within settings.

It would be most desirable if I could set the product and file versions within settings and access this object property internally.....say $Settings.VersionInformation.ProductVersion

In addition it would be nice if I could access this property on the mainform title bar. The current soft standard I use for my title bars are as follows;

<comp icon> <product name> <product version> <copyright>
eg.
[? MyProduct v1.0.0.1 (c) My Company Name]

Re: Access Poweshell Studio Settings as an object

Posted: Mon Feb 06, 2017 8:17 am
by DevinL
Thank you for the suggestion, I'll put this on our wishlist and when we have more information we'll post it here.