PDA

View Full Version : Loop through install files



NewsArchive
08-14-2007, 02:16 PM
Hi Friedrich,

Is it possible to loop through the files that are being installed?
I'm trying to get my scripts to be as self contained as possible and
I'd like to be able to loop through the "queue" of files to be
installed and check their extension and destination.

Something like this in Clarion;)

Loop I = 1 To Records(Files)
Get(Files,I)
If Extension = '.hlp'
PutReg(...)
End
If Extension = '.chm'
PutReg(...)
End
If Extension = '.pdf'
PutReg(...)
End
End

I guess worst case scenario I can parse through the uninstall log, but
I'd rather not;)

Best regards,

Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com


Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php

NewsArchive
08-14-2007, 02:16 PM
Hi Arnór,

Unfortunately, this is not possible. SetupBuilder compiles native Win32
Windows applications and the app knows nothing about "files". It does not
have a list of files available.

Friedrich

NewsArchive
08-14-2007, 02:17 PM
Hi Friedrich,

>Unfortunately, this is not possible. SetupBuilder compiles native Win32
>Windows applications and the app knows nothing about "files". It does not
>have a list of files available.

I'm talking about the files _in_ the install, not external files.

My idea was that I could put in registry keys if the install contained
*.chm, *.hlp or *.pdf files so that it would be easy for me to find
them. As it is I'd have to hardcode each key and that makes creating
generic scripts for this impossible. Somehow the install knows about
it's own files since it can install them and create an uninstall log;)

Best regards,

Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com


Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php

NewsArchive
08-14-2007, 02:17 PM
Hi Arnór,

>>Unfortunately, this is not possible. SetupBuilder compiles native Win32
>>Windows applications and the app knows nothing about "files". It does not
>>have a list of files available.
>
> I'm talking about the files _in_ the install, not external files.
>
> My idea was that I could put in registry keys if the install contained
> *.chm, *.hlp or *.pdf files so that it would be easy for me to find
> them. As it is I'd have to hardcode each key and that makes creating
> generic scripts for this impossible. Somehow the install knows about
> it's own files since it can install them and create an uninstall log;)

Yes, I understand what you mean. But there is not any "list" (or a queue)
of files in the installer ;-) There is an "Install File" *instruction* that
is executed during the installation process or not! This would be similar
to the following scenario: try to loop through a "queue" to check if there
is a DISPLAY('Hello World') command in your Clarion application. Or count
how many HALT statements are in your Clarion application. Not possible at
runtime ;-)

Friedrich

NewsArchive
08-14-2007, 02:18 PM
Hi Friedrich,

>Yes, I understand what you mean. But there is not any "list" (or a queue)
>of files in the installer ;-) There is an "Install File" *instruction* that
>is executed during the installation process or not! This would be similar

Ok, no problem:)

Next question: Is the uninstall log format documented?<g> I'm not
going to mess with this now, I have got to get these installs done and
out the door. However, it would be cool to have some documenation on
the uninstall log since it details everything that was installed. I
have the uninstall log location in the registry where I can get to it
so I would be able to look them up and parse out the filenames of the
installed files to find documentation etc.

Best regards,

Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com


Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php

NewsArchive
08-14-2007, 02:19 PM
Hi Arnór,

> Ok, no problem:)
>
> Next question: Is the uninstall log format documented?<g> I'm not
> going to mess with this now, I have got to get these installs done and
> out the door. However, it would be cool to have some documenation on
> the uninstall log since it details everything that was installed. I
> have the uninstall log location in the registry where I can get to it
> so I would be able to look them up and parse out the filenames of the
> installed files to find documentation etc.

No, it's undocumented. But it should not be a problem to document the
uninstall format. It will be available in the next documentation update.

Thanks for your suggestion!

Friedrich

NewsArchive
08-15-2007, 02:19 AM
Hi Friedrich,

>No, it's undocumented. But it should not be a problem to document the
>uninstall format. It will be available in the next documentation update.

Cool:) For some geeky personalities it might be interesting - not
sure it will increase sales much though, but you never know<bg>

Best regards,

Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com


Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php