PC Review


Reply
Thread Tools Rate Thread

Determine URL the .msi was run from.

 
 
Fred Iannon
Guest
Posts: n/a
 
      3rd May 2005
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

 
Reply With Quote
 
 
 
 
Phil Wilson
Guest
Posts: n/a
 
      6th May 2005
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.
--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

"Fred Iannon" <(E-Mail Removed)> wrote in message
news:090801c55005$c8a8ee60$(E-Mail Removed)...
> 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
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to determine the value? Eric Microsoft Excel Misc 0 6th Jun 2010 06:17 AM
Determine best way to sum WLMPilot Microsoft Excel Misc 4 22nd Dec 2008 02:03 AM
How to determine the value? =?Utf-8?B?RXJpYw==?= Microsoft Excel Worksheet Functions 1 13th Feb 2007 04:17 AM
how to determine SID jg Windows XP Security 2 5th Mar 2006 01:21 AM
[Help]How do we determine? Wang.Hua Windows XP General 0 2nd Nov 2004 03:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:47 AM.