PC Review


Reply
Thread Tools Rate Thread

how to specify install or target directory in Install Wizard

 
 
JohnP
Guest
Posts: n/a
 
      9th Jun 2004
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
 
Reply With Quote
 
 
 
 
Phil Wilson
Guest
Posts: n/a
 
      9th Jun 2004
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



 
Reply With Quote
 
John Prokopek
Guest
Posts: n/a
 
      10th Jun 2004
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

 
Reply With Quote
 
Phil Wilson
Guest
Posts: n/a
 
      11th Jun 2004
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



 
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
Deleting install directory after SP2 install? news.microsoft.com Windows XP Performance 5 29th May 2005 03:31 PM
Help me please. Install wizard is not letting me install msn messe =?Utf-8?B?THVuY2hib3hzZWhz?= Windows XP Messenger 2 29th Dec 2004 06:31 AM
Install Shield Wizard crashing when attempting to install different programs. Majin Fro Microsoft Windows 2000 0 21st Jun 2004 05:48 PM
Install Desktop QFE Installer on target? Eberhard Schefold Windows XP Embedded 3 18th May 2004 06:12 PM
target.lnk error after SP1/patches install Karen Windows XP Networking 3 4th Sep 2003 02:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:18 PM.