Rob,
I have been through the tutorial. I did not see anyplace that shows how
to connect an installation directory ID to a path used for a Binary
declaration or anything similar to that.
All that I need is the syntax to connect MY_APP_TARGET from this snipet:
<Directory Id="MY_APP_TARGET" Name="MyApp"
LongName="MyApplication">
to the SourceFile value, $(var.MY_APP_TARGET), in this snipet:
<Binary Id="MyAppExe" SourceFile="$(var.MY_APP_TARGET)\MyApp.exe" />
Since $(var.MY_APP_TARGET) does not work, nor does [!MY_APP_TARGET], what
is the syntax to connect the directory ID to the SourceFile? How should
the line starting with "<Binary Id="MyAppExe" ... read?
If there is some other way of accomplishing the same thing, that would be
fine too.
Thanks,
Chris Ruel, Automation Consultant, Telvent Farradyne Inc.
3206 Tower Oaks Blvd., Rockville, MD 20852
Email: [EMAIL PROTECTED]
Office: 301-984-6460 Fax: 301-816-1884
Rob Mensching <[EMAIL PROTECTED]>
Rob Mensching
12/07/2006 05:13 PM
To:
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
cc:
"wix-users@lists.sourceforge.net" <wix-users@lists.sourceforge.net>,
"[EMAIL PROTECTED]"
<[EMAIL PROTECTED]>
Subject:
RE: [WiX-users] WIX Post-Install Dialog Questions
I would encourage you to walk through the WiX tutorial:
http://wix.sourceforge.net/tutorial. There is a lot in your snippet below
that doesn’t make a lot of sense so I’m guessing you’re new to setup (I
apologize, if I’ve guessed wrong).
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, December 07, 2006 13:21
To: Rob Mensching
Cc: wix-users@lists.sourceforge.net;
[EMAIL PROTECTED]
Subject: Re: [WiX-users] WIX Post-Install Dialog Questions
Rob,
I looked at the link you referred. From that info, I still don't see how
to get the directory.
Is there any chance you could show me an example or make the one below so
that it refers to the directory correctly?
If you could show me the syntax or way to make the MY_APP_TARGET
accessible, that would solve my problem:
<Directory Id="INSTALLATION_TARGET" Name="SourceDir">
<Directory Id="PROGRAM_FILES_TARGET" Name="Program" LongName="Program
Files">
<Directory Id="MY_APP_TARGET" Name="MyApp"
LongName="MyApplication">
...
<Binary Id="MyAppExe" SourceFile="$(var.MY_APP_TARGET)\MyApp.exe" />
<CustomAction Id="RunMyAppAction" BinaryKey="MyAppExe"
ExeCommand="[MY_PARAM] " Return="check" />
Chris Ruel, Automation Consultant, Telvent Farradyne Inc.
3206 Tower Oaks Blvd., Rockville, MD 20852
Email: [EMAIL PROTECTED]
Office: 301-984-6460 Fax: 301-816-1884
Rob Mensching <[EMAIL PROTECTED]>
Rob Mensching
Enviado por: [EMAIL PROTECTED]
12/07/2006 02:42 PM
To:
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
cc:
"wix-users@lists.sourceforge.net" <wix-users@lists.sourceforge.net>
Subject:
Re: [WiX-users] WIX Post-Install Dialog Questions
Please keep all threads on the mailing list.
You’ll want to understand the Directory table in detail. Check out this
series of blog entries:
http://blogs.msdn.com/robmen/archive/2006/10/17/deciphering-the-msi-directory-table-part-7-directories-are-properties.aspx
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, December 07, 2006 11:35
To: Rob Mensching
Subject: RE: [WiX-users] WIX Post-Install Dialog Questions
Thanks Rob. I greatly appreciate your timely response.
Can you give me a short example of how to refer to a directory from the
installation?
Sorry, but I don't see how to do it from the SDK you referred me.
From this sample...
<Directory Id="INSTALLATION_TARGET" Name="SourceDir">
<Directory Id="PROGRAM_FILES_TARGET" Name="Program" LongName="Program
Files">
<Directory Id="MY_APP_TARGET" Name="MyApp"
LongName="MyApplication">
...
<Binary Id="MyAppExe" SourceFile="$(var.MY_APP_TARGET)\MyApp.exe" />
<CustomAction Id="RunMyAppAction" BinaryKey="MyAppExe"
ExeCommand="[MY_PARAM] " Return="check" />
Chris Ruel, Automation Consultant, Telvent Farradyne Inc.
3206 Tower Oaks Blvd., Rockville, MD 20852
Email: [EMAIL PROTECTED]
Office: 301-984-6460 Fax: 301-816-1884
Rob Mensching <[EMAIL PROTECTED]>
Rob Mensching
12/07/2006 02:00 PM
To:
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]>,
"wix-users@lists.sourceforge.net" <wix-users@lists.sourceforge.net>
cc:
Subject:
RE: [WiX-users] WIX Post-Install Dialog Questions
1. Windows Installer doesn’t work that way. You ask your questions up
front, the data gets preserved in the transaction where you operate on it.
The Windows Installer isn’t a scripting engine, it’s a transaction
engine. Have to think about the problem a little differently.
2. Take a look at the “Formatted” topic in the MSI SDK. It’ll show you
who you can use things like [!FileId] to refer to the install location of
files and all that good stuff.
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, December 07, 2006 10:44
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] WIX Post-Install Dialog Questions
Hi,
I am tring to develop an installation application using WIX and WixEdit
that will show a dialog after the files were installed so that I can run
some scripts using PERL that were installed during the application. I am
encountering the following problems that I was wondering if you might now
how to address:
1) Launching a dialog to obtain some user input after the files are
installed. I can't find a way that works, such as <Show Dialog
After=InstallFinalize /> or by changing the MONDO sequence file. I've
tried both. Can you provide some example that will launch a dialog to
obtain a user input field after the file installation?
2) Launching an application that was installed. How do I specify a
variable relative path for one of the file components that was installed?
I have tried all sorts of things for binary keys, etc. and nothing seems
to be able to work specifying a relative path for an installed file:
<Binary Id="MyInstalledExe" SourceFile="$(var.SOME_DIR)myapp.exe" />
Any help or suggestions you could provide would be greatly appreciated.
Chris Ruel, Automation Consultant, Telvent Farradyne Inc.
3206 Tower Oaks Blvd., Rockville, MD 20852
Email: [EMAIL PROTECTED]
Office: 301-984-6460 Fax: 301-816-1884
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users