Re: [WiX-users] How to identify the custom action type in run time.

2009-05-21 Thread Alex Shevchuk
You can check for presence of CustomActionData property. It will be set if custom action is deferred. Alex -Original Message- From: Dov Kleinman [mailto:d...@microsoft.com] Sent: Thursday, May 21, 2009 12:55 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] How to identify th

Re: [WiX-users] Passing InstallDir to exe via a custom action

2009-05-21 Thread Glenn Sandoval
I'm not sure you can pass information directly to an exe like that. I do something similar, but store the install path in the registry and my deferred custom actions read it from there. R. Glenn Sandoval GeoBase Developer – Telogis Research www.telogis.com  www.telogis.co.nz On Fri, May 22, 200

Re: [WiX-users] Passing InstallDir to exe via a custom action

2009-05-21 Thread Vuchuru, Surekha (SBT US EXT)
Hi Jeremie, Try single quotes outside of double quotes while passing the InstallDir parameter. This has worked for me Example: Thanks and Regards, Surekha Vuchuru -Original Message- From: Jeremie Galarneau [mailto:jeremie.galarn...@polymtl.ca] Sent: Thursday, May 21, 2009 3:51 PM To

[WiX-users] Passing InstallDir to exe via a custom action

2009-05-21 Thread Jeremie Galarneau
Hi, I have been reading countless WiX tutorial and have been doing good so far but I can't seem to find how to pass the installation directory (InstallDir) to an executable I have to run during the installation procedure. Could someone post a code sample accomplishing this task as I have been stuc

Re: [WiX-users] Using a wixlib to populate msm content - Solution part 2

2009-05-21 Thread Routhier Louis
When I wrote my last message, I didn't try yet to use the wixlib in my msi's wxs definition. What I found is that you can't define in both the wixlib and your msi's wxs files. Instead, you have to use within your fragment and Directory inside your msi. This means that you also have to add a Dir

[WiX-users] How to identify the custom action type in run time.

2009-05-21 Thread Dov Kleinman
I’d like to write a generic custom action which can be run either immediate or deferred. In order to pass arguments to this custom action I need to use two different approaches since it is a given fact of Windows Installer behavior. On the caller side (Wix) it is quite clear. I have a problem w

Re: [WiX-users] Using a wixlib to populate msm content - Solution

2009-05-21 Thread Routhier Louis
So finally, it seems I had almost solved my problem when I sent my message. What I did is create a ComponentGroup within my wixLib and then, using ComponentGroupRef, I referenced it in my merge module and since everything in my wixLib is in a single Fragment, everything (other than components) ge

[WiX-users] patching multi-language msi

2009-05-21 Thread Mao, Harry
Hi, I've run the patch example successfully: http://blogs.msdn.com/astebner/archive/2007/10/26/5700191.aspx Based on that example, how to build patch for a multi-language msi. For example, I have a msi which is able to install an application in either English(en-us) or French(fr-fr). That 2-la

[WiX-users] Using a wixlib to populate msm content

2009-05-21 Thread Routhier Louis
I'm trying to build a series of build items so that we can easily distribute our installation both internally and externally with maximum control available. This means that we want to build both a wixlib and an merge module depending on the targeted client. Before that, I only had the msm versi

Re: [WiX-users] Checking registered dlls

2009-05-21 Thread Wilson, Phil
This kind of thing is usually done at a higher level than this. For example people don't check for VC 9.0 Dlls or individual .NET assemblies they look for a product code or a registry key that tells them that the containing package has been installed (such as the VC Redist, Office PIAs. .NET Fra

Re: [WiX-users] Execute .reg file.

2009-05-21 Thread Neil Sleightholm
2. Assuming it is a file you are installing, take a look at the binding variables - !(bind.Fileversion.FileId) from memory. Neil -Original Message- From: Pally Sandher [mailto:pally.sand...@iesve.com] Sent: 21 May 2009 16:12 To: General discussion for Windows Installer XML toolset. Subje

[WiX-users] Question regarding PermissionEx

2009-05-21 Thread gulfam murad
Hi, I am new to WIX. I am using util:PermissionEx for creating ACLs. I can successfully set rights like read, write, read & execute but I am unable to find any information about settings Modify Permission (see attached for reference). I have tried using "Append" attribute to achieve this functional

[WiX-users] Conditions with util:XMLConfig

2009-05-21 Thread Routhier Louis
When using XMLConfig from UtilExtension, a SchedXmlConfig entry is created in the InstallExecuteSequence table with condition set to VersionNT > 400. Is there any way of specifying additional conditions? I would need a way to allow users to select if they want to remove the config or not since i

Re: [WiX-users] Execute .reg file.

2009-05-21 Thread Pally Sandher
1 - Look up RegistryKey and RegistryValue in the WiX.chm. You could get tallow.exe from WiX 2.0 and use it to parse your .reg file into a .wxs then use WiXCop.exe on the .wxs to update it to the WiX 3.0 schema. Heat.exe should be able to do this all in one step since it's the replacement for tallow

Re: [WiX-users] Light CAB Cache regression?

2009-05-21 Thread Alastair Smith
Hi Bob Many thanks for your reply. > Are you using the -reusecab switch? No, I'd missed that one; this sounds like it should fix the issue. > Try BaseInputPaths, CabinetCachePath, and ReuseCabinetCache properties. Thanks for the tip; I didn't realize the .wixproj had support for these! Ki

[WiX-users] Execute .reg file.

2009-05-21 Thread Rahul.Ekbote
Hi In our project, we are copying .reg file on user's machine which we have to execute after end of the installation. How can we achive this ? Do we need to do it using Regedit. If yes how can we call regedit in .wxs file Also there is one .exe file. How can I get the version information from