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
redirect URL's, return URL's, and URL Parameters Jon paugh Microsoft ASP .NET 1 10th Jul 2004 06:29 AM
Determine the URL of the request Douglas Macnguyen Microsoft ASP .NET 2 16th Mar 2004 02:26 AM
Cannot run URL from Start > Run dialog =?Utf-8?B?UmF2ZW4gQ2VjaWw=?= Windows XP General 1 31st Dec 2003 02:56 PM
How does IE determine whether a url is local or external? Keith Windows XP Internet Explorer 0 9th Oct 2003 09:58 PM
How to chage Absolute url to relative url ,and relative url to absolute url gqtang Microsoft C# .NET 1 13th Sep 2003 05:22 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:19 PM.