Re: [WiX-users] Question about the upgrade code

2010-07-01 Thread Rob Mensching
The Upgrade table needs to be authored correctly as well. What does the verbose log file say? On Thu, Jul 1, 2010 at 11:28 PM, Ivo Beltchev wrote: > Hi > > I am upgrading my product from a Visual Studio setup project (version > 1.9.8) to WiX (version 2.7.5). I want the new WiX version to be able

[WiX-users] Question about the upgrade code

2010-07-01 Thread Ivo Beltchev
Hi I am upgrading my product from a Visual Studio setup project (version 1.9.8) to WiX (version 2.7.5). I want the new WiX version to be able to upgrade the old one. I also have 2 builds - 32 and 64 bits. For 32 bits there are no problems. I install version 1.9.8 first, then upgrade to 2.7.5 a

Re: [WiX-users] and question

2010-07-01 Thread Blair
If the action is sequenced before InstallFinalize it must be deferred or it will run before the files are actually written to disk or the service is actually created (since both of those happen in the script). If it is set to run without impersonation (a setting which is only applicable for non-im

Re: [WiX-users] Upgrade msi with removed components

2010-07-01 Thread Blair
It is, if there aren't "orphaned" products left behind. First step: what does the verbose log from the upgrade say? -Original Message- From: Stelios Kyprou [mailto:stelios.kyp...@formicary.net] Sent: Thursday, July 01, 2010 10:06 AM To: General discussion for Windows Installer XML toolse

Re: [WiX-users] and question

2010-07-01 Thread Elfe Xu
Hi Blair, Would you please help me to understand why I need to make the CA as deferred without impersonation? Since I want the install to success no matter whether the service started successfully or failed, I just run StartMyService CA after InstallFinalize. Do you see any problem of doing so?

[WiX-users] Auto Restart on Install

2010-07-01 Thread Michael Osmond
Hello Is anyone aware of a setting in Windows that forces a Windows restart after any installation? We have had an instance with a customer where the server restarted after an upgrade, from the logs the restart looks like it was initiated by the user. The update that was run should not requi

[WiX-users] Getting Progress of Rollback

2010-07-01 Thread Andy Glass
I realize that this isn't a WiX-specific question, but I figure someone here may have run into the same issue: I've written a bootstrapper to install our msis, and am using MsiSetExternalUI to get the status updates/progress for the bootstrapper's UI. The problem is that when the installation

Re: [WiX-users] Windows 7 Custom Action Registry problem

2010-07-01 Thread Rob Mensching
It seems so wrong to spend so much time trying to get a registry key when the Windows Installer will do it all for you plus handle rollback. On Thu, Jul 1, 2010 at 1:59 PM, Kurt Jensen wrote: > Thanks! > > I think the real problem is that the CA is being launched as a 32-bit > process (of course

Re: [WiX-users] Error referencing WIXlibs

2010-07-01 Thread Rob Mensching
candle.exe (or light.exe) is probably throwing an exception. Try debugging in and seeing what it says. On Thu, Jul 1, 2010 at 10:40 AM, Manson, Daniel (H USA) < daniel.man...@siemens.com> wrote: > Any ideas? > > > > > > From: Manson, Daniel (H USA) > Sent: Tuesday

Re: [WiX-users] Windows 7 Custom Action Registry problem

2010-07-01 Thread Kurt Jensen
Thanks! I think the real problem is that the CA is being launched as a 32-bit process (of course). now that I know the problem I have modified my application code to first look in the "normal" part of the registry, then look in Wow6432Node if the key is not found. that way it works on a 32-bi

Re: [WiX-users] Windows 7 Custom Action Registry problem

2010-07-01 Thread ivo
Here's one example how to do it with P/Invoke: http://www.roelvanlisdonk.nl/?p=915 Kurt Jensen wrote: > That's it! > > So far I cannot find an equivalent in .NET but at least now I can track down > the communication breakdown... > > Thanks to all! > > > -Original Message- >

Re: [WiX-users] Windows 7 Custom Action Registry problem

2010-07-01 Thread Kurt Jensen
so, the WiX DTF is always 32-bit? even the 64-bit install? -Original Message- From: Wilson, Phil [mailto:phil.wil...@invensys.com] Sent: Thursday, July 01, 2010 2:16 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Windows 7 Custom Action Registry pr

Re: [WiX-users] Windows 7 Custom Action Registry problem

2010-07-01 Thread Wilson, Phil
Windows Installer does that, and it looks at the bitness of the code and (if necessary) launches a matching-bitness msiexec.exe process to call the Dll (which is how I think DTF CAs start up). That's why the only custom action type that has a "run in 64-bit mode" option is a script type because

Re: [WiX-users] Windows 7 Custom Action Registry problem

2010-07-01 Thread Kurt Jensen
Could WiX be launching the CA as in 32-bit mode? -Original Message- From: Kurt Jensen [mailto:kurt.jen...@ophir-spiricon.com] Sent: Thursday, July 01, 2010 1:34 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Windows 7 Custom Action Registry problem

Re: [WiX-users] Windows 7 Custom Action Registry problem

2010-07-01 Thread Wilson, Phil
MSI doesn't directly support managed code custom actions, so that means that somewhere in the DTF stuff there has to be that separate process to host the .NET Framework and call your managed code. That's probably what's 32-bit, so the question is about whether DTF supports 64-bit custom actions,

Re: [WiX-users] Windows 7 Custom Action Registry problem

2010-07-01 Thread Kurt Jensen
yeah, I thought about that. it is a C# custom action built for the "Any CPU" platform running on a 64-bit OS in a 64-bit WiX install. I don't know how it could possibly be 32-bit. -Original Message- From: Simon Dahlbacka [mailto:simon.dahlba...@gmail.com] Sent: Thursday, July 01, 2010

Re: [WiX-users] Windows 7 Custom Action Registry problem

2010-07-01 Thread Simon Dahlbacka
that seems to indicate that your custom action is running as 32-bit, if you run them as 64-bit things should just work.. On Thu, Jul 1, 2010 at 10:09 PM, Kurt Jensen wrote: > That's it! > > So far I cannot find an equivalent in .NET but at least now I can track down > the communication breakdown

Re: [WiX-users] Windows 7 Custom Action Registry problem

2010-07-01 Thread Kurt Jensen
That's it! So far I cannot find an equivalent in .NET but at least now I can track down the communication breakdown... Thanks to all! -Original Message- From: i...@roadrunner.com [mailto:i...@roadrunner.com] Sent: Thursday, July 01, 2010 11:23 AM To: General discussion for Windows I

Re: [WiX-users] How to uninstall the program if I made such mistake

2010-07-01 Thread Elfe Xu
SUPER! This works! Thanks! -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-uninstall-the-program-if-I-made-such-mistake-tp5242524p5244519.html Sent from the wix-users mailing list archive at Nabble.com. --

Re: [WiX-users] Error referencing WIXlibs

2010-07-01 Thread Manson, Daniel (H USA)
Any ideas? From: Manson, Daniel (H USA) Sent: Tuesday, June 29, 2010 11:58 AM To: wix-users@lists.sourceforge.net Subject: Error referencing WIXlibs After rebuilding WIX 3.0.5419.0 locally without errors I am unable to reference the WixUIExtension.dll, no

Re: [WiX-users] Removing IIS Virtual Dirs

2010-07-01 Thread James Green
Hi Again, We have been doing a little more poking around with some test installers we have created that make use of the WixIIsExtension library and we're seeing some odd behaviour. The latest installer that I have been working on seems to work as expected on IIS 5.1 (XP) and IIS 7 on Server 2008

Re: [WiX-users] Windows 7 Custom Action Registry problem

2010-07-01 Thread ivo
> also, this solution was developed by another less install oriented > programmer for the original vsproj under VS2008. I moved the code as-is > over to WiX on a 32-bit install and it worked. now we are adding a > 64-bit install. if I change to having Windows Installer do the job then > I really

Re: [WiX-users] Windows 7 Custom Action Registry problem

2010-07-01 Thread Kurt Jensen
Yes, I have now added that. But in my CA I need to add, delete, and write values under that key. I am getting HKCU instead. > Windows Installer does a fantastic job writing registry entries and removing them later on under all sorts of variable influences I don't know about "under all sorts o

[WiX-users] Upgrade msi with removed components

2010-07-01 Thread Stelios Kyprou
Hello wix users, a quick question! If i create my msi with a major version upgrade (assume i'm doing everything correctly, i.e change ProductCode, PackageCode, leave Upgradecode intact, change version number, add in InstallExecuteSequence), and leave the Component Guids the same, and only remo

Re: [WiX-users] Windows 7 Custom Action Registry problem

2010-07-01 Thread Pally Sandher
"I am trying to create HKLM\Software\Spiricon\Version5\" You can do that with simple RegistryValue and/or RegistryKey elements in WiX. Why do you need a Custom Action? Palbinder Sandher Software Deployment & IT Administrator T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com

[WiX-users] Is there a bug handling VSTEMPLATE files for WiX?

2010-07-01 Thread Anthony Wieser
I've created a Wix project, and set up some additional items for my project. Included is a folder named bitmaps, containing banner.jpg and dialog.jpg when I then export a vstemplate file, and add it as a user item, when I create a new project based on the template the bitmaps are corrupted (get

Re: [WiX-users] Windows 7 Custom Action Registry problem

2010-07-01 Thread Kurt Jensen
> Have you set Execute="deferred" on CustomAction and scheduled it between InstallInitialize and InstallFinalize ? yes and yes > Are the installer and machine it is running on both 32-bit ? both are 64-bit. I am trying to create HKLM\Software\Spiricon\Version5\ - Spiricon or Version5 may not e

Re: [WiX-users] Windows 7 Custom Action Registry problem

2010-07-01 Thread Blair
Whenever I see someone trying to do something that a built-in action does quite well, I recommend this concept: http://www.joyofsetup.com/2007/07/01/semi-custom-actions/ Why reinvent the wheel? Windows Installer does a fantastic job writing registry entries and removing them later on under all sor

Re: [WiX-users] Windows 7 Custom Action Registry problem

2010-07-01 Thread Peter Shirtcliffe
There might be some registry redirection or virtualisation occurring. Have you set Execute="deferred" on CustomAction and scheduled it between InstallInitialize and InstallFinalize ? Are the installer and machine it is running on both 32-bit ? -Original Message- From: Kurt Jensen [mailto:

Re: [WiX-users] Windows 7 Custom Action Registry problem

2010-07-01 Thread Bryan Reich
Can you give examples of the specific keys you are attempting to write? Vista and Win7 created the concept of protected registry nodes that are "owned" by Windows and they don't let others mess with them, but for back compat they swallow the related errors so it only causes silent failures. That

Re: [WiX-users] Windows 7 Custom Action Registry problem

2010-07-01 Thread FrankenInUSA
IMHO, that's an issue with Windows 7 UAC and Registry Virtualization Please see: http://msdn.microsoft.com/en-us/library/aa965884(VS.85).aspx -- Best regards, Andreas mailto:frankenin...@gmail.com Kurt Jensen wrote: > I h

[WiX-users] Windows 7 Custom Action Registry problem

2010-07-01 Thread Kurt Jensen
I have a custom action that needs to create entries in the registry under HKEY_LOCAL_MACHINE. The code is written in C# and uses Registry.LocalMachine.CreateSubKey(). I added some logging that tells me that the return value is not null and the custom action does not throw an exception. But the k

[WiX-users] Antw: Define culture in .wxs File?

2010-07-01 Thread Johannes Hetzer
Ah! I just figured out that it works like this: KR >>> "Johannes Hetzer" 01.07.10 15.56 Uhr >>> Hi, is it possible to define this "-cultures:de-de -loc loc_wixext_de-de.wxl" in the .wxs file? If it's not how is the smartest way to integrate the culture if you develop your WiX pro

[WiX-users] Define culture in .wxs File?

2010-07-01 Thread Johannes Hetzer
Hi, is it possible to define this "-cultures:de-de -loc loc_wixext_de-de.wxl" in the .wxs file? If it's not how is the smartest way to integrate the culture if you develop your WiX project with VS2010? KR, Johannes -

Re: [WiX-users] Best Practices - Using "*" for GUID automation

2010-07-01 Thread Andy Clugston
Alright, thanks. On Tue, Jun 29, 2010 at 11:14 PM, Rob Mensching wrote: > No problems if you use a major upgrade and schedule the upgrade early. > > Standardizing on Component/@Guid="*" is fantastic except when you can't use > it. The binder will tell you when that is. Then you're stuck with > sp

Re: [WiX-users] Property Element Question

2010-07-01 Thread Christopher Painter
I didn't think about it from that angle.  All things considered, I can see how it's an understandable choice. Chris 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 - Original Message

Re: [WiX-users] VS2010 automated build

2010-07-01 Thread James Green
I was just about to ask the same question! -Original Message- From: wix-users-boun...@lists.sourceforge.net [mailto:wix-users-boun...@lists.sourceforge.net] On Behalf Of Stelios Kyprou Sent: 01 July 2010 12:59 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-use

Re: [WiX-users] VS2010 automated build

2010-07-01 Thread Stelios Kyprou
Good stuff! @John: A Paraffin question: What if i want to exclude files lets say with extension: .vshost.exe, but not .exe files? I think i am not able to do that am i? Stelios Rob Mensching wrote: > FYI: given the issues with auto-harvesting in WiX v3.5, that feature will be > disabled before s

Re: [WiX-users] How to uninstall the program if I made such mistake

2010-07-01 Thread Yan Sklyarenko
You can try to find the Product Code of this installation in registry (under SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall) and run the uninstall like this: Msiexec /x {PRODUCT-CODE-GUID-HERE} IGNORE_PRE_CHECK=1 Hope this helps, -- Yan -Original Message- From: Elfe Xu [mailto:e

[WiX-users] How to uninstall the program if I made such mistake

2010-07-01 Thread Elfe Xu
Hi, I'm working on some setup project. I built my project, run the msi, and get the product installed. I made some change on the code, rebuilt it again, run the msi, and got error "another version is already installed, please use ARP ..." I went to the ARP in control panel, find my product, click

Re: [WiX-users] Removing IIS Virtual Dirs

2010-07-01 Thread James Green
Thanks for this Rob, will check the logs if I see this again. -Original Message- From: wix-users-boun...@lists.sourceforge.net [mailto:wix-users-boun...@lists.sourceforge.net] On Behalf Of Rob Mensching Sent: 01 July 2010 06:25 To: General discussion for Windows Installer XML toolset. Sub

Re: [WiX-users] Property Element Question

2010-07-01 Thread Blair
This is my personal opinion, since I didn't write that code. However, given what I have seen of the code, it seems quite reasonable (at least to me ;-) ). Because the property "TEST" may be found in a Condition, a formatted field, or who knows where else a reference to the item may be within the m