[izpack-users] Asking permission to overwrite a file before running a script.

Scott Taylor st-izpack at TaylorIT.com
Thu Jan 26 13:54:14 CET 2006


Hej Fabrice,

I'm currently running the SQL script using an execute tag in the pack 
where I install Firebird. With Firebird you can do the following "CREATE 
DATABASE 'c:\myFolder\myDatabase.fdb'", and it will create a new empty 
database in the file location specified. You can then connect using 
"CONNECT 'c:\myFolder\myDatabase.fdb'". In other words I know exactly 
where to look for the file, so a search isn't necessary. However I was 
hoping that there might be a way to do it without having to create my 
own custom panel. Based on your feedback I guess I will have to do #1, 
or #2, since I want a graphical prompt.

/Scott

Miraodb wrote:
> hi,
>
> my first question is how to run the sql script ? from processpanel or
> execute tag or anything else...
> i'm not familliar with firebird DB, are the file names always the same ?
> if so, just do a recursive search of that file in a script.
> At this point three options:
>
> 1. create a custom panel that does the search, but also does a user
> interaction: ask if you want to overwrite or not.
> 2. do the search in a script, put the result in a variable. create a custom
> panel that uses this variable and do the interaction...
> 3. do everything from scripts. (batch or sh)
>
> Cheers,
> fabrice
> ----- Original Message ----- 
> From: "Scott Taylor" <st-izpack at taylorit.com>
> To: <izpack-users at lists.berlios.de>
> Sent: Wednesday, January 25, 2006 4:03 PM
> Subject: [izpack-users] Asking permission to overwrite a file before running
> a script.
>
>
>   
>> While installing an application, I need to run an sql script to create a
>> Firebird database file. However before running the script I need to see
>> if the database file already exists. If it does I need to ask the user
>> if he/she wants to use the existing file or let the installer overwrite
>>     
> it.
>   
>> Is the above possible with IzPack?
>>
>> Any help greatly appreciated,
>> /Scott
>>
>> _______________________________________________
>> izpack-users mailing list
>> izpack-users at lists.berlios.de
>> http://lists.berlios.de/mailman/listinfo/izpack-users
>>
>>     
>
>
> _______________________________________________
> izpack-users mailing list
> izpack-users at lists.berlios.de
> http://lists.berlios.de/mailman/listinfo/izpack-users
>   




More information about the izpack-users mailing list