PDA

View Full Version : I wish SB could....



NewsArchive
08-14-2011, 03:25 AM
After a successful compile of the setup, I would like to copy the
resultant setup file to a network drive or a stick or some other folder
for testing.

I wish SB had an option in the file menu to copy the setup file (after
all you know already exactly where it is) to a location of my choosing.

I would envision this to be much like the current "Copy compiler output
to file..."

Maybe a "Copy setup file to location...."?

This would save drilling down to find the output file and then doing
the copy. Maybe even save the last location used for this build?

Thanks, Bob Roos

NewsArchive
08-14-2011, 03:37 AM
> After a successful compile of the setup, I would like to copy the
> resultant setup file to a network drive or a stick or some other folder
> for testing.
>
> I wish SB had an option in the file menu to copy the setup file (after
> all you know already exactly where it is) to a location of my choosing.
>
> I would envision this to be much like the current "Copy compiler output
> to file..."
>
> Maybe a "Copy setup file to location...."?
>
> This would save drilling down to find the output file and then doing
> the copy. Maybe even save the last location used for this build?

Hi Bob,

Just add a #copy file directive to the project in the script editor and
check the box that says "Process After Script Compilation"

Does that help?

Charles



--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.clarionproseries.com - "Get ProPath, make your Clarion programs ready
for Windows 7 and Vista!"
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms - Now with PNG support!
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
08-14-2011, 03:38 AM
That would work if I were always going to the same place or if my stick
always got the same drive letter. But it doesn't always happen that
way. Now, if there were a dynamic destination variable......

Bob Roos

NewsArchive
08-14-2011, 03:38 AM
Bob,

> That would work if I were always going to the same place or if my stick
> always got the same drive letter. But it doesn't always happen that
> way. Now, if there were a dynamic destination variable......

What about #run and you pass the necessary information on the command
line to a small Clarion EXE which asks you where you want it copied?

--
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

Enhanced Reporting: http://www.cpcs-inc.com


Product Release & Update Notices
http://twitter.com/DeveloperPLUS

NewsArchive
08-14-2011, 03:39 AM
> What about #run

I thought that was a good suggestion... apparently not.

--
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

Enhanced Reporting: http://www.cpcs-inc.com


Product Release & Update Notices
http://twitter.com/DeveloperPLUS

NewsArchive
08-14-2011, 03:39 AM
Why do you say that? I am still digesting it. :)

Actually, I got distracted before I finished replying to the
suggestions. That is a great one. I can pass the location and name as
parameters.

Thanks, Bob Roos

NewsArchive
08-14-2011, 03:39 AM
Bob,

> That is a great one. I can pass the location and name as
> parameters.

And if you wanted to you could create the program with SB if you want
to expand your horizons!<g>

--
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

Enhanced Reporting: http://www.cpcs-inc.com


Product Release & Update Notices
http://twitter.com/DeveloperPLUS

NewsArchive
08-14-2011, 03:40 AM
??? I had not thought of SB as a program creator.

Do you mean some kind of a script?

Bob Roos

NewsArchive
08-14-2011, 03:40 AM
> ??? I had not thought of SB as a program creator.
>
> Do you mean some kind of a script?

Hi Bob,

Sure - use SB to create a utility EXE.

Just use the SB script editor functions to provide a dialog where you
select your destination folder. Then you could copy the file (which could
be also selected, or passed on the command line) and exit.

Then you can call that EXE at the end of your other script compile with a
#run directive.

Does that help?

Charles



--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.clarionproseries.com - "Get ProPath, make your Clarion programs ready
for Windows 7 and Vista!"
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms - Now with PNG support!
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
08-14-2011, 03:42 AM
such as?

Jane Fleming

> way. Now, if there were a dynamic destination variable......
>
> Bob Roos
>

NewsArchive
08-14-2011, 03:42 AM
#copytoask

:)

Bob Roos

NewsArchive
08-14-2011, 03:43 AM
Bob,

> That would work if I were always going to the same place or if my stick
> always got the same drive letter. But it doesn't always happen that
> way. Now, if there were a dynamic destination variable......


Very easy to with the SetupBuilder SKU feature.

See attached screenshots. Just create a new [COPYTO] SKU variable. Then
add a "#copy file" compiler directive and the compiler will ask you for the
destination folder.

And of course, you can even do it without the SKU feature. Just pass the
value of the [COPYTO] compiler variable via the command line and you have a
perfectly dynamic solution.

Friedrich

NewsArchive
08-14-2011, 03:44 AM
Hi Bob,

> I would envision this to be much like the current "Copy compiler output
> to file..."

You can do that with #copy, but you might also want to consider automating
this with Build Automator:)

Best regards,

--
Arnór Baldvinsson - Icetips Alta LLC
Port Angeles, Washington
www.icetips.com - www.buildautomator.com - www.altawebworks.com
Icetips product subscriptions at http://www.icetips.com/subscribe.php

NewsArchive
08-14-2011, 03:45 AM
Will BuildAutomator let me select the output spot? The stick does not
always get the same drive letter. If I have other devices plugged in
the usual letter is not available.

Thanks I am going to have to learn how to use that.

Bob

NewsArchive
08-15-2011, 03:53 AM
I did it! That worked very nicely. Thank you.

I did note one tiny little drawback. That is that I have to perform
the first two steps for each project I build unless there is a way to
save the COPYTO definition as a permanent and insert the script line.

That is definitely faster and easier to do that than drill down to find
the source file, but not as easy as it would be if there were a "File,
Copy Setup EXE to ..." menu item in SB.

Thanks for the help. I learned some new things about SB.

Bob Roos

NewsArchive
08-15-2011, 03:54 AM
Hi Bob,

> Will BuildAutomator let me select the output spot? The stick does not
> always get the same drive letter. If I have other devices plugged in
> the usual letter is not available.

Not yet. It is close to the top of my list to add an action to select a
folder!

Best regards,

--
Arnór Baldvinsson - Icetips Alta LLC
Port Angeles, Washington
www.icetips.com - www.buildautomator.com - www.altawebworks.com
Icetips product subscriptions at http://www.icetips.com/subscribe.php

NewsArchive
08-15-2011, 03:54 AM
I am sitting here with my fingers crossed (but I am not going to hold
my breath). :)

Bob Roos

NewsArchive
08-19-2011, 01:10 AM
A nice surprise. I ran the setup builder for a project and it asked me
for a target to copy!

I don't know what I was thinking about the drawback. I make so many
setups.......

Thanks for a super product and super support.

Bob Roos

> I did note one tiny little drawback. That is that I have to perform the
> first two steps for each project I build unless there is a way to save the
> COPYTO definition as a permanent and insert the script line.

NewsArchive
08-29-2011, 01:53 AM
hi Friedrich,

Here is where the problem is. Your example shows using the source as
[SB_PROJECT_EXE] but that is not the same as [OUTPUTDIR] and that is
where the file to be copied is really located.

In the script that worked they are the same.

I changed the script to [OUTPUTDIR] and that part worked, but I cannot
browse for the folder. I must type it.

Bob Roos

> Very easy to with the SetupBuilder SKU feature.

NewsArchive
08-29-2011, 01:54 AM
Arnor, I am now holding my breath, crossing all my fingers and legs.

Friedrich,

The SetupBuilder option does not always work. I defined it in two
projects and it works almost perfectly in one and not at all in the
other.

Project 1: If I type the folder of the destination it works, but if I
try to browse for the folder it is looking for an existing file and it
will not leave the browse dialog unless I cancel or select an existing
file.

Project 2: It simply says copy process failed.

Both projects are going to the same place, so I know that is not the
problem (the same path is pasted into each project's prompt). The
project compiled so [SB_PROJECT_EXE]\[EXENAME] exists and the
destination [COPYTO]\[EXENAME] is specified the same way as the one
that works.

I hope I recreated the variable and the script option the same in the
2nd script. That is one of the problems with having to enter something
in multiple places, there is a chance of screwing it up.

Bob Roos

NewsArchive
08-29-2011, 01:55 AM
That was a BAD assumption.

That file does NOT exist, but [OUTPUTDIR]\[EXENAME] does and that
worked. Still have a problem actually trying to browse for a location.

Bob Roos

> The project compiled so [SB_PROJECT_EXE]\[EXENAME] exists

NewsArchive
08-30-2011, 01:21 AM
Bob,

> Project 1: If I type the folder of the destination it works, but if I try
> to browse for the folder it is looking for an existing file and it will
> not leave the browse dialog unless I cancel or select an existing file.

Yes, you are right. The SKU "Browse" button only allows to select a file.
We'll add another option to browse for a folder.

Thanks,
Friedrich

NewsArchive
08-30-2011, 01:21 AM
I sure wish there were a way to use the file browse dialog for folder
browsing. That dialog is MUCH easier to navigate in and allows the
pasting of the main part of the path to ease drill down.

Bob Roos

> We'll add another option to browse for a folder.

NewsArchive
08-30-2011, 01:21 AM
Bob,

> I sure wish there were a way to use the file browse dialog for folder
> browsing. That dialog is MUCH easier to navigate in and allows the
> pasting of the main part of the path to ease drill down.

What I meant was that we'll add an additional option so it is possible to
browse for a folder.

At the moment, we only have a "Edit field with browse button" Entry Type in
the SKU. We'll change this to "Edit field with (file) browse button" and
then add a new "Edit field with (folder) browse button" option.

Friedrich

NewsArchive
08-30-2011, 01:22 AM
Hi Friedrich,

Yes, I understand. What I am saying is that the browse for folder has
no place to paste a path. We get a tiny browse box to navigate/drill
down. The browse for a file is MUCH nicer and larger and allows
pasting of the path if you already know it.

I was wishing for a way to get the folder path without a file from the
file browse.

Bob Roos

> add a new "Edit field with (folder) browse button" option.

NewsArchive
08-30-2011, 02:54 AM
Bob,

> Yes, I understand. What I am saying is that the browse for folder has
> no place to paste a path. We get a tiny browse box to navigate/drill
> down. The browse for a file is MUCH nicer and larger and allows
> pasting of the path if you already know it.
>
> I was wishing for a way to get the folder path without a file from the
> file browse.

You can paste a path directly into the edit field if you already know it
(see attached screenshots).

Friedrich

NewsArchive
08-31-2011, 03:34 AM
Hi Friedrich,

That is because you have such a well-written, user-friendly interface.
:)

Once you click that browse for a folder button, pasting is all over.
SB is the exception to using the browse for folder in allowing a place
to paste as either the final destination or a starting point for the
drill down.

I sit corrected in my statement about SB's browse for a folder. It is
pastable (now if only everyone's was).

Also, the window that it (browse folder) brings up is smaller than the
file window and doesn't have as many features and I find more difficult
to navigate.

Bob Roos

> You can paste a path directly into the edit field if you already know it (see
> attached screenshots).