Re: [WiX-users] WiX XML Issue

2006-10-11 Thread Rob Mensching
Since I've had four people correct me already, I did *mean* "Managed CustomActions are *not* supported by the Windows Installer." Sorry for the spam... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Mensching Sent: Wednesday, October 11, 2006 3:22 P

Re: [WiX-users] WiX XML Issue

2006-10-11 Thread Rob Mensching
Personally, I think that is not good advice. In all the time I've spent writing CustomActions the only robust solution is to have a simple native DLL with as few dependencies as possible. Exe CustomActions can't provide progress or data back to the install. The Installer class is just another

Re: [WiX-users] WiX XML Issue

2006-10-11 Thread Rob Mensching
Managed CustomActions are supported by the Windows Installer. You can do lots of things to try and wire in PInvoke and loading the CLR in a hosted situation but there are real concerns about how those types of CustomActions can affect your install scenarios... especially if you install anything

Re: [WiX-users] WiX XML Issue

2006-10-11 Thread Cullen Waters
Two ways. One is to create a console application, and use wix's custom tag to call it during execution, passing flags as necessary. Two is to inherit from the Installer class. I'm not sure how you get that code hooked up using Wix, though. Sorry I can't be more help here. -Original Messa

[WiX-users] Fine service control

2006-10-11 Thread new_to_wix
I'd like to be able to do the following during an upgrade: 1.) Before InstallFiles, determine if my service (from a previous install) is up; 2.) If it is not up, start it; 3.) Query the service (this part I'll use a custom action for), the end result is setting some properties 4.) Stop the se

Re: [WiX-users] WiX XML Issue

2006-10-11 Thread John Vottero
> > Also, since the machines you're installing on have the .net > runtime installed (or else there wouldn't be a machine.config > to edit), you could write a .NET custom action (easier than > c++) that runs before XMLFile, and performs your xml search > on machine.config, and sets a property t

Re: [WiX-users] WiX XML Issue

2006-10-11 Thread Douglas Watts
Rob, You said "Managed CustomActions aren't supported either". Is that with version 3.0? I'm using WIX version 2.0.4415.0 because I need to be ready very soon and I don't want to deal with the [potential] changes. Would managed CAs be OK for WiX V2.0? __ Doug Wat

Re: [WiX-users] WiX XML Issue

2006-10-11 Thread Rob Mensching
VBScript has lots of issues (you can see my blog about that). Managed CustomActions aren't supported either. I think K just checked in an improved XmlFile CustomAction called XmlConfig that handles more complex changes to XML files than what XmlFile supports. I expect it is only in the latest

Re: [WiX-users] WiX XML Issue

2006-10-11 Thread Cullen Waters
I'm not really sure about sending properties back from managed code. Worst case, you could do all your machine.config changes in the mgd code CA. I think you'll hear some complaints from this alias if you use vbscript to create a custom action. The problem is that supporting reinstall and roll

Re: [WiX-users] WiX XML Issue

2006-10-11 Thread Douglas Watts
Thanks guys. David: The application is already written (it's been in production for a couple of years). So changing the way it uses machine.config is not an immediate option. Your suggestion would actually be my preferred way. Cullen: I'm actually looking into writing a VB script to run as a cu

Re: [WiX-users] WiX XML Issue

2006-10-11 Thread Cullen Waters
Also, since the machines you're installing on have the .net runtime installed (or else there wouldn't be a machine.config to edit), you could write a .NET custom action (easier than c++) that runs before XMLFile, and performs your xml search on machine.config, and sets a property telling XmlFile

Re: [WiX-users] WiX XML Issue

2006-10-11 Thread david adams
Not sure if this helps Douglas, but could you add a custom section and section handler instead of using AppSettings? That way, you are assured that the section would not exist prior to you adding it and you are not limited to using duplicate key names since your configuration section handler c

[WiX-users] INSTALLDIR creation "timing"

2006-10-11 Thread Sigurd Stenersen
I'm using a custom action that accesses the INSTALLDIR directory, and thus it must run after the directory is created. I do it like this : This works fine, except it runs on uninstall as well. So I try : NOT Installed Now, that does NOT work, and I suspect it may be because [Installed

Re: [WiX-users] WiX XML Issue

2006-10-11 Thread Douglas Watts
I tried that but I get an error basically saying that the appSettings node could not be found.  The problem gets more complicated in that if the appSettings element already exists and contains child elements ( elements) then I risk overwriting them.  Apparently WiX (at least 2.0.4415) does

Re: [WiX-users] WiX XML Issue

2006-10-11 Thread Cullen Waters
I don’t have a definite solution, Doug, but I have a suggestion.  Have you tried just creating your elements, without specifying the element, in a machine.config that doesn’t contain the ?  Maybe the XmlFile element is smart enough to create the path if your XPath doesn’t exist.   F

[WiX-users] retrieving information from deferred custom actions

2006-10-11 Thread Tawanda Sibanda
Hi, I am newbie to WiX and I have two quick questions.   1)  I have a deferred custom action that runs at the end of an installation. I want to change the text displayed in my exit dialog depending on the results of the custom Action. Usually, I would do this using properties but t

Re: [WiX-users] Error linking WixIIsExtension

2006-10-11 Thread Bob Arnson
Jarrod Albert wrote: > Any help would be greatly appreciated. The directory where > WixIIsExtension.dll is located is in by path, and I even tried included the > whole path for the -ext option and I still got the same error. > Extensions need to be in the same directory as candle.exe, light.e

Re: [WiX-users] XmlFile element

2006-10-11 Thread Bob Arnson
Joseph Barkley wrote: > I need to parse an xml file that is being installed with my current > project. I'd like to keep the code for the parsing inside of the > component for the xml file, but it simply will not use the [#fileId] > properly. It compiles and runs, but it errors out because it doe

Re: [WiX-users] WiX UI Control Repository?

2006-10-11 Thread Bob Arnson
Peterson, Joel wrote: I’m not looking for any dialogs in particular, but sometimes you don’t know what you can use until you see it. I’ve implemented my own, and was curious what others have done with WiX UI and also if there was a cookie-cutter wizard template that we should be

Re: [WiX-users] Please ensure this is a valid assembly file error: revisited

2006-10-11 Thread Bob Arnson
BULL, Dave, GBM wrote: > If blah.dll is a .NET assembly then it works fine, but if it's a regular DLL > or even an empty file then I get the message. > What's your authoring look like? Light looks inside .NET assemblies to get version info but only if you marked the file as a .NET assembly.

Re: [WiX-users] Invoke asp_regiis.exe

2006-10-11 Thread Bob Arnson
Simon Burgess wrote: Thanks Bob, do you have an idea of the syntax needed were I to do that as obviously here the value of one property is required for the DirectorySearch’s path       So the DirectorySearch picks up the value from RegistrySearch as the start path.

Re: [WiX-users] how to enforce assembly to be gac'd even when thereisalready a copy in the gac

2006-10-11 Thread Bob Arnson
Frank Tse wrote: In any case, I did enter a feature request for the ngen action optionally not to fail setup when it encounters error. Rob pointed out that in recent v2 weekly builds, that feature is already implemented. Take a look at today's build. -- sig://boB http://b

Re: [WiX-users] how to enforce assembly to be gac'd even when thereisalready a copy in the gac

2006-10-11 Thread Bob Arnson
Wilson, Phil wrote: There is the FileVersion way to do an in-place update of a GAC assembly. Last bullet here: I think the scenario is a user who already GAC'd an assembly with the same assembly and file versions. -- sig://boB http://bobs.org -

Re: [WiX-users] Windows Installer/MSI Books?

2006-10-11 Thread Wilson, Phil
There's a list here: http://installsite.org/pages/en/msi/books.htm    Knowing German would be helpful looking at that list Phil Wilson From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peterson, JoelSent: Wednesday, October 11, 2006 9:18 AMTo: wix-users@lists.sourceforge.n

Re: [WiX-users] WiX v3, VS2005, and Preprocessor Environment Variables

2006-10-11 Thread Don Pratt
every compiler and linker is probably at the mercy of Visual Studio’s environment variables I think that's probably an accurate assessment.  Take a look at the documentation for the Win32 CreateProcess function.  There's a parameter (lpEnvironment) that let's the calling process customize the

[WiX-users] Windows Installer/MSI Books?

2006-10-11 Thread Peterson, Joel
Hi all.   Are there any decent books on the core architecture of Windows Installer and MSI (seriously, there are enough books on InstallShield)? I feel that having a deep understanding on the Windows Installer architecture would give me a better foundation in knowing what I should and sho

[WiX-users] Please ensure this is a valid assembly file error: revisited (aga in)

2006-10-11 Thread BULL, Dave, GBM
I've fixed the problem by adding the -sa switch to Light.exe. Question is, why do I have to do this on one machine but not the other? Dave >> error LGHT0132 : The assembly file 'blah.dll' appears to be invalid. Please ensure this >> is a valid assembly file and that the user has the appropriate a

[WiX-users] Please ensure this is a valid assembly file error: revisited

2006-10-11 Thread BULL, Dave, GBM
Hi Following my last post on the 15th September, I am still having this problem. I'm using version 3.0.2015.0 of Wix and am getting the following message when I light the wixobj: error LGHT0132 : The assembly file 'blah.dll' appears to be invalid. Please ensure this is a valid assembly file and

[WiX-users] Error linking WixIIsExtension

2006-10-11 Thread Jarrod Albert
I am working on changing my WiX 2.0 files to 3.0. So far it has been going well. However, one of my wxs files does some web things that have been moved to an extension file. I changed my wxs file to include xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension"; and put iis: on the front

[WiX-users] XmlFile element

2006-10-11 Thread Joseph Barkley
I need to parse an xml file that is being installed with my current project. I'd like to keep the code for the parsing inside of the component for the xml file, but it simply will not use the [#fileId] properly. It compiles and runs, but it errors out because it doesn't resolve [#fileId] during the

Re: [WiX-users] WiX XML Issue

2006-10-11 Thread Douglas Watts
Does anyone know how to check for the existence of a particular element in an XML file?  I need to add to the machine.config file but if I assume that the node does not exist then I end up with two.  The only thing I see in the WiX schema is XmlFile which creates or updates elements.  I n

[WiX-users] A shippment into china,best rates

2006-10-11 Thread john
INTEGRATE SHIPPING LIMITED Rm 31D, 24C,Qiaoyuan Mansion, #750 Xizhang South Rd., 200011 Shanghai,ChinaTel:86-21-63459257,63450332,63456109 Fax:86-21-63456292,63450279[EMAIL PROTECTED]WEB:http://www.islcn.com Dear Sir/Lady ,Below freshed rate update iss