PDA

View Full Version : Feature suggestion



NewsArchive
04-25-2011, 09:15 AM
Hello Friedrich,

There is an option in SB to add multiple directories and subdirectories
along with all files associated with those directories. That works great.

Under files and folders, installed files, you can go in and choose whether a
file is installed based upon whether the file to be installed is newer than
the current file in the %INSTALLDIR%.

I would like to be able to set that parameter for all of the files when I do
the "recursively add directories and subdirectories."

I hope you know what I'm talking about here. My descriptions may be a
little off. I'm at my day job and do not have SB in front of me.

Thanks!!!

Don

NewsArchive
04-25-2011, 09:16 AM
Hi Don,

> There is an option in SB to add multiple directories and subdirectories
> along with all files associated with those directories. That works great.
>
> Under files and folders, installed files, you can go in and choose whether
> a file is installed based upon whether the file to be installed is newer
> than the current file in the %INSTALLDIR%.
>
> I would like to be able to set that parameter for all of the files when I
> do the "recursively add directories and subdirectories."
>
> I hope you know what I'm talking about here. My descriptions may be a
> little off. I'm at my day job and do not have SB in front of me.

No problem. You can do this with compiler directives (as an example, see
the attached screenshot). This gives you full control over the process.
You can set the compile variable value to whatever you want from a SKU,
Release or command line compile or even the script.

Does this help?

Friedrich

NewsArchive
04-26-2011, 02:18 AM
Sounds like a plan...thanks Friedrich!

Don

NewsArchive
04-26-2011, 02:19 AM
I'm a little lost...

So I'm guessing I will have to create the compiler variable
"REPLACEMENT_OPTION?"

What is it's value?

Thanks!

Don

NewsArchive
04-26-2011, 02:20 AM
Hi Don,

> I'm a little lost...
>
> So I'm guessing I will have to create the compiler variable
> "REPLACEMENT_OPTION?"
>
> What is it's value?

Whatever value you want ;-)

I have developed and attached an example project for you. It makes use of
the SKU feature to set the value of the compiler variable and prompts for it
when you compile. Then, based on your selection, it sets the replacement
option for you to "Version/Date/Time", "Always", or "Never".

See attached screenshots and "Don.sb7".

Does this help?

Friedrich