You could do it with a VBScript custom action. You'd add a VBScript CA that
uses CreateObject(Wscript.WshShell) and then uses the Run method on the
object. The destination of the program you want to run is TARGETDIR that you
pass using CustomActionData, so if you set CustomActionData in the custom
action to:
[TARGETDIR]my.exe /[TARGETDIR]
you can use that. For example, if I make a custom action that just does a
message box of property("CustomActionData") the string I see is:
C:\Program Files\Setup3\my.exe /C:\Program Files\Phil\Setup3\
You might need to refine that general idea with qwuotes around the patch
names.
--
Phil Wilson [MVP Windows Installer]
----
"John Prokopek" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks for the feedback.
> Unfortunely I cannot alter the exe that is being installed and executed.
> Oh well!
>
> thanks again
> john
>
> "Phil Wilson" <(E-Mail Removed)> wrote in message
news:<#Or$(E-Mail Removed)>...
> > There isn't way to do this with the VS IDE, and there's no support for
the
> > CustomActionData property for executables. I am sure it is pretty
> > straightforward for a program to find where it's running from. What type
of
> > program is it? Managed like C# or VB.NET or Win32?
> > --
> > Phil Wilson
> > [MVP Windows Installer]
> > Definitive Guide to Windows Installer
> > http://apress.com/book/bookDisplay.html?bID=280
> >
> > "JohnP" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > I am VERY new to windows installer. I am trying to create a very
> > > simple install using the Wizard in Visual Studio. All I need to do is
> > > copy a group of files to a directory and then run one exe from the
> > > install directory. The exe takes the INSTALL directory as a parameter.
> > > When I create a custom action in the custom action properties dialog I
> > > do not know how to specify the installed or target directory. I tried
> > > "[TARGETDIR]" thinking that would get me somewhere but no such luck.
> > >
> > >
> > > so.....
> > >
> > > if someone could lend me a hand I would greatly appreciate the help,
> > >
> > >
> > > John