Re: Starting application from a web page
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Sat, 07 Feb 2009 22:38:58 -0500
Core principle of design of applications: if the .INI file or Registry entries do not
exist, the application must run correctly anyway. It may, if it has to, prompt the user
for information it needs, but the application must run without any configuration
information at all.
Note that it does not look in the c:\documents and settings\... folder; there's something
in that ..., most likely caused by using CSIDL_APPDATA to find the folder, and than means
it is most likely found in
C:\Documents and Settings\<logged-in-user-name>\Application Data
Note that if you *can* figure out how to get the settings from the Web site (I'd use an
HTTP protocol for this), it means the settings are going to be global for every user if
you can put them on the Web site. Assuming you could get them. So in that case, you
could put them into the app as resources and edit the resources to configure the file (and
these values are the defaults if nothing is set in a local configuration)
joe
On Sat, 7 Feb 2009 16:04:00 -0800, jc <jc@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
David,Joseph M. Newcomer [MVP]
Since, it seems that you have some knowledge of running
an application from a website. I know, I can run the
application from the website, but the application requires
a configuration file (.ini). I put some debug statements in,
and when the application runs locally, the application
looks for the configuration file in the local "c:\document and settings\...."
folder.
Obviously, I could hardcode all of the configuration data
into the application, but how can I get the application to look
on the website for the configuration file, instead of locally?
Thanks,
-jc
"David Ching" wrote:
"Tom Serface" <tom@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:DBDA8F03-C221-41A5-9BE5-3F0F9275AABB@xxxxxxxxxxxxxxxx
I don't think this is even possible unless you install an ActiveX control
that does a ShellExecute for you. You could download and run an
application, but youre user will get a ton of warnings about how it's
unsafe.
You could also link directly to the .exe file as I do here:
http://dcsoft.com/products/regeditx/
Clicking on the download link links to the .exe file. It's up to the
browser whether to try to run it directly or save the file.
-- David
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- References:
- Starting application from a web page
- From: jc
- Re: Starting application from a web page
- From: Tom Serface
- Re: Starting application from a web page
- From: David Ching
- Re: Starting application from a web page
- From: jc
- Starting application from a web page
- Prev by Date: Re: Starting application from a web page
- Next by Date: Re: Help with some logic, best way to update a container.
- Previous by thread: Re: Starting application from a web page
- Next by thread: Re: Starting application from a web page
- Index(es):
Relevant Pages
|