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