View Full Version : BACKUP Files Suggestion
NewsArchive
09-23-2013, 12:59 AM
Hi Friedrich
A suggestion if I may.
When a SB installer makes copies of files to the BACKUP folder, it might be handy to
have it append the .0001 .0002 file extensions to the whole existing filename.ext
instead of replacing the .ext with the incrementin numeric.
That way there would be no uncertainty about which file is which. See attached
screenshot.
This change may cause some problems when restoring older versions, but that could
probably be handled OK.
John
NewsArchive
09-23-2013, 01:00 AM
Good idea
Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve
I'll search help files & Google for you.
NewsArchive
09-23-2013, 01:01 AM
John,
> A suggestion if I may.
I like the thought but some AV's dislike double extensions, ie: more
than one period.
Maybe something like...
ClaTPS-DLL.0001
ClaTPS-LIB.0001
--
Lee White
RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com
Creative Reporting: http://www.CreativeReporting.com
Product Release & Update Notices
http://twitter.com/DeveloperPLUS
Windows 8 brings us "The Oval, Bumper Car, Roller Coaster of Wait!"
NewsArchive
09-23-2013, 01:01 AM
Lee
Yeah, that would work too. I had not heard of that problem with some AVs. I guess they
also hate the .0001 extensions also.
John
NewsArchive
09-23-2013, 01:01 AM
John,
> also hate the .0001 extensions also.
I've never run into that but I have had problems in the past when I
programmatically stuffed a second extension onto a filename.
--
Lee White
RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com
Creative Reporting: http://www.CreativeReporting.com
Product Release & Update Notices
http://twitter.com/DeveloperPLUS
Windows 8 brings us "The Oval, Bumper Car, Roller Coaster of Wait!"
NewsArchive
09-23-2013, 01:02 AM
Too kinky
Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve
I'll search help files & Google for you.
NewsArchive
09-23-2013, 01:02 AM
Jeff,
> Too kinky
Yes, that may well have been the response from AVG!
Lee White
NewsArchive
09-23-2013, 01:03 AM
Hi Lee,
> I like the thought but some AV's dislike double extensions, ie: more
> than one period.
Yes, double extensions are potential candidates for trouble (AV's are real
troublemakers).
> Maybe something like...
>
> ClaTPS-DLL.0001
> ClaTPS-LIB.0001
I agree 100%. That should work fine. I think we can add this as an option.
So developers can continue with the "old" backup method or choose the "new"
one.
Friedrich
NewsArchive
09-23-2013, 01:03 AM
Hi John,
> A suggestion if I may.
Very good idea. I'll see what I can do.
Thank you for your suggestion.
Friedrich
NewsArchive
09-23-2013, 07:11 AM
Hi John,
I have added a new 'PRESERVE_BACKUPEXT' #pragma. In the upcoming
SetupBuilder 8.1, you can set this #pragma to let the installer create
backup files in form of 'ClaTPS-DLL.0001'. See attached screenshot.
The new (optional) backup method is fully backward compatible to previous
SetupBuilder versions.
Thank you again for your suggestion.
Friedrich
NewsArchive
09-23-2013, 07:11 AM
Correction. The new option is handled via the "Set Installer Flag..."
script function in SetupBuilder 8.1. The Set Installer Flag lets you set
specific internal installer flags. This gives more flexibility in this
case.
It can be programmatically enabled/disabled from the script now. For
example, to enable it:
Set Installer Flag $SB_PRESERVE_BACKUPFILEEXT$ to "1"
Friedrich
NewsArchive
09-23-2013, 07:12 AM
Hi Friedrich
Great that you can do this, And all before your next Birthday<g>.
Have a great day tomorrow.
John
NewsArchive
09-23-2013, 10:02 AM
> Great that you can do this, And all before your next Birthday<g>.
> Have a great day tomorrow.
<G> Thank you, John! :-)
Friedrich
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.