Determine URL the .msi was run from.

F

Fred Iannon

All,
I have been doing a lot of searching for this answer and
am having trouble finding any help...TIA.

I am wondering if I can programatically determine the
URL that a .msi file is run from when it is clicked on a
web site? I would like this information in order to add
custom code in the installer in order to make a desktop
link back to that web server? However once the .msi is
clicked on the web site it is downloaded and run on the
local machine...any any code I try and implement to find
the "source directory" never returns the actual URL.

I figured out how to make the desktop link from within
the installer (using Windows Scripting Host...any other
ideas??) but still canNOT figure out how to determine what
the URL is that was originally clicked upon.

I canNOT directly add the URL to the .msi at compile
time since the URL is customer specific...

Any thoughts or an alternative approaches?
Thanks so much...
Fred
 
P

Phil Wilson

I think you've discovered that clicking on an MSI file downloads it to the
local cache and install it from there. You need to arrange for the install
to be done with a command line that includes the URL, such as:

msiexec /i http://some.domain.com/my.msi

then that URL is the install location for repairs etc. I think you can solve
this problem by instead launching an executable that runs the installl with
that kind of command line, then I believe your OriginalDatabase property
should be the URL.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top