Saturday, January 3, 2004, 1:04:16 PM, you wrote:

> I'm an MSI newbie. Is there a way to have my Foo.msi respond to a command
> line parameter at install-time? For example, given this command line:

> msiexec.exe /i Foo.msi URL=http://www.markrichman.com

> can I have Foo.msi launch internet explorer with that URL at setup?

Sure. That sets a public property (see 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/command_line_options.asp)
 and you could add a custom action to the UI sequence with a condition of "URL" so 
that it's triggered only if the URL property is set. (You could also call it as a 
ControlEvent from the "install complete" dialog.)

You'll have to write a custom action to open a browser; MSI doesn't have any standard 
action to do that.

--
sig://boB
http://foobob.com



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to