PDA

View Full Version : How to get the project name in code



NewsArchive
10-02-2007, 03:36 AM
My project name is SetupApp123.sb6 and I want to use that to copy the sb6
file to a release folder after compilation.

The [PRODUCTNAME] = Appname so I can use that but the version is 1.2.3
whereas the final part of the sb6 project file is 123.

Is there an easy way to strip out the dots or is there a compiler variable
that equates to the project name already.

The other alternative is to set it manually each time in the script but I
would prefer this to be as automated and generic as possible.

TIA

John Fligg

NewsArchive
10-02-2007, 03:37 AM
John,

My first thought was "of course" and then my second thought was "not yet".

I have added a new [SB_PROJECT_SCRIPT] compiler variable to handle this. It
will be available in the next service build for SB66.

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6.6
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
10-02-2007, 03:37 AM
That's great Friedrich - thanks. No rush as I will only implement it next
time I do any upgrades.

Much appreciated.

John