Use script packager field values as variables

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
arbitmcdonald
Posts: 7
Joined: Fri Jan 25, 2019 4:43 pm

Use script packager field values as variables

Post by arbitmcdonald » Mon Sep 16, 2019 4:14 am

Product: PowerShell Studio 2019 (64 Bit)
Build: v5.6.164
OS: Windows 10 Pro (64 Bit)
Build: v10.0.17763.0

Can we access values in the Script Packager form fields for use in other fields? For example, it would be fantasticly useful if we could insert the version number from the 'File version' field into the 'Output file' field or the 'Output folder' field, as to avoid overwriting previous versions (as is the current behaviour).

I have checked the 'auto-increment file version' checkbox, so it would be nice if I could dynamically update the Output folder to something like:
-My project\
--Output\
----1.2.1.1\ <--- Set dynamically
--------File.exe
----1.3.1.1\ <--- Set dynamically
--------File.exe
----1.4.1.1\ <--- Set dynamically
--------File.exe...

Image

This may already be achievable by way of post-build commands, if so that's what I need to look in to. Perhaps a PS script that just creates a folder with the correct version number and moves the EXE from the output folder? I did find this topic which I believe is relevant: viewtopic.php?t=13573

User avatar
brittneyr
Site Admin
Posts: 187
Joined: Thu Jun 01, 2017 7:20 am

Re: Use script packager field values as variables

Post by brittneyr » Wed Sep 18, 2019 1:23 pm

That would be quite useful. Please submit a feature request here:
https://www.sapien.com/requests
Brittney Ryn
SAPIEN Technologies, Inc.