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 LICENSE NUMBERS, ACTIVATION 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.
This topic is 4 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
arbitmcdonald
Posts: 7
Last visit: Tue Oct 12, 2021 6:45 am

Use script packager field values as variables

Post by arbitmcdonald »

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: 1654
Last visit: Wed Mar 27, 2024 1:54 pm
Answers: 39
Been upvoted: 30 times

Re: Use script packager field values as variables

Post by brittneyr »

That would be quite useful. Please submit a feature request here:
https://www.sapien.com/requests
Brittney
SAPIEN Technologies, Inc.
This topic is 4 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.