PDA

View Full Version : Variable Setup File Name


OneSharpeGuy
09-24-2004, 09:58 AM
I want to be able to make the setupfile automatically reflect the Visual Basic ProjectFile Name and Version Number (like MyProject_1_2_34) is this possible to do with variables at buildtime?

Lorne
09-24-2004, 10:16 AM
Sure, just define some constants for it (Publish > Settings, click on Constants tab) and use those constants where you'd put the filename.

e.g. #PROJECT_NAME##BUILD_NUMBER#.exe

If you're performing an unattended build, you can use an ini file to set the values for those constants. Otherwise, just go to Publish > Settings and adjust the values whenever they change.

OneSharpeGuy
09-24-2004, 01:27 PM
I'm a newby Lorne. Tell me more. Give me a brief example of how you would do this with an INI file.

Lorne
09-24-2004, 03:35 PM
Just look up "unattended build options" in the SF7 help file. Either use the index to find "unattended build objects," or use the Table of Contents to navigate to:

Program Reference > Misc > Command Line Options

...and click on the Unattended Build Options link.

Ted Sullivan
09-24-2004, 04:13 PM
Or, just click here:
http://www.indigorose.com/webhelp/suf70/Program_Reference/Command_Line_Options.htm

It's the same "Command Line Options" and "Unattended Build Options" topics in WebHelp form.