Determine URL the .msi was run from.

  • Thread starter Thread starter Fred Iannon
  • Start date Start date
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
 
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.
 
Back
Top