Re: [WiX-users] [BUMP] Passing Values from the ProductModule to a MergeModule - Solved (plus a question for clarification)

2010-07-22 Thread Blair
Check a verbose extra-info log (both the v and the x in your logging parameters) and you will see exactly when those properties are set. You can then find a place to set your property. -Original Message- From: John Bergman [mailto:john.berg...@xpedienttechnologies.com] Sent: Thursday, Jul

Re: [WiX-users] Drivers' installation design

2010-07-22 Thread Vazhenin_Maksim
Rob, Blair thank you very much for your explanation! I haven't known that the immediate custom action can schedule the same deferred custom action multiple times. I will try it now. If I'll have some problems with it I will ask for help. Regards, Maks -Original Message- From: Blair [mailto

Re: [WiX-users] Upgrading from other setup program to WiX/MSI

2010-07-22 Thread Blair
You shouldn't prompt from the execute sequence. There are ways of "running" MSI files where there is no user session to respond to the prompt and you would hang your install. The best way to show a message box from a custom action (and the only supported way if you must do so from the execute sequ

Re: [WiX-users] The DirProperty in RemoveFile table must be a property name in Directory table?

2010-07-22 Thread Elfe Xu
Interesting. What is the Windoes Installer version it required? I'm using Win7, the installer version of the product is 4.0 (), the Windows Installer version on my machine is 5.0.7600.16385. I've no idea why my code failed :( -- View this message in context: http://windows-installer-xml-wix-too

Re: [WiX-users] Automatically include arbitrary files

2010-07-22 Thread Blair
Correct. -Original Message- From: Lukas Haase [mailto:lukasha...@gmx.at] Sent: Thursday, July 22, 2010 12:27 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Automatically include arbitrary files Dear Blair, Thank you very much for your comprehensive explanation. Together

Re: [WiX-users] Drivers' installation design

2010-07-22 Thread Rob Mensching
IIRC, the immediate custom action can schedule the same deferred custom action multiple times. We've slowly moved away from that patter to calling the deferred custom action once passing it a list of data because that runs much, much faster. On Thu, Jul 22, 2010 at 11:20 PM, wrote: > As I unders

Re: [WiX-users] InstallExecuteSequence completely ignored

2010-07-22 Thread Blair
Is your added authoring in a fragment that has other things that ARE in the MSI (use ORCA to see what got into the MSI)? -Original Message- From: Lukas Haase [mailto:lukasha...@gmx.at] Sent: Thursday, July 22, 2010 12:12 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] InstallE

Re: [WiX-users] Drivers' installation design

2010-07-22 Thread Blair
You are in control of that. If there are sequencing requirements between different drivers, etc. you can represent that in your schema and in your table(s), and make your immediate action (or several immediate actions, if that helps with setting sequencing, each can act on only the part of the data

Re: [WiX-users] Automatically include arbitrary files

2010-07-22 Thread Rob Mensching
Yes, exactly. On Thu, Jul 22, 2010 at 12:26 PM, Lukas Haase wrote: > Dear Blair, > > Thank you very much for your comprehensive explanation. Together with > the comments from "Does the MSI-filename matter" I think I won't care > about minor and small updates and just ship always a major upgrade.

Re: [WiX-users] InstallExecuteSequence completely ignored

2010-07-22 Thread Rob Mensching
Hmm, my first guess is that the new MSI isn't actually being used for the install. Is it possible the MSI is already cached and you're re-running using the cached MSI? The verbose log file will show you at the top. On Thu, Jul 22, 2010 at 12:12 PM, Lukas Haase wrote: > Hi, > > As proposed in on

Re: [WiX-users] The DirProperty in RemoveFile table must be a property name in Directory table?

2010-07-22 Thread Rob Mensching
I shipped a couple CTPs of Live Mesh using that code. It worked for me then. On Thu, Jul 22, 2010 at 11:16 PM, Elfe Xu wrote: > > Thanks. After adding the version resource, add a Id="RemoveFile" > /> element, the RemoveFoldersEx action executed successfully. > > Action 14:10:30: RemoveFoldersEx

Re: [WiX-users] Drivers' installation design

2010-07-22 Thread Vazhenin_Maksim
As I understand in this approach there will be one immediate ca (that will marshal the data to the deferred) and only one deferred custom action that will configure all drivers. If there will be a custom actions for each action to driver, I will have to describe them all in my wixlib. The problem

Re: [WiX-users] The DirProperty in RemoveFile table must be a property name in Directory table?

2010-07-22 Thread Elfe Xu
Thanks. After adding the version resource, add a element, the RemoveFoldersEx action executed successfully. Action 14:10:30: RemoveFoldersEx. Action start 14:10:30: RemoveFoldersEx. MSI (s) (A8:24) [14:10:30:747]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI8168.tmp, Entrypoint:

[WiX-users] msi patchs not updating the manually edited files

2010-07-22 Thread Sunkesula, Srivardhan
Hi, We give MSI patches using wix. Customers some time manually edit the xml files and some other config files. When the customer apply our msi patch, The patch is not replacing the manually edited files in the customer environment. Is there any way as to replace all the files irrespecti

Re: [WiX-users] Does the msi-filename matter?

2010-07-22 Thread Rob Mensching
Couple things: 1. You can have multiple .wxs files to create a single or set of MSI files. I recommend breaking your product down into useful chunks and putting them in Fragments then grouping the Fragments in logical files. Managing a product in a single .wxs file can be very challenging. 2. I

Re: [WiX-users] MsiGetProductInfoFromScript returns 1603

2010-07-22 Thread Rob Mensching
How about: SELECT `Value` FROM `Property` WHERE "Property"="ProductCode" I don't think you want ::MsiGetProductInfoFromScript(). On Thu, Jul 22, 2010 at 4:42 PM, Jacques Eloff wrote: > Hi > > I'm trying to extract the Product code from an MSI using C# (this is for a > custom msbuild task I'm wr

Re: [WiX-users] The DirProperty in RemoveFile table must be a property name in Directory table?

2010-07-22 Thread Rob Mensching
Make sure the custom action has a version resource. Feel free to open issues against the wix-contrib project so things get fixed there. On Thu, Jul 22, 2010 at 8:34 PM, Elfe Xu wrote: > > The folder hierarchy is just a example. My application has nothing to do > with > user accounts. > > Thanks

Re: [WiX-users] Failures build project with WiX 3.5 inside VS2010

2010-07-22 Thread Rob Mensching
Hmm, I think you should open a bug with all the information. This sounds new. On Thu, Jul 22, 2010 at 4:47 PM, Jeffrey Cutting wrote: > I've just upgraded from VS2008 and WiX 3.0 to VS2010 and WiX 3.5 > (3.5.1916.0, to be exact). I can build a couple of my most simple WiX > projects inside Visua

Re: [WiX-users] The DirProperty in RemoveFile table must be a property name in Directory table?

2010-07-22 Thread Elfe Xu
The folder hierarchy is just a example. My application has nothing to do with user accounts. Thanks for the suggestion of using wix-contrib. At first I read the code and thought it was easy for me to translate it to a C# version CA. Anyway, I add version.lib to the projects, and get wix-contrib

Re: [WiX-users] Avoid showing final "installation interrupted" (i.e. UserExit) dialog on Cancel

2010-07-22 Thread chaiguy1337
Thanks--I got it to work! For others interested, I posted more details here: http://stackoverflow.com/questions/3304624/cancel-an-msi-without-showing-the-installation-interrupted-dialog - A. Logan Murray http://pihole.org/ -- View this message in context: http://windows-installer-xml-wix-to

[WiX-users] Failures build project with WiX 3.5 inside VS2010

2010-07-22 Thread Jeffrey Cutting
I've just upgraded from VS2008 and WiX 3.0 to VS2010 and WiX 3.5 (3.5.1916.0, to be exact). I can build a couple of my most simple WiX projects inside Visual Studio without error. However, when I attempt to build a few of my other projects (which still build without error in WiX 3.0) inside Vi

[WiX-users] MsiGetProductInfoFromScript returns 1603

2010-07-22 Thread Jacques Eloff
Hi I'm trying to extract the Product code from an MSI using C# (this is for a custom msbuild task I'm writing). I'm using the following definition for P/Invoke [DllImport("msi.dll", CharSet = CharSet.Unicode)] static extern Int32 MsiGetProductInfoFromScript(string scriptFile, StringBuilder pro

[WiX-users] [BUMP] Passing Values from the ProductModule to a MergeModule - Solved (plus a question for clarification)

2010-07-22 Thread John Bergman
-- Copied from below, it would be appreciated if someone could shed some insight into this. What I was unable to get working is the code that combines the Domain\User in a custom action, I suppose this has to do with the ordering if the CA, Can someone comme

Re: [WiX-users] Does the msi-filename matter?

2010-07-22 Thread Barneck, Jared
If this is a blocking issue that is preventing everyone from using an MSI feature, then this sounds like a BUG in the MSI design that should be reported to Microsoft with high priority and fixed in the next version of Windows Installer. -Original Message- From: Lukas Haase [mailto:lukas

Re: [WiX-users] Upgrading from other setup program to WiX/MSI

2010-07-22 Thread Lukas Haase
Dear Blair, Am 22.07.2010 01:04, schrieb Blair: > 1. You can build MSIs with WiX that don't require running the setup as > administrator. Nothing that can be done outside of Windows Installer without > elevation requires elevation in Windows Installer to also do. In fact this is exactly what I do

Re: [WiX-users] Does the msi-filename matter?

2010-07-22 Thread Lukas Haase
Thank you everybody for the discussion! The result is clear to me: I won't use minor- and small updates. One question concerning "Best practice" left for the deployment. In fact my application consists of: - "Viewer" (EXE, DLL, CHM) - "Database" (dat-file (80MB), bunch of PDFs) - License1.RTF, L

Re: [WiX-users] Automatically include arbitrary files

2010-07-22 Thread Lukas Haase
Dear Blair, Thank you very much for your comprehensive explanation. Together with the comments from "Does the MSI-filename matter" I think I won't care about minor and small updates and just ship always a major upgrade. Morever if this is "best practice". The saving isn't it worth! Just one la

[WiX-users] InstallExecuteSequence completely ignored

2010-07-22 Thread Lukas Haase
Hi, As proposed in one mail I wrote a DLL for detecting old installations. But WiX seems to completely ignore InstallExecuteSequence! I played around, tried different things but it is just ignored! For testing I just added this to my file: Notepad.exe Even if I install with msiexec /i

Re: [WiX-users] {INSTALLLOCATION] Not Expanding to It's Value in a Type 2 Custom Action

2010-07-22 Thread John Cooper (Volt)
Well, the string of expanded properties and switches is what gets passed. Ultimately, the fix was to pass INSTALLDIR instead having first set it Secure="yes". Now everything just works. -- John M. Cooper Volt at Microsoft -Original Message- From: Peter Shirtcliffe [mailto:pshirtcli...@

Re: [WiX-users] Drivers' installation design

2010-07-22 Thread Blair
The WixExtension can supply a compiler extension to implement your schema for your pattern (allows you to easily describe what is being installed) and should populate your custom table that your custom actions use to control their work. It should also create a reference to the fragment in your wixl

Re: [WiX-users] Automatically include arbitrary files

2010-07-22 Thread Blair
One strategy would be to split your package into two (one with the frequently changing stuff and another with the rarely changing stuff) and use a bootstrapper to tie them together, but given the relative size differences between your frequently changing (database and pdf files) and your rarely cha

Re: [WiX-users] Drivers' installation design

2010-07-22 Thread Rob Mensching
I would use a WixExtension. Why didn't that seem to work? On Thu, Jul 22, 2010 at 1:43 AM, wrote: > I work on WiX-based installer for large product, we need to install 16 > drivers (of 3 different types, so there is 3 installation patterns). > Difx library is not flexible enough, so we have our

Re: [WiX-users] Automatically include arbitrary files

2010-07-22 Thread Lukas Haase
Dear Blair, Thank you so much! It's really great! Did not think that it will be that simple. I am quiet astonished that all the flags you told me are neither in the help file nor at [1]. But calling heat without parameters tells all "hidden" parameters... Am 22.07.2010 00:48, schrieb Blair: >

Re: [WiX-users] Avoid showing final "installation interrupted" (i.e. UserExit) dialog on Cancel

2010-07-22 Thread Pally Sandher
When cancelling the installation process the dialog launched is the one in the InstallUISequence with sequence -2 (UserExit in the standard WiX UI). I don't think you can have multiple entries in the Sequence tables with the same sequence number so providing another appropriately Conditioned dialo

[WiX-users] Drivers' installation design

2010-07-22 Thread Vazhenin_Maksim
I work on WiX-based installer for large product, we need to install 16 drivers (of 3 different types, so there is 3 installation patterns). Difx library is not flexible enough, so we have our own tool to install drivers. For each driver necessary to run this tool about 3 times (for example: remove