PDA

View Full Version : running a process on each file..



NewsArchive
09-20-2007, 12:28 PM
Dear group,

I need to run a process (using a dll call out or calling an exe and passing
parameters) for every file within a directory (and subdirectories) of the
installed application. This is in order to "encrypt" a series of image
files.

I've noticed that there doesn't appear to be a collection which I could loop
through in order to retrieve the filename of each individual file.

What I want to do this this:

Show Progress Bar Dialog
For each file in directory
{
call dll_function_encrypt(file.path)
increment progress bar
}

if fail: rollback

What I do at present, is all the logic above in an executable, which I
include as a support file and call it at the end of the installer.

Can anyone advise on the most appropriate way to do this?

Mike W

NewsArchive
09-20-2007, 12:41 PM
Mike,

In our internal SetupBuilder 7.0 we already have a function that (IMO) could
handle this. But first we have to check if we can port this to SB 6.6.

Andrea
www.setupbuilder.com

NewsArchive
09-21-2007, 02:55 AM
Mike,

SetupBuilder 6.6 is already code complete. We can make such a function
available to a 6.6 service release.

The following will then be possible:


Show Progress Bar Dialog

Set Variable %NUMBER_OF_ITEMS% to GetFileList ("c:\test") [Recurse]

Loop %ITEMS% Time
Set Variable %NEXT_ITEM% to GetNextFileListItem
call dll_function_encrypt(%NEXT_ITEM%)
increment progress bar
End


Friedrich

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

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

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
09-22-2007, 12:59 PM
That would be immensely useful, thank you Friedrich!


--
Mike W

NewsArchive
09-28-2007, 01:34 AM
Hi Friedrich,

I know you're immensely busy; but did this feature make it through to
SetupBuilder 6.6?

I can't see it in the feature list, was this intentional?

Great work on the release, by the way :)

Mike W

NewsArchive
09-28-2007, 01:34 AM
Mike,

> I know you're immensely busy; but did this feature make it through to
> SetupBuilder 6.6?
>
> I can't see it in the feature list, was this intentional?

SetupBuilder 6.6 was already feature-complete when you suggested that
feature <g>

>> SetupBuilder 6.6 is already code complete. We can make such a function
>> available to a 6.6 service release.

Your feature will make it into the first 6.6 service release.

>
> Great work on the release, by the way :)
>

Thank you :)

Friedrich

NewsArchive
09-29-2007, 04:20 AM
Mike,

FYI: The new functions are included now and will be stress-tested. So the
new functionality will definitely be in the next 6.6 service release.

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-01-2007, 01:07 AM
That's great, thanks again Friedrich.

Mike W

NewsArchive
10-08-2007, 01:52 AM
Mike,

> I know you're immensely busy; but did this feature make it through to
> SetupBuilder 6.6?

Added and stress-tested. Feature will be available in the next build.

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-14-2007, 12:00 PM
As ever, brilliant.

Thanks Friedrich.


--
Mike Wilson
Evolved Software Studios (UK)
Software for Construction, Healthcare, Financial and Broadcast Industries

web: <www.evolvedsoftwarestudios.com>
blog: <http://blog.evolvedsoftwarestudios.com>

NewsArchive
10-15-2007, 02:41 AM
Hi Mike,

>
> As ever, brilliant.
>

:) Thank you!

Friedrich