PDA

View Full Version : File Association



NewsArchive
02-06-1997, 01:00 AM
While installing a Delphi 2 application with Installshield Express for
Delphi, is it possible to associate files of an specific extension with
the installed application?

NewsArchive
02-06-1997, 01:00 AM
Marcel Berard <marcelb@nait.ab.ca> wrote in article
<32F9FD4E.373D@nait.ab.ca>...
> While installing a Delphi 2 application with Installshield Express for
> Delphi, is it possible to associate files of an specific extension with
> the installed application?
>
You just need to make 2 registry keys. If you run regedit you will see
numerous examples under HKEY_CLASSES_ROOT (HKCR). You need entries like the
following:

HKCR\.ext "Your file identifier string"

HKCR\Your file identifier string\shell\open\command "c:\path\your
program.exe" "%1"

NewsArchive
12-08-1999, 01:00 AM
No, but you could catch the OnInstallingFile event to build a file list
during installation, and dump this list into a text file (ListWriteToFile)

--
Stefan Krueger
Independent Setup Consultant

// InstallSite - Resources for Setup Developers
// http://www.installsite.org

My reply-to address is invalid to avoid spam.
Paid support and consulting services are available:
Write to info@installsite.org for details (auto-responder).

mags <mags@amicus.net> schrieb in im Newsbeitrag:
384dad91.0@news.installshield.com...
> Is there anyway that I can convert the installation log file to a text
file
> within my installation?????
>
> I want to display it to my customers without them having to go in and look
> at the log and then convert it themselves..........???
>
>
>
>
>
>
>
> mags <mags@amicus.net> wrote in message
> news:383e327c.0@news.installshield.com...
> > Hi
> >
> > Is there any function which allows me to list all files within a
> component.
> >
> > The reason I need to know this is because I want to write to a text file
> all
> > the files which are to be installed on the users PC.
> >
> > Any help would be a big help.
> >
> > Thanks
> >
> > Mags
> >
> >
>
>

NewsArchive
02-27-2001, 01:00 AM
Thanks, worked a treat!

Magnus Persson <magnus.persson@timelox.com> wrote in message
news:3a9a50d4$1@12.41.20.38...
> File type association is done by writing a couple of registry keys. You
can
> create those keys in your script.
>
> Eg.
> If you want to associate files with the extension ".mte" with the file
> "C:\MyTest\Test.exe" you need to create the following keys:
>
> --- BEGIN ---
> REGEDIT4
>
> [HKEY_CLASSES_ROOT\.mte]
> @="My Test Extension"
>
> [HKEY_CLASSES_ROOT\My Test Extension]
> @="Description of this file type"
>
> [HKEY_CLASSES_ROOT\My Test Extension\shell]
>
> [HKEY_CLASSES_ROOT\My Test Extension\shell\open]
>
> [HKEY_CLASSES_ROOT\My Test Extension\shell\open\command]
> @="\"C:\\MyTest\\Test.exe\" %1"
> --- END ---
>
> Just create the above keys in your script.
> /R
>
> "David Boddington" <dboddington@ddd.com> wrote in message
> news:3a9618cb@12.41.20.38...
> > Is there anyway to get the installer to set a machine association for a
> file
> > type?
> >
> > Thanks an advance!
> >
> > --
> > David Boddington
> > e-mail: dboddington@ddd.com
> >
> >
> >
>
>

NewsArchive
02-27-2001, 01:00 AM
Thanks, worked a treat!

Magnus Persson <magnus.persson@timelox.com> wrote in message
news:3a9a50d4$1@12.41.20.38...
> File type association is done by writing a couple of registry keys. You
can
> create those keys in your script.
>
> Eg.
> If you want to associate files with the extension ".mte" with the file
> "C:\MyTest\Test.exe" you need to create the following keys:
>
> --- BEGIN ---
> REGEDIT4
>
> [HKEY_CLASSES_ROOT\.mte]
> @="My Test Extension"
>
> [HKEY_CLASSES_ROOT\My Test Extension]
> @="Description of this file type"
>
> [HKEY_CLASSES_ROOT\My Test Extension\shell]
>
> [HKEY_CLASSES_ROOT\My Test Extension\shell\open]
>
> [HKEY_CLASSES_ROOT\My Test Extension\shell\open\command]
> @="\"C:\\MyTest\\Test.exe\" %1"
> --- END ---
>
> Just create the above keys in your script.
> /R
>
> "David Boddington" <dboddington@ddd.com> wrote in message
> news:3a9618cb@12.41.20.38...
> > Is there anyway to get the installer to set a machine association for a
> file
> > type?
> >
> > Thanks an advance!
> >
> > --
> > David Boddington
> > e-mail: dboddington@ddd.com
> >
> >
> >
>
>

NewsArchive
07-24-2001, 12:00 AM
Thanks Olga. Thats twice already = )

Mike C.

"Olga C. (was Olga K.)" <noemailforme@thanks.com> wrote in message
news:3b5c9e2e$1@12.41.20.38...
> Michael,
>
> Take a look at knowledgebase article Q100157 which explains how to create
> file associations.
>
> --
> Sincerely,
>
> Olga C. ( was Olga K.)
>
> "Michael Ciccarone" <ciccarone@acusoft.com> wrote in message
> news:3b5c99f6@12.41.20.38...
> > Hi all,
> > Maybe I'm missing something, but the documentation that comes with 6.3
> > proffesional doesn't explain much of anything. Anyways.. I want to know
> how
> > to associate particular file types with my program. For example: when I
> > double click on a .TXT file it is opened in my program, and a custom
image
> > appears for that .txt file.
> >
> > As always thanks for the help, Mike C.
> >
> >
>
>