Re: [WiX-users] What keeps borking my ICE validation by registering VBScript and JScript under HKCU?

2009-02-17 Thread Anthony Wieser
Bummer. So these installers just decide to re-register the DLLs "to be sure that they're registered", and as a result probably break their own functionality. Thanks for the response, Rob. Anthony Wieser Wieser Software Ltd - Original Message - From: "Rob Mensching" To: "General disc

Re: [WiX-users] LaunchConditions and FindRelatedProducts

2009-02-17 Thread Neil Sleightholm
Yes no problem. I have done loads of searching for information on this and can't find any good advice or recommendations! Neil -Original Message- From: Rob Mensching [mailto:r...@wixtoolset.org] Sent: 18 February 2009 04:41 To: General discussion for Windows Installer XML toolset. Subjec

Re: [WiX-users] How to get VS90_PROJECTTEMPLATES_DIR path

2009-02-17 Thread Throndorin
Bob Arnson-6 wrote: > > Throndorin wrote: >> In one of the .wxs files is VS90_PROJECTTEMPLATES_DIR and some other >> macros >> used, and I'm sure the installer knows how to resolve this to a real >> path. >> >> Is there a good way to get this path information? >> > > From WiX.chm: > > >

[WiX-users] Avoid Multiple Instances of Installer

2009-02-17 Thread Anweshi D
Hi How to avoid multiple instances of Installer. Right now I can run 2 instances of the MSI file. I am using WIXUI_INSTALLDIR. After the installation begins then the other instance gets an error that one instance is running. I would like to stop the user running a second instance when one insta

Re: [WiX-users] Ngenning with NetFx and ProgressText

2009-02-17 Thread Bob Arnson
Rob Mensching wrote: > I thought NGen was done in the background with a separate process. A separate process but the CA itself is a type 1, so it can't take msidbCustomActionTypeAsync + msidbCustomActionTypeContinue and therefore MSI will sit around and wait. Glenn, try setting the InstallFina

Re: [WiX-users] Bootstrap Packages in WIX

2009-02-17 Thread Rob Mensching
Correct. A bootstrapper is planned for WiX v3.5 (actually, that's the only thing planned for WiX v3.5). In the archives of this mailing list there are plenty of suggestions for other bootstrappers/chainers in the meantime. Anweshi D wrote: > Hi > > The prerequisites for my application are .N

Re: [WiX-users] Custom Installer Question.

2009-02-17 Thread Rob Mensching
There really is nothing good (from a stability/quality) point of view around the Installer classes. They are basically slightly improved SelfReg. Best thing is to not have any CustomActions... after that, writing them to be data driven is the next best thing... can't do that with Installer cl

[WiX-users] Bootstrap Packages in WIX

2009-02-17 Thread Anweshi D
 Hi   The prerequisites for my application are .Net Framework 2.0, CLRTypes and Management Objects objects. I have used Bootstrap Packages for these and included them in the WIX project file. It creates the folders for every prerequisite and the SETUP.EXE file along with SETUP.MSI file. I would

Re: [WiX-users] Feature request: extending PermissionEx element with inheritance option

2009-02-17 Thread Rob Mensching
I think this feature request is already open. If not, it has been asked before and someone forgot to open the request. Yan Sklyarenko wrote: > Hello WiX developers, > > I'm going to file a feature request and would like to verify if it's > worth registering. > > The actual custom action, which Pe

Re: [WiX-users] Passing data between deferred custom actions

2009-02-17 Thread Rob Mensching
Most of the WiX toolset CustomActions do this. Eitan Behar wrote: > Does not look like fun, but it's doable ! Thanks ! > > Etian > > > On Tue, Feb 17, 2009 at 3:38 PM, Christopher Painter < > chr...@deploymentengineering.com> wrote: > > >> You'll want to look at the CustomActionData class in DT

Re: [WiX-users] What keeps borking my ICE validation by registering VBScript and JScript under HKCU?

2009-02-17 Thread Rob Mensching
My understanding was that there are many bad guys. Anthony Wieser wrote: > Heath Stewart reports the solution here, but I find this frustrating that > every now and then, I go to build and suddenly I can't, getting light.exe > errors. As I don't build every day, I'm not sure what's registering th

Re: [WiX-users] Modify existent txt file (hosts) during the installation - any standard approach for this?

2009-02-17 Thread Rob Mensching
You'll need a CustomAction the text file is not an ini or xml file. Yan Sklyarenko wrote: > Hello WiX community, > > My question is probably rhetorical, but I failed to find more or less > meaningful answer throughout the net. > I need to modify the existent txt file during install. It is hosts fi

Re: [WiX-users] Updating full package

2009-02-17 Thread Rob Mensching
Yes it is required: http://blogs.msdn.com/robmen/archive/2004/12/08/278746.aspx has my guesses. Michael Herger wrote: > Reading the tutorial at http://www.tramontana.co.hu/wix/lesson4.php once > again, I'm even more confused: "You have to [do a major upgrade] when you > change the name of the .

Re: [WiX-users] Very slow performance running SQL Scripts

2009-02-17 Thread Rob Mensching
The SQL CustomAction code processes the scripts and removes all the comments and GO statements and other stuff that can't be fed directly to SQL. If you have a very large SQL Script that takes time. I noted in another thread that this code needs some serious TLC. Something to revisit in WiX v

Re: [WiX-users] LaunchConditions and FindRelatedProducts

2009-02-17 Thread Rob Mensching
I see that you already filed a bug. If there are any patching implications to re-sequencing actions we will have move this to WiX v4. Neil Sleightholm wrote: > I can't think of any relationship between AppSearch and > FindRelatedProducts so I would think it wouldn't matter on their order > but I

Re: [WiX-users] Ngenning with NetFx and ProgressText

2009-02-17 Thread Rob Mensching
I thought NGen was done in the background with a separate process. By marking NGen pri-0 you've probably just slowed down the Windows Installer's "Removing backup files" due to disk contention. I could remember the NGen stuff wrong though... Glenn Jones wrote: > Hi, > > We have a WiX installe

Re: [WiX-users] WiX 3.0: how to create Quick Launch shortcut and Desktop shortcut?

2009-02-17 Thread Rob Mensching
Chances are the folders aren't empty so the RemoveFolder won't end up doing anything. However, this seems like one of those cases to document and ignore the ICE advice. Trying to remove system folders seems to trump the (IMHO) blind ICE. Little Forest wrote: > Thanks Rob for your reply. > > I

Re: [WiX-users] How to skip a custom action when feature notselected

2009-02-17 Thread Joe Osman
Thanks a lot Michael you've been very helpful ! Michael Osmond wrote: Joe & is a feature-action, and ! Is the current feature state, so I am checking both the existing state and what the installer is going to do (ie IF (Not Installed and Not Going to Be Installed). In this case I want the CONF

Re: [WiX-users] How to skip a custom action when feature notselected

2009-02-17 Thread Michael Osmond
Joe & is a feature-action, and ! Is the current feature state, so I am checking both the existing state and what the installer is going to do (ie IF (Not Installed and Not Going to Be Installed). In this case I want the CONFIGURE IIS to run both on install, upgrade and repair. I often use the c

Re: [WiX-users] How to skip a custom action when feature notselected

2009-02-17 Thread Joe Osman
Thanks Michael, it worked ! One question: I have noticed that you've used &MainComponent and !MainComponent Can you tell me what's the difference between the two and is it important to use two of them together? Thanks. Michael Osmond wrote: Joe Try looking at the SKIPCONFIGUREIIS property (

Re: [WiX-users] How to skip a custom action when feature not selected

2009-02-17 Thread Michael Osmond
Joe Try looking at the SKIPCONFIGUREIIS property (its part of WIX), this is how I stop the installer from doing the IIS Custom action if MainComponent is not selected. -Or

[WiX-users] How to skip a custom action when feature not selected

2009-02-17 Thread Joe Osman
My installer creates a website during the product installation. I would like to add a feature to the installer to enable the user to skip the website creation and I thought about using something similar to that: NOT Installed AND But I get an error message saying that a Custom element must

Re: [WiX-users] sql:SqlDatabase drops database on major upgrade

2009-02-17 Thread Michael Osmond
Thanks for the update Joe, good to see it worked. I had not considered the issue of releasing the database, you may find this is because the SqlString is associated with the database itself. But it will also make sure any users of the database are kicked off. One alternate to using the USE [Maste

Re: [WiX-users] sql:SqlDatabase drops database on major upgrade

2009-02-17 Thread Joe Osman
Thanks Michael, I have it working now though I had make a few modifications in your code: the REMOVE property was set to ALL on a major upgrade as well as on uninstall so I added another property to check whether it's a product upgrade - I only want to drop the database on an uninstall and nor

Re: [WiX-users] WiX 3.0 + MSBuild Issues

2009-02-17 Thread Alex Ivanoff
Where is this snippet from? Your build script? As I said, this should be in the wixproj file, and this is how you call it: -Original Message- From: Doran Wellnitz [mailto:dor...@microsoft.com] Sent: Tuesday, February 17, 2009 17:20 To: General discussion for Windows Installer XML tools

[WiX-users] Create Read share

2009-02-17 Thread Amit Ravat
I tried creating writable share which works but not able to create readonly share. Am I missing something? -- Open Source Business Conference

Re: [WiX-users] WiX 3.0: how to create Quick Launch shortcut and Desktop shortcut?

2009-02-17 Thread Little Forest
Thanks Rob for your reply. I did read that post you made. Actually, I'm using that for our uninstall shortcut. Thanks for that. For the QuickLaunch, however, I do have "RemoveFolder" in the component. But I still get ICE64 error. Here I'd like to post my code again:

Re: [WiX-users] WiX 3.0 + MSBuild Issues

2009-02-17 Thread Doran Wellnitz
Were you able to actually get that working? I just tried that approach, but I get the exact same behavior. I think that makes sense since after the properties are calculated, you still end up with the same string value (DefineConstants=Name1=Value1;Name2=Value2 and only the first pair is being

Re: [WiX-users] Custom Installer Question.

2009-02-17 Thread Wilson, Phil
Visual Studio 2008 setup&deployment projects changed - they now generate custom actions with no impersonation, but that can come with its own set of issues for people who want impersonation. But still you're right in general - they don't give you a choice of where custom actions get called or wh

Re: [WiX-users] Per user installation HKCU registry keys remain after un-installation..

2009-02-17 Thread John Nannenga
I figured it out. It was classic user error. -Original Message- From: John Nannenga [mailto:john.nanne...@microsoft.com] Sent: Tuesday, February 17, 2009 4:54 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Per user installation HKCU registry keys remain after un-installa

[WiX-users] Per user installation HKCU registry keys remain after un-installation..

2009-02-17 Thread John Nannenga
I'm working on deployment of a managed Word Add-in. Managed Word Add-Ins in Office 2007 are registered under the HKCU registry hive, hence I'm creating a per-user installation. My question is regarding the HKCU registry keys-they are not being removed during product uninstallation... Installa

Re: [WiX-users] WiX 3.0 + MSBuild Issues

2009-02-17 Thread Alex Ivanoff
This is what I come up with after reading the posts. Lets say you have two properties to overwrite: BuildNumber and RevisionNumber. In wixproj file: Then instead of overwriting DefineConstants you overwrite individual properties. -Original Message

Re: [WiX-users] WiX 3.0 + MSBuild Issues

2009-02-17 Thread Doran Wellnitz
Hello, I've reviewed both links and unfortunately I haven't been able to resolve my issue. The second link doesn't appear to be related to my specific issue. The first link offers a work-around, but it looks like it was never confirmed by anyone. After trying their method (replacing semi-colo

Re: [WiX-users] build wix on win xp

2009-02-17 Thread Neil Sleightholm
Take a look here http://neilsleightholm.blogspot.com/2008/10/how-to-create-wix-build-mach ine.html I think I got everything but if not please let me know. Neil -Original Message- From: Andreas Owen [mailto:ao...@1eeurope.ch] Sent: 17 February 2009 16:34 To: wix-users@lists.sourceforge.ne

Re: [WiX-users] Custom Installer Question.

2009-02-17 Thread Christopher Painter
Well I'd get rid of Visual Studio Deployment projects. For example VDPROJ can only schedule deferred custom actions and for some silly reason it only scheduels them as Imersonate instead of NoImpersonate. This causes problems on Vista with UAC enabled. But if you want to stay with VDRPOJ, you

Re: [WiX-users] How to install VC++ redistributable package at the beginning of installation?

2009-02-17 Thread Clegg, Ian (Harvey Nash)
I believe it's also possible to statically link the CRT into your DLL to remove the runtime dependency... -Original Message- From: Bob Arnson [mailto:b...@joyofsetup.com] Sent: 17 February 2009 16:17 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] How to

Re: [WiX-users] How to install VC++ redistributable package at the beginning of installation?

2009-02-17 Thread ACKH
I recommend that you statically link the runtime into your custom action dll. That way you don't need to deploy anything to run the custom action -- View this message in context: http://n2.nabble.com/How-to-install-VC%2B%2B-redistributable-package-at-the-beginning-of-installation--tp2340253p234

Re: [WiX-users] How to install VC++ redistributable package at the beginning of installation?

2009-02-17 Thread Bob Arnson
anwesha.m wrote: > However, I require that the VC++ dlls get installed in the very beginning. > At the first dialog in the MSI itself we are using VC++ custom actions and > if we use merge modules the VC++ rutime dlls are not available at the time > of the first dialog. > > My first custom action i

Re: [WiX-users] netfx:NativeImage action issues

2009-02-17 Thread Bob Arnson
MatjazR wrote: > I would like to set the priority of netfx:NativeImage action from outside > (as a MSI property). Is this possible in any way? > It's not directly supported, though you could write an immediate custom action to modify the NetFxNativeImage table. > Is it possible to disable the

Re: [WiX-users] How to get VS90_PROJECTTEMPLATES_DIR path

2009-02-17 Thread Bob Arnson
Throndorin wrote: > In one of the .wxs files is VS90_PROJECTTEMPLATES_DIR and some other macros > used, and I'm sure the installer knows how to resolve this to a real path. > > Is there a good way to get this path information? > From WiX.chm: Using WixVSExtension Properties or Custom Ac

Re: [WiX-users] WiX-users Digest, Vol 33, Issue 85

2009-02-17 Thread Bob Arnson
Dane Anderson (Volt) wrote: > WiX 3.0.3412.0 (according to the documentation that was installed with it) > V3.0 has the Certificate element in the IIS extension, http://wix.sourceforge.net/manual-wix3/iis_xsd_certificate.htm. And your build is an antique; you'll very likely need a recent buil

Re: [WiX-users] Install advice needed on helper files

2009-02-17 Thread Bob Arnson
MacDiarmid, James D wrote: > How would I go about installing this stuff? > You can only do it from an .exe; MSI doesn't allow multiple installation transactions to be active at once. -- sig://boB http://joyofsetup.com/

Re: [WiX-users] Edit control

2009-02-17 Thread Bob Arnson
Lough, Norman wrote: > I've tried the above (and without the &) but cannot get anything to > appear. I intend to use the corresponding property to edit an installed > config file. Any ideas as to why the text doesn't show? > Because MSI ignores the text if there's a property attached. -- sig:

Re: [WiX-users] Using util extension in include file.

2009-02-17 Thread Bob Arnson
Jason Person (TEKsystems) wrote: > Hi, I am having a problem using util:XmlConfig from an include file, it seems > like the namespace declaration isn't seen by the stuff in the include file > even though I declare it in the tag for the main file. You also need to declare it in the included fi

Re: [WiX-users] build wix on win xp

2009-02-17 Thread Bob Arnson
Andreas Owen wrote: > I'm trying to compile wix 3.0x on win xp vs2005 & 2008 machine. You need to start with a checkout from CVS; the source .zips don't include large binaries. -- sig://boB http://joyofsetup.com/ --

Re: [WiX-users] build wix on win xp

2009-02-17 Thread Andreas Owen
I found out that ist something to do with sandcastle and dtf. I installed sandcastle & builder to external\sand... where the make file is but its still not working. What am I doing wrong? -- Open Source Business Conferen

[WiX-users] Edit control

2009-02-17 Thread Lough, Norman
I've created a custom control and want to be able to populate an edit box with some default text I've tried the above (and without the &) but cannot get anything to appear. I intend to use the corresponding property to edit an installed config file. Any ideas as to why the text doesn't sho

Re: [WiX-users] Updating full package

2009-02-17 Thread Michael Herger
Neil, Thanks for your feedback. I think I'm ready to bite the bullet and go the "always do a major upgrade" way. > I major upgrade can do a "remove everything and reinstall" it depends where > RemoveExistingProducts is scheduled. In my example it will remove everything > before installing the

[WiX-users] Install advice needed on helper files

2009-02-17 Thread MacDiarmid, James D
Ok I'm not sure if that's the right term - Helper Files I have some separate installers, both in exe and MSI format, and I'm not sure how I would go about installing them. I am planning to install them on Windows 2003. I'm thinking some of these I may not need to install. Anyway, here is what I

Re: [WiX-users] Custom Installer Question.

2009-02-17 Thread Henk Roos
Hi Christopher, Thanks for you're reply. I think in the future we'll (Aricent) definitely have to move to using something like the DTF. Currently we have several visual studio setup projects (about 20) that all needs to be deployed to our customer, and almost all have them have custom 3 or 4 i

[WiX-users] Using util extension in include file.

2009-02-17 Thread Jason Person (TEKsystems)
Hi, I am having a problem using util:XmlConfig from an include file, it seems like the namespace declaration isn't seen by the stuff in the include file even though I declare it in the tag for the main file. Here is basic version of what I have now, with all the irrelevant details removed: Ma

Re: [WiX-users] Consolidating components

2009-02-17 Thread MacDiarmid, James D
Ok Thanks for the info! Jim -Original Message- From: Wendell Joost [mailto:wende...@gmail.com] Sent: Monday, February 16, 2009 4:57 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Consolidating components Doing so has the potential to mess up you

Re: [WiX-users] WiX-users Digest, Vol 33, Issue 85

2009-02-17 Thread Dane Anderson (Volt)
Bob Arnson Wrote: >Dane Anderson (Volt) wrote: >> I am trying to use the Certificate element to install a certificate file >> (.pfx). The problem is >> that Wix barfs on it. >> When I try building the MSI, I get a message about the Certificate element >> being unexpected. The >> Sourceforge >> d

Re: [WiX-users] Passing data between deferred custom actions

2009-02-17 Thread Eitan Behar
Does not look like fun, but it's doable ! Thanks ! Etian On Tue, Feb 17, 2009 at 3:38 PM, Christopher Painter < chr...@deploymentengineering.com> wrote: > You'll want to look at the CustomActionData class in DTF as described here: > > http://www.mail-archive.com/wix-users@lists.sourceforge.net/

Re: [WiX-users] Custom Installer Question.

2009-02-17 Thread Yan Sklyarenko
That DTF docs Christopher mentioned contain an article called "About InstallUtil", which describes in more detail why you'd better not use it. -- Yan -Original Message- From: Christopher Painter [mailto:chr...@deploymentengineering.com] Sent: Tuesday, February 17, 2009 3:41 PM To: Genera

Re: [WiX-users] Custom Installer Question.

2009-02-17 Thread Christopher Painter
It's possible, but you really, really, really don't want to do that. Check out WiX's DTF (Deployment Tools Foundation) instead. If you search my blog for DTF you'll find plenty of content describing it and you'll also find a DTF SDK manual in your start menu under WiX. Christopher Painter, Au

Re: [WiX-users] Passing data between deferred custom actions

2009-02-17 Thread Christopher Painter
You'll want to look at the CustomActionData class in DTF as described here: http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg17875.html In a nutshell: In your immeadiate custom action, you instantiate the class, stuff it with data and then serialize it out to a property. In you

[WiX-users] Custom Installer Question.

2009-02-17 Thread Henk Roos
Hi there, I would like to know if it is possible to create a custom action in WiX that will run a Managed Custom Installer that extends the System.Configuration.Install.Installer class, or is it only the InstallUtil.exe command that understands how to run managed custom installers. Regards, H

Re: [WiX-users] Passing data between deferred custom actions

2009-02-17 Thread Eitan Behar
DTF C# On Tue, Feb 17, 2009 at 2:05 PM, Christopher Painter < chr...@deploymentengineering.com> wrote: > What language is the CA's written in? > > Christopher Painter, Author of Deployment Engineering Blog > Have a hot tip, know a secret or read a really good thread that deserves > attention? E

Re: [WiX-users] Passing data between deferred custom actions

2009-02-17 Thread Christopher Painter
What language is the CA's written in? Christopher Painter, Author of Deployment Engineering Blog Have a hot tip, know a secret or read a really good thread that deserves attention? E-Mail Me --- On Tue, 2/17/09, Eitan Behar wrote: > From: Eitan Behar > Subject: [WiX-users] Passing data betwe

Re: [WiX-users] Extract Binaries at Install Time

2009-02-17 Thread Christopher Painter
Try something like this: //CustomActions is the name of your class containing your custom action declarated methods. string baseDir = new FileInfo( Assembly.GetAssembly(typeof(CustomActions)).Location ).DirectoryName; Process.Start( Path.Combine(baseDir, "WindowsFormsApplication1.exe")); Chris

[WiX-users] netfx:NativeImage action issues

2009-02-17 Thread MatjazR
Hi. I have two questions for netfx:NativeImage action. 1. I would like to set the priority of netfx:NativeImage action from outside (as a MSI property). Is this possible in any way? The following does not work, because it is expecting Priority attribute as integer. 2. Is it p

[WiX-users] How to install VC++ redistributable package at the beginning of installation?

2009-02-17 Thread anwesha.m
Hello All, I am using MergeModules to install VC++ 9.0 Redistrbutable package through our MSI. For this i am using the follwing elements: However, I require that the VC++ dlls get installed in the very beginning. At the first dialog in the MSI itself we are using VC++ cust

[WiX-users] Feature request: extending PermissionEx element with inheritance option

2009-02-17 Thread Yan Sklyarenko
Hello WiX developers, I'm going to file a feature request and would like to verify if it's worth registering. The actual custom action, which PermissionEx element results in, called ExecSecureObjects considers SUB_CONTAINERS_AND_OBJECTS_INHERIT option the best for folders and NO_INHERITANCE for e

Re: [WiX-users] Updating full package

2009-02-17 Thread Neil Sleightholm
Michael I major upgrade can do a "remove everything and reinstall" it depends where RemoveExistingProducts is scheduled. In my example it will remove everything before installing the new stuff - there is more information here: http://www.joyofsetup.com/2008/12/30/paying-for-upgrades/. Neil

Re: [WiX-users] Updating full package

2009-02-17 Thread Michael Herger
Reading the tutorial at http://www.tramontana.co.hu/wix/lesson4.php once again, I'm even more confused: "You have to [do a major upgrade] when you change the name of the .msi file for any reason.". But who on earth would distribute a small update to an existing product with the same .msi file na

[WiX-users] How to get VS90_PROJECTTEMPLATES_DIR path

2009-02-17 Thread Throndorin
Hi I'm writing a tool which should check a installation using msi (wix). I have the wix files (.wxs, .wxi) as base and check the installation against this files. In one of the .wxs files is VS90_PROJECTTEMPLATES_DIR and some other macros used, and I'm sure the installer knows how to resolve thi

Re: [WiX-users] Updating full package

2009-02-17 Thread Michael Herger
Hi Alexander, thanks for your feedback. Yes, my example is not very helpful... But I've gone through so many version and tests - I don't know what to post. The latest way I've been testing is Neil's (http://neilsleightholm.blogspot.com/search/label/WiX). But in this case I'd end up with X copi

[WiX-users] Passing data between deferred custom actions

2009-02-17 Thread Eitan Behar
Hi, Is there a proper method to pass data between deferred custom actions ? I have a bunch of chained custom actions and need to pass data between them, actually, just a boolean value "telling" the rest of the ca whether to continue. Thanks, Eitan

[WiX-users] What keeps borking my ICE validation by registering VBScript and JScript under HKCU?

2009-02-17 Thread Anthony Wieser
Heath Stewart reports the solution here, but I find this frustrating that every now and then, I go to build and suddenly I can't, getting light.exe errors. As I don't build every day, I'm not sure what's registering these under HKCU, but something is. I don't remember installing anything but w

[WiX-users] build wix on win xp

2009-02-17 Thread Andreas Owen
I'm trying to compile wix 3.0x on win xp vs2005 & 2008 machine. I installed all the sdks which are listed ob the wix build site but I'm getting following output (last few lines): winterop: core.inc: [exec] Microsoft (R) Build Engine Version 3.5.30729.1 [exec] [Microsoft .NET Framewo