Copy2Release user tool

Started by Pat Dooley, November 13, 2009, 11:47:19 AM

Previous topic - Next topic

Pat Dooley

Here is a small offering I call Copy2Release to add to FF3 User Tools. It should ease the task of copying required run time files such as SQLite3.Dll and SQLitening.Dll to your release folder.

There are two listboxes. The listbox on the left displays a list of Group names. The listbox on the right holds a list of files associated with the selected group.

So, you could add a group called SQL_LOCAL. Then Add the files SQLite3.Dll and SQLitening.Dll to operate your program in local mode.
Add another group called perhaps SQL_MU and add all the files you would need to run your program in multiuser mode.

The Run button would then copy the files listed in the Files to Copy listbox to your release folder.

It works off of an ini file stored in the same folder as the exe. So, when it first starts, it looks for an ini file with the same basename. If it doesn't find it, it is created. You will then need to add at least one group with at least one file.

Copy2Release is intended to work as a FF3 user tool with the <R> parameter. However, at the last minute I added the Browse for Folder FF function so it could work standalone.

The zip file contains all the FF3 folder structure, so just unzip in your projects folder and preserve relative paths. The only actual files are the Copy2Release.ffp and Form1.frm

I had trouble getting it to actually come up in FF3 as a user tool. But after swapping emails with Paul (he said it should work) it started working. Maybe it just needed a letter from home.

I suggest at first selecting the Action of Invoke only when selected by user. Later on with other projects try the pre and post compile. And don't forget the <R> parameter.

Comments welcome.

Pat

Haakon Birkeland

Hmm...

Now you got me dreaming of a tool parsing through the source-files and automatically copying the referenced files from a known source. 8oÞ
Haakon 8o)

Brian Chirgwin

Quote from: Pat Dooley on November 13, 2009, 11:47:19 AM

I suggest at first selecting the Action of Invoke only when selected by user. Later on with other projects try the pre and post compile. And don't forget the <R> parameter.


Add quotes around the <R> (Parameter= "<R>") for parameter if you have spaces in your path.

This will force a path like "C:\Documents and Settings\..." to be the full path and not just up to the first space (C:\documents).


Pat Dooley

Yes, indeed!  A world of difference. Did not test on folder with spaces, so did not catch problem.  Adding quotes around the parameter in the Edit User Tools fixes error.  I suppose this would apply to any parameter that may contain spaces.  Now with 3.03 update this could include the <P> (Project Name) parameter.

Thanks Brian,
Pat

Rolf Brandt

Nice little tool, Pat. Very helpful. I added it to the User Tools menu.

Rolf
Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)