1. Re[2]: Euphoria Windows Installer

>> 8. Add Browse... button for installation directory (show Select
>> folder dialog (few days ago I asked Derek how to show that dialog but
>> hasnot replied))

D> I'm sorry Aku, but I don't remember you asking for anything like this except
D> how to select multiple files. I responded to that request. Is there
D> something else you asked?

Yes I sent this question to your private email address. Here is the
questions:

1 For example I want getSaveFileName always with .abc extension.
I used getSaveFileName(Window1, "", {"ABC File", "*.abc"})
If user entered file name: "example" then the function will return
"example" instead of "example.abc". I can add the ".abc" manually,
but it will not show the "overwrite the file?" message box. So how?

2 How to open Select Folder Dialog?
(the dialog with just the folder tree, if you don't know what i mean,
i will send you the screenshot)

TIA !

new topic     » topic index » view message » categorize

2. Re: Re[2]: Euphoria Windows Installer

SHBrowseForFolder
From: <aku at inbox.as>
To: "EUforum" <EUforum at topica.com>
Subject: Re[2]: Euphoria Windows Installer



> Yes I sent this question to your private email address. Here is the
> questions:
>
> 1 For example I want getSaveFileName always with .abc extension.
> I used getSaveFileName(Window1, "", {"ABC File", "*.abc"})
> If user entered file name: "example" then the function will return
> "example" instead of "example.abc". I can add the ".abc" manually,
> but it will not show the "overwrite the file?" message box. So how?
>
> 2 How to open Select Folder Dialog?
> (the dialog with just the folder tree, if you don't know what i mean,
> i will send you the screenshot)

I don't remember getting this. Anyhow, there is a Windows API function all
"SHBrowseForFolder". It looks a bit complicated to use so I'll do some
experiments with it first. Feel free to do some research of your own though.
----
Derek.

new topic     » goto parent     » topic index » view message » categorize

3. Re[2]: Euphoria Windows Installer

>> 2. It is correct that EWI does not create file association? It is teh
>> most important thing I think.

T> That is correct, it does not make file associations.  Future versions may
T> have the ability to do this, but I am not quite secure enough in my
T> programming expertise to mess with a person's registry.  When I install
T> programs, one thing that will piss me off quickly it to find out that
T> something has changed an association on me.  I love automation only to a
T> certain point.

T> So if the installer ever does mess with file associations, the user will
T> have the ultimate authority and will know what is going on -- and have the
T> ability to prevent a change -- on every step of the process.

Can you make the association optional? and is user selects
yes, also associate the icons.

Many Windows users don't know what is command line is, and
never used ms-dos prompt...

If it is hard to access registry, you can make reg file and
call "regedit /s filename.reg".


>> 7. In my system, Fail to modify autoexec.bat file. I selected confirm
>> each action. "The installer was unable to find your autoexec file"

T> Okay ... first of all, did you set the DEBUG__AUTOEXEC flag?   If not, make
T> sure you have the drive set correctly in the Modify autoexec form that
T> appears.  Also, you will find a file named eu_install.log either in the new
T> euphoria folder (if install was successful) or in the root directory of
T> whatever drive you attempted to install Euphoria on (if install was
T> unsuccessful).  If you could send that file to me, I may know a little
T> better what is going on.

Now I set the DEBUG__AUTOEXEC and it runs fine. Thanks.

>> 8. Add Browse... button for installation directory (show
>> Select folder dialog (few days ago I asked Derek how to
>> show that dialog but hasnot replied))

T> I will look into that as well. A Select Folder dialog
T> would simply be a GetOpenFileName() call, the same as
T> win32lib.ew's current getOpenFileName() routine. The
T> difference will be in the values given in the
T> OPENFILENAME structure that is passed to it. I can
T> probably hack this up fairly easily.

CMIIW, I think it is SHBrowseForFolderA in shell32.dll. But
I don't know how to use it.

10. Ask to create the destination dir *after selecting the
install dir*, not after the review.

11. When I select install dir with long name, it should be
shortened to DOS 8.3 name in the autoexec.bat file.

Thanks!

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu