Re: [WiX-users] Launching an application at the end of Install (usingWIX V2)
Take a look at this chapter in this tutorial: http://www.tramontana.co.hu/wix/lesson8.php#8.6 -- Yan -Original Message- From: Naresh Jain [mailto:naresh.j...@microsoft.com] Sent: Thursday, February 26, 2009 8:05 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Launching an application at the end of Install (usingWIX V2) Hello, I have a requirement to launch an installed application at the end of the installation (when user clicks the Finish button). I see that there is a straightforward way to do this in Wix v3 but I don't see how to achieve it in Wix V2. If there are any examples/tutorials that show how to do this, I would appreciate a link to those. Thanks, Naresh -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Adding to the FilesInUse Dialog
It is only possible under Windows Vista. details in my comment here: http://sourceforge.net/tracker/?func=detailatid=642717aid=1989218group_id=105970 W dniu 2009-02-26 01:41, Dan Giambalvo pisze: I'm trying to figure out how to add to my installer's FilesInUse dialog. My Installer contains a custom action that requires a separate exe on the system not be running (firefox.exe.) Obviously I don't install firefox, and I don't touch it in any way obvious to the installer, so it doesn't know to check for it. What I want is to add firefox.exe to the FilesInUse dialog if it is running when the installer executes. I tried the CloseApplication element that WIX has, but that didn't seem to populate the FIU dialog, and instead simply made my installer request reboots. I then found some posts that referenced sending a INSTALLMESSAGE_FILESINUSE message from a custom action, but this resulted in two dialogs. The first contained my custom firefox request, and had exit/ignore/retry buttons. The second contained a file actually referenced in my MSI, and this had the correct Close Applications button. I have also looked into trying to directly modify the temporary FilesInUse table, but from what I read this isn't actually doable. Does anyone have any idea how I can get my file added to the FilesInUse dialog? Thanks! -Dan -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users . -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Delete folders
Something like this. You can iterate your paths to remove and generate appropriate elements (C#): //RemoveFile element XmlElement removeFileElement = document.CreateElement(RemoveFile); removeFileElement.SetAttribute(Id, propertyId + _FILES); removeFileElement.SetAttribute(Name, *.*); removeFileElement.SetAttribute(On, uninstall); removeFileElement.SetAttribute(Property, propertyId); and / or //RemoveFolder element XmlElement removeFolderElement = document.CreateElement(RemoveFolder); removeFolderElement.SetAttribute(Id, propertyId + _FOLDER); removeFolderElement.SetAttribute(On, uninstall); removeFolderElement.SetAttribute(Property, propertyId); As a result, you get the wix authoring similar to this: ... DirectoryRef Id=Themes Component Id=RemoveFiles Guid={81B6A3B9-FD37-4ec8-ACC5-7C8AB3B0FF1F} CreateFolder Directory=Themes / RemoveFile Id =CssFiles Name=*.* On=uninstall Directory=Themes/ RemoveFile Id=LINES_0_FILES Name=*.* On=uninstall Property=LINES_0 / RemoveFile Id=LINES_1_FILES Name=*.* On=uninstall Property=LINES_1 / ... RemoveFolder Id=Themes On =uninstall/ RemoveFolder Id=LINES_0_FOLDER On=uninstall Property=LINES_0 / RemoveFolder Id=LINES_1_FOLDER On=uninstall Property=LINES_1 / ... /Component /DirectoryRef ... Also, you might be interested in the RemoveFolderEx extension placed on Wix-contrib resource (http://www.codeplex.com/wixcontrib). But note that author marked it as medium production quality. Hope this helps. -- Yan -Original Message- From: sandun css [mailto:sandun...@gmail.com] Sent: Thursday, February 26, 2009 11:40 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Delete folders Hi Yan, Can I have some sample code please ? On Thu, Feb 26, 2009 at 2:35 PM, Yan Sklyarenko y...@sitecore.net wrote: Nothing predefined, only custom action. BUT, you should not do this - instead, create an automation once to generate a wix authoring containing all the directories/files to remove, and then include it into your project. -- Yan -Original Message- From: sandun css [mailto:sandun...@gmail.com] Sent: Thursday, February 26, 2009 7:37 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Delete folders I need to delete all the folders exist inside the install directory. (without specifing their names) RemoveFile, RemoveFolder elements need file and folder names to be specified. Is it possible to do this withour specifing the names ? On Wed, Feb 25, 2009 at 6:42 PM, Yan Sklyarenko y...@sitecore.net wrote: MSI supports this via RemoveFile table: http://msdn.microsoft.com/en-us/library/aa371201.aspx. WiX wraps this into RemoveFile and RemoveFolder elements (see docs on this). -- Yan -Original Message- From: sandun css [mailto:sandun...@gmail.com] Sent: Wednesday, February 25, 2009 10:45 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Delete folders Hi, When I uninstall my application, all the folders which were created after the installation remains without getting deleted. How can I delete those folders? Can't I delete all the folders exist in the Install directory ? If so, how to do it? Thanks, Sandun -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H
Re: [WiX-users] WixUI_Mondo and Custom Dialog/s.
This should help: http://neilsleightholm.blogspot.com/2008/08/customised-uis-for-wix.html http://neilsleightholm.blogspot.com/2008/08/customised-uis-for-wix.html Neil Neil Sleightholm X2 Systems Limited n...@x2systems.com mailto:n...@x2systems.com From: spsingam [mailto:siva.poobalasin...@gmail.com] Sent: Thu 26/02/2009 04:07 To: wix-users@lists.sourceforge.net Subject: [WiX-users] WixUI_Mondo and Custom Dialog/s. hi all, I am using WixUI Mondo as my UI during the installation. Now i have realised that i need to gather some user information, so i want to introduce a dialog. I might choose to use this information later. How do i do this ? Regards. :) -- View this message in context: http://n2.nabble.com/WixUI_Mondo-and-Custom-Dialog-s.-tp2387828p2387828.html Sent from the wix-users mailing list archive at Nabble.com. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] GenerateBootstrapper : setup.exe is unable to locate application file
Hi guys, My msi is in the same folder as the setup.exe. And the path specified by the setup.exe error message is correct and is the same path as the msi. Why it is unable to locate my msi? I am using 3.0.5020.0 after 3.0.4721.0 bootstrapper failed to work in the same way. My GenerateBootstrapper code as below, ItemGroup BootstrapperFile Include=Microsoft.Windows.Installer.3.1 ProductNameWindows Installer 3.1/ProductName /BootstrapperFile /ItemGroup Target Name=AfterBuild GenerateBootstrapper ApplicationFile=$(TargetPath) ApplicationName=Germanium Web BootstrapperItems=@(BootstrapperFile) ComponentsLocation=Relative CopyComponents=True OutputPath=$(OutputPath) Path=C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\/ /Target Thanks everyone for reading! Any help is appreciated! Best regards, Bob Lim Have a new Yahoo! Mail account? Kick start your journey by importing all your contacts! http://www.trueswitch.com/yahoo-sg -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Re-ordered cab files
I've compared the wixobj files from before I added the files and now - the only difference is the addition of the files... the declarations of the effected files in the effected cab are unchanged, so I don't see what can be edited to prevent this from happening :-( Thomas S. Trias wrote: It should be possible to just post-process the .wixobj using your favorite XML parser (assuming there are no binary streams in it). If there are binary streams in it, then I can really say what would happen if you just change the XML portion. Of course, one way around the issue is to compile the binary stream fragments as a separate .wixobj file and then link that in with the modified .wixobj. Should be easier than mucking with the MSI via the MSI API / COM classes / Interop (especially since the MSI type library doesn't play nice with the automagic RCW generation). Although, since the WiX classes already the MSI functions neatly wrapped and there are numerous script examples using the COM classes, maybe directly modifying the MSI wouldn't be so bad. Just a thought. Anyone foresee any particular dangers of modifying the .wixobj? Thomas S. Trias Senior Developer Artizan Internet Services http://www.artizan.com/ Original Message Subject: Re: [WiX-users] Re-ordered cab files From: John Nannenga john.nanne...@microsoft.com To: General discussion for Windows Installer XML toolset. wix-users@lists.sourceforge.net Date: 2/25/2009 12:04 PM I had similar problems a while back and the situation that set me over the edge was when we encountered absolutely zero install / WiX code changes but the file sequences were changing [tracked it down to an environment issue, versions of .Net installed on the machine]. I woke up one morning and noticed I was starting to go bald (and I'm not even that old); I figured enough was enough so I went for the brute force method of authoring process to ensure file sequences remained consistent between the releases. I spent a lot less time doing that than I did worrying about and attempting to manually cleanup file sequences. Haven't had the problem since. (Still missing the hair, though...) -Original Message- From: Gareth [mailto:gmor...@serif.com] Sent: Wednesday, February 25, 2009 11:38 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Re-ordered cab files The new elements are contained in a brand new WiX file that is #included at the end of my existing WXS project file. They are both in new components with seperate existing DirectoryRefs - it's as simple as it can get. They're in a newly defined CAB so as to not alter any existing CABs, and the merge modules themselves (the files that are moving around) are unchanged. I was convinced for a while that it had something to do with where in the WXS file the new components are being defined and so linking would reach them in a new order, but I've tried 'first' as well as 'last' with no improvement. It just makes no sense. I even tried adding the new filess to the problematic 3rd CAB with PatchOrder defines as 1 so they'd be at the end of the CAB - hopefully leaving the existing contents in the same place - but this had no positive effect. Neither version of the 3rd CAB are sorted in any recogniaseable way, they're just predictably randomly different from each other. John Nannenga wrote: Ref: http://msdn.microsoft.com/en-us/library/aa368060(VS.85).aspx -- SDK documentation pertaining to this issue. Where the rubber then meets the road [within WiX] is within your directory elements...if you have any file additions / removals within your directory table, that impacts file sequencing. [File sequencing can also be impacted based upon what version of .NET is loaded (many scars involved in that one)]. Sometimes, you can get by with using DirectoryRef elements for the file additions. If you have any merge modules outside of your control that added / removed files, you're close to being hosed. There are also some patch enhancements that were made within WiX to better assist with these types of issues (my knowledge of WiX 2.0 is getting shady, been in WiX 3.x for quite some time) using such tools as Torch and Pyro (not sure if they are available in Wix 2.0.5805.0 or not). If you're using the WI SDK way of building patches (Patchwiz, admin installs, etc...) and using DirectoryRef doesn't get the job done for you, you can author a process that 'fixes' the file sequencing between your two admin installs prior to patch generation. That's what I resorted to due to the .NET item I referenced earlier. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation
Re: [WiX-users] GenerateBootstrapper : setup.exe is unable to locate application file
I seem to remember that you'll want to use something like $(TargetFileName) instead of $(TargetPath) to avoid having the full path embedded inside the bootstrapper /Simon On Thu, Feb 26, 2009 at 12:56 PM, Bob Lim cbasic...@yahoo.com.sg wrote: Hi guys, My msi is in the same folder as the setup.exe. And the path specified by the setup.exe error message is correct and is the same path as the msi. Why it is unable to locate my msi? I am using 3.0.5020.0 after 3.0.4721.0 bootstrapper failed to work in the same way. My GenerateBootstrapper code as below, ItemGroup BootstrapperFile Include=Microsoft.Windows.Installer.3.1 ProductNameWindows Installer 3.1/ProductName /BootstrapperFile /ItemGroup Target Name=AfterBuild GenerateBootstrapper ApplicationFile=$(TargetPath) ApplicationName=Germanium Web BootstrapperItems=@(BootstrapperFile) ComponentsLocation=Relative CopyComponents=True OutputPath=$(OutputPath) Path=C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\/ /Target Thanks everyone for reading! Any help is appreciated! Best regards, Bob Lim Have a new Yahoo! Mail account? Kick start your journey by importing all your contacts! http://www.trueswitch.com/yahoo-sg -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Installer for an WebProject
I dont have a ComponentGroup in my generated file. To harvest the directory i call heat dir C:\Publish -out raw.wxs. The version of heat.exe is 3.0.4805.0 Did i make a mistake in the call of heat.exe? Von: Yan Sklyarenko [...@sitecore.net] Gesendet: Donnerstag, 26. Februar 2009 14:00 An: General discussion for Windows Installer XML toolset. Betreff: Re: [WiX-users] Installer for an WebProject When heat harvests the file system directory tree (at least, for harvest into fragment it is true), it also generates a ComponentGroup element, containing references to all the components harvested into this fragment. You can then add a ComponentGroupRef element into your feature to include the entire component set. Hope this helps. -- Yan -Original Message- From: Bahn Thomas [mailto:thomas.b...@cic-group.eu] Sent: Thursday, February 26, 2009 12:36 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Installer for an WebProject Hello, i would use WiX to create an installer for our Web-Application. But there a some things that confuse me. I have many Files and Folders that changes often. The Files and Folders should be automatic included into the installer. With the Harvester heat.exe i can generate a WiX-Source containing the complete Web Application. But how i can automatic include the many components into a feature? And another question: Is there no way to notice Directory Tags in a Component Tag? Only File Tags are allowed. When it is possible, i would create one component for an entry directory with subdirectorys. Thank in advance Thomas Bahn -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Installer for an WebProject
Try using -sfrag switch. And you can run heat /? For more info about it. -- Yan -Original Message- From: Bahn Thomas [mailto:thomas.b...@cic-group.eu] Sent: Thursday, February 26, 2009 3:45 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Installer for an WebProject I dont have a ComponentGroup in my generated file. To harvest the directory i call heat dir C:\Publish -out raw.wxs. The version of heat.exe is 3.0.4805.0 Did i make a mistake in the call of heat.exe? Von: Yan Sklyarenko [...@sitecore.net] Gesendet: Donnerstag, 26. Februar 2009 14:00 An: General discussion for Windows Installer XML toolset. Betreff: Re: [WiX-users] Installer for an WebProject When heat harvests the file system directory tree (at least, for harvest into fragment it is true), it also generates a ComponentGroup element, containing references to all the components harvested into this fragment. You can then add a ComponentGroupRef element into your feature to include the entire component set. Hope this helps. -- Yan -Original Message- From: Bahn Thomas [mailto:thomas.b...@cic-group.eu] Sent: Thursday, February 26, 2009 12:36 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Installer for an WebProject Hello, i would use WiX to create an installer for our Web-Application. But there a some things that confuse me. I have many Files and Folders that changes often. The Files and Folders should be automatic included into the installer. With the Harvester heat.exe i can generate a WiX-Source containing the complete Web Application. But how i can automatic include the many components into a feature? And another question: Is there no way to notice Directory Tags in a Component Tag? Only File Tags are allowed. When it is possible, i would create one component for an entry directory with subdirectorys. Thank in advance Thomas Bahn -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] SUPPORTDIR for WIX
Hi, i am a newbie in Wix and is using Wix 3.0 toolset currently. before, i was using installshield for creating installers. i was wondering do we have some concept in Wix like SUPPORTDIR in Installshield. Below is what i have thought as a solution to the above:- Means, if we dont have one, we can use files(files to be included in SUPPORTDIR) included in BINARY table in particular custom action, like registrying certain dlls in my case. but am not sure whether we can call any *function* from normal *c# DLL*? Any suggestions for me how to tackle this requirement of mine? Thanks, Akash -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Uninstallation failing on 64bit windows 2008 server
Hi All, I am executing batch file using custom action which removes the extra folders during uninstallation. But it's not executing the custom action. The code is as follows: CustomAction Id=UninstallAct Property=SCRIPTBAT ExeCommand= Return=ignore / InstallExecuteSequence !-- Only run before uninstallation -- Custom Action=UninstallAct Sequence=3450Installed AND NOT REINSTALL/Custom !-- Only run on uninstallation -- /InstallExecuteSequence I saw the log file and it's giving following error for this custom action: MSI (c) (D8:7C) [17:44:23:970]: Note: 1: 2205 2: 3: Error MSI (c) (D8:7C) [17:44:23:970]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1721 Can anyone help me in this issue? Thanks in advance. Regards, Hukum -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Question about dynamically defining a version var
I want my installer wix project to retrieve the version # of a built assembly and then use that for the version in the installer. I am using preprocessor variables in my wix code and that all works great if I use the command line. In my installer msbuild project I have the following target Target Name=RetrieveIdentities GetAssemblyIdentity AssemblyFiles=..\MySql.Data\Provider\bin\release\mysql.data.dll Output TaskParameter=Assemblies ItemName=Version / /GetAssemblyIdentity Warning Text=version = %(Version.Version) / CreateProperty Value=6.0.0 Output TaskParameter=Value PropertyName=CurrentVersion / /CreateProperty /Target And then later I have this PropertyGroup BuildDependsOnRetrieveIdentities;$(BuildDependsOn)/BuildDependsOn /PropertyGroup By using the warning element I can see that my RetrieveIdentities target is running. I'm trying to use my version property here PropertyGroup DefineConstantsVersion=$(CurrentVersion)/DefineConstants WixVariables/WixVariables /PropertyGroup But this doesn't appear to be working. Any ideas what I am doing wrong? -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Question about including large number of modified files...
What I'm doing in a situation much like that is using an interpreted language to generate my .wxs files... That way, I have control over how the GUID's are generated. I have to admit I use Perl to do it, but you could do it in another language, as long as it can generate type 4 GUIDs (the ones in a specific namespace) Here's first-pass Perl code to do it, because it's what : (This code just prints the component and file tags to standard output, so it could be redirected into a file. It assumes there are no subdirectories. If so, I'd put the directory reading code into a subroutine and recurse as you find subdirectories.) #!perl use 5.006; use strict; use warnings; use Data::UUID qw(); use IO::Dir qw(); use File::Spec::Functions qw( catfile ); my $download_site = 'http://www.site.invalid/my-program/'; my $dir_to_read = 'C:\\my\\build\\site'; my $guidgen = Data::UUID-new(); # Generate my own namespace to use for the rest of my GUIDs. my $ns = $guidgen-create_from_name( Data::UUID::NameSpace_URL, $download_site ); my $dir = IO:::Dir-new($dir_to_read); if ( !defined $dir ) { die(Error reading directory $dir_to_read: $!); } print 'EOF'; ?xml version='1.0' encoding='windows-1252'? Wix xmlns='http://schemas.microsoft.com/wix/2006/wi' Fragment Id='Fr_Directory' DirectoryRef Id='D_DirectoryId' EOF my ($id, $guid, $filename); my $file = $dir_object-read(); while ( defined $file ) { if ( ( $file ne q{.} ) and ( $file ne q{..} ) ) { $filename = catfile( $dir, $file ); $guid = uc $guidgen-create_from_name_string($ns, $filename); $id = $guid; $id =~ s/-/_/g; # To change dashes into underlines for the ID. print EOF; Component Id='C_$id' Guid='$guid' File Id='F_$id' Source='$filename' / /Component EOF } # Next one, please? $file = $dir_object-read(); } print 'EOF'; /DirectoryRef /Fragment /Wix EOF exit 0; -- Curtis Jewell swords...@csjewell.fastmail.us %DCL-E-MEM-BAD, bad memory -VMS-F-PDGERS, pudding between the ears [I use PC-Alpine, which deliberately does not display colors and pictures in HTML mail] On Wed, 25 Feb 2009 11:15 -0800, Tabmow tabmo...@gmail.com wrote: Hi all, I'm new to wix, and have looked at the tutorial at tramonta and searched around various places, but the answer to this isn't immediately obvious to me, so I was hoping someone could help shed some light on it. Our installer will be installing 3 large directories. Two of them are completely static 3rd party stuff that will not change at all for the release. However, the third directory is our main product build output, so that changes weekly. My question is: how do people deal with situations like this? I've looked at tallow paraffin, and looks like I can use them (paraffin looks very nice) to build up my lists for inclusion in wxs file which will work perfect for 2 of the 3 directories files. However, the third directory will change every week and there could be new files, files deleted, new directories, etc. Since all the stuff on tallow/paraffin i could see does not recommend re-running them on every build (so as not to have all new GUIDs and break component rules), I could run paraffin once and then every other build of my installer i could just do a paraffin -update... But then if new files get added one week, the next week -update would give them a different GUID unless I had some way of knowing when the new files were changed and to save that change. Asking designers to inform us of file additions/removals is not feasible - ~100 designers. So for that one directory that *could* change frequently, I could just store it as a zip file (this is what gets created by as a build artifact anyway) in the MSI and unzip it, couldn't I? Although lots of responses towards people asking questions about using Wix to handle zip files are very negative towards using zip files... so how are people handling situations like this? I would have assumed this was a common problem? I hope my point/question makes some sense. I would appreciate any help/suggestions/comments anyone has. Thanks! -- Curtis Jewell swords...@csjewell.fastmail.us %DCL-E-MEM-BAD, bad memory -VMS-F-PDGERS, pudding between the ears [I use PC-Alpine, which deliberately does not display colors and pictures in HTML mail] -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net
[WiX-users] COM Registration - schema problem?
Hi, I'm in the long way of converting tons of InstallShield projects to WIX last days. Usually I use dark on compiled merge modules and do some cleanup manually. In most cases this is enough. Few days ago I found a component which has been correctly decompiled from msm, but source generated by dark can't be compiled due to schema validation. Code causing error: Component Id=MyUtil.dll Guid={24A61AF6-5357-4047-8AE8-B2470B2E2FD6} SharedDllRefCount=yes File Id=MyUtil.dll Name=MyUtil.dll KeyPath=yes TypeLib Id={7F1806A6-1864-4697-A06B-E36F41D75DEF} Advertise=no Language=0 MajorVersion=256 MinorVersion=0 AppId Id={CA39D995-ACA4-42B1-AABA-0C77EF20F785} Advertise=no Class Id={28FE5CD9-272D-442D-BA16-822126FCBD00} Context=InprocServer32 Description=StatusProblem_ProviderSomeError Class Advertise=no Version=1.0 ProgId Id=MyUtil.StatusProblem_Provider.1 Description=StatusProblem_ProviderOffNeedsNewData Class Advertise=no ProgId Id=MyUtil.StatusProblem_ProviderAu Description=StatusProblem_ProviderSomeError Class Advertise=no/ ProgId Id=MyUtil.StatusProblem_ProviderEr Description=StatusProblem_ProviderError Class Advertise=no/ ProgId Id=MyUtil.StatusProblem_ProviderOf Description=StatusProblem_ProviderOffNeedsNewData Class Advertise=no/ /ProgId /Class /AppId /TypeLib /File /Component Looks like WIX doesn't allow multiple version-independent ProgIds under actual ProgId. I'm not COM expert, but I saw few classes registered that way already. InstallShield allows such registration as well. So, my question is - is that WIX schema problem or such registration is not allowed by design (if so - why? could you point me to some docs describing that?) -- Regards, Maciej Oszutowski -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Question about dynamically defining a version var
Reggie Burnett wrote: By using the warning element I can see that my RetrieveIdentities target is running. I'm trying to use my version property here PropertyGroup DefineConstantsVersion=$(CurrentVersion)/DefineConstants WixVariables/WixVariables /PropertyGroup But this doesn't appear to be working. Any ideas what I am doing wrong? I think you're running into evaluation order problems. See http://channel9.msdn.com/wiki/msbuild/usethesametargetinmultipleprojectfiles/ and try using /v:diag to get property/item dumps. -- sig://boB http://joyofsetup.com/ -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] ICE33 warning and creating class table
Sudripta Nandy (Sarangsoft Corporation) wrote: Though, the components are registering properly; I don't see any 'Class' table in Orca. WiX generates Class table rows only if the Class/@Advertised attribute is yes. -- sig://boB http://joyofsetup.com/ -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Question about including large number of modified files...
Tabmow wrote: Can i confirm one thing with you guys: if i do this, RemoveExistingProducts will still work to get rid of the previously installed version irregardless of whether the 'changed' files have different GUIDs in the new installer, right? Yes, though there are some bugs around major upgrades and assemblies in the GAC, if you're using managed code. -- sig://boB http://joyofsetup.com/ -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] GenerateBootstrapper : setup.exe is unable to locate application file
Bob Lim wrote: I am using 3.0.5020.0 after 3.0.4721.0 bootstrapper failed to work in the same way. GenerateBootstrapper isn't a WiX task; it's part of the .NET Framework. -- sig://boB http://joyofsetup.com/ -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Custom Action on Finish Dialog
I am trying to execute this Custom action and its not working. I want the finish dialog to have a checkbox which says do not restart computer. If its unchecked(which is default) then restart the computer. UI UIRef Id=WixUI_Mondo/ Publish Dialog=ExitDialog Control=Finish Event=DoAction Value=RestartComputerWIXUI_EXITDIALOGOPTIONALCHECKBOX = 0 and NOT INSTALLED/Publish /UI Property Id=WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT Value=Do not Restart my computer now./ Property Id=WixShellExecTarget Value=[#restart.bat]/ CustomAction Id=RestartComputer BinaryKey=WixCA DllEntry=WixShellExec Impersonate=yes/ I am executing a batch file which has these commands: shutdown -r -t 0 Please let me know what I am missing here. Thanks, Arun Perregattur -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] COM Registration - schema problem?
Hi Bob, Candle output: Project.wxs(474): error CNDL0107: Schema validation failed with the following error at line 1, column 67675: The element 'ProgId' in namespace 'http://schemas.microsoft.com/wix/2006/wi' has invalid child element 'ProgId' in namespace 'http://schemas.microsoft.com/wix/2006/wi'. List of possible elements expected: 'Extension'. When I'm using Votive, 2nd child ProgId (Id=MyUtil.StatusProblem_ProviderEr) is underlined with similar message. Seems that ProgId supports *only one* child ProgId element. -- Regards, Maciej Oszutowski Thursday, February 26, 2009, 8:15:09 PM, you wrote: Maciej Oszutowski wrote: Few days ago I found a component which has been correctly decompiled from msm, but source generated by dark can't be compiled due to schema validation. What's the actual error? ProgId supports child ProgId elements. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Custom Action on Finish Dialog
You should really just use ScheduleReboot and condition it on your checkbox. See the Wix help file for more details. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Launching an application at the end of Install (usingWIX V2)
Keep in mind that on UAC systems that allow an over the shoulder install you might find that a non-Administrator gets an Administrator to supply credentials, and the app will launch at the end with Administrator credentials, leaving the non-Administrator with a privileged app running. I believe the MSI team discourages this type of launch because of the potential security breach. Phil Wilson -Original Message- From: Yan Sklyarenko [mailto:y...@sitecore.net] Sent: Thursday, February 26, 2009 1:04 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Launching an application at the end of Install (usingWIX V2) Take a look at this chapter in this tutorial: http://www.tramontana.co.hu/wix/lesson8.php#8.6 -- Yan -Original Message- From: Naresh Jain [mailto:naresh.j...@microsoft.com] Sent: Thursday, February 26, 2009 8:05 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Launching an application at the end of Install (usingWIX V2) Hello, I have a requirement to launch an installed application at the end of the installation (when user clicks the Finish button). I see that there is a straightforward way to do this in Wix v3 but I don't see how to achieve it in Wix V2. If there are any examples/tutorials that show how to do this, I would appreciate a link to those. Thanks, Naresh -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Help required to execute Sql files
Hi, I need a help to execute bunch of SQL files which are not part of my WXS / MSI but need to execute them through my MSI during installation. All these SQL files are present at some shared location which is changing on a day to day basis like (addition of new SQL script, deletion or modification). I want to execute all the SQL files present in the particular folder using my MSI. If anybody has done that please guide me how to go ahead for that. Thanks, Pankaj -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Uninstallation failing on 64bit windows 2008 server
Is the MSI a 32 or 64 bit install? greenaj Hukumchand Shah hukum.s...@gmail.com wrote: Hi All, I am executing batch file using custom action which removes the extra folders during uninstallation. But it's not executing the custom action. The code is as follows: CustomAction Id=UninstallAct Property=SCRIPTBAT ExeCommand= Return=ignore / InstallExecuteSequence !-- Only run before uninstallation -- Custom Action=UninstallAct Sequence=3450Installed AND NOT REINSTALL/Custom !-- Only run on uninstallation -- /InstallExecuteSequence I saw the log file and it's giving following error for this custom action: MSI (c) (D8:7C) [17:44:23:970]: Note: 1: 2205 2: 3: Error MSI (c) (D8:7C) [17:44:23:970]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1721 Can anyone help me in this issue? Thanks in advance. Regards, Hukum -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Help required to execute Sql files
Write a C# Custom Action using DTF, and pass it as parameter the folder with the sql scripts. The function then can just use OLEDB or SQLCMD to run the scripts. Eitan -Original Message- From: Pankaj Agrawal (Infosys Technologies Ltd) [mailto:v-pa...@microsoft.com] Sent: Thursday, February 26, 2009 10:35 PM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Help required to execute Sql files Hi, I need a help to execute bunch of SQL files which are not part of my WXS / MSI but need to execute them through my MSI during installation. All these SQL files are present at some shared location which is changing on a day to day basis like (addition of new SQL script, deletion or modification). I want to execute all the SQL files present in the particular folder using my MSI. If anybody has done that please guide me how to go ahead for that. Thanks, Pankaj -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Question about including large number of modified files...
Tabmow wrote: Thanks Bob. We won't be using managed code. Excuse my ignorance, but what is GAC? Global Assembly Cache, where managed assemblies are native SxS assemblies are installed. -- sig://boB http://joyofsetup.com/ -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Launching an application at the end of Install (usingWIX V2)
Wilson, Phil wrote: Keep in mind that on UAC systems that allow an over the shoulder install you might find that a non-Administrator gets an Administrator to supply credentials, and the app will launch at the end with Administrator credentials, leaving the non-Administrator with a privileged app running. I believe the MSI team discourages this type of launch because of the potential security breach. That's a problem only if there's a requireAdministrator setup.exe that launches the .msi package. Otherwise, only the execute sequence runs elevated and the UI sequence has limited privileges. -- sig://boB http://joyofsetup.com/ -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Trying to use Apache Ant with Wix tool with an Extension
Hi Everyone, Can you show me an example of how to pass an wix extension to candle ? I tried this and it didn't work. wix mode=candle -ext WixUtilExtension wixObjDestDir=${app.build} sources refid=app.sources/ /wix _ Access your email online and on the go with Windows Live Hotmail. http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_AE_Access_022009 -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Question about including large number of modified files...
Bob Arnson-6 wrote: Tabmow wrote: Thanks Bob. We won't be using managed code. Excuse my ignorance, but what is GAC? Global Assembly Cache, where managed assemblies are native SxS assemblies are installed. ok. Thanks again Bob. -- View this message in context: http://n2.nabble.com/Question-about-including-large-number-of-%22modified%22-files...-tp2385558p2392388.html Sent from the wix-users mailing list archive at Nabble.com. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Trying to use Apache Ant with Wix tool with an Extension
Hey Peter, You might want to pass the full path to the extension depending on how the task picks up the location of candle. However, your syntax looks correct. http://wix.sourceforge.net/manual-wix3/extension_usage_introduction.htm Brian Rogers Intelligence removes complexity. - Me http://icumove.spaces.live.com On Thu, Feb 26, 2009 at 1:26 PM, peter clift peter...@hotmail.com wrote: Hi Everyone, Can you show me an example of how to pass an wix extension to candle ? I tried this and it didn't work. wix mode=candle -ext WixUtilExtension wixObjDestDir=${app.build} sources refid=app.sources/ /wix _ Access your email online and on the go with Windows Live Hotmail. http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_AE_Access_022009 -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] custom action ExeCommand attribute
Hey Igor, What does the command line value look like inside of the MSI itself? Have you viewed it with Orca ( http://msdn.microsoft.com/en-us/library/aa370557.aspx) yet? Thanks, Brian Rogers Intelligence removes complexity. - Me http://icumove.spaces.live.com On Tue, Feb 24, 2009 at 8:17 AM, Igor Likhotkin jingv...@hotmail.comwrote: Hi, I am sort of new to wix. I am still evaluating it to see if it can be adapted for what I need. Here is the issues I ran into. I have a custom action: CustomAction Id=CA1 BinaryKey=EXE1 ExeCommand='-d [INSTALLLOCATION] -f [TempFolder]eclipse.zip' Execute=deferred Return=check HideTarget=no Impersonate=no / The custom action does get called, but the command line arguments come in garbled. That is the switch value for -d switch is set to [INSTALLLOCATION] -f [TempFolder]eclipse.zip (the quoting seems to be acting like a greedy regular expression). I tried using , but that did not qork either. Is this a bug? What am I doing wrong? Is there some kind of workaround? Thanks. -igor. _ Windows Live™ Hotmail®…more than just e-mail. http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t2_hm_justgotbetter_howitworks_022009 -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] custom action ExeCommand attribute
There are two issues here. First of all, value provided for ExeCommand attribute is not a valid XML. Remember that ' characters have to be encoded: ExeCommand='-d quot;[INSTALLLOCATION] quot; -f quot; [TempFolder]eclipse.zipquot;' Second, it seems like whatever tool is parsing this XML is using unorthodox XML parser if it is losing just first and last and understands correctly those in the middle. -Original Message- From: Brian Rogers [mailto:rogers.br...@gmail.com] Sent: Thursday, February 26, 2009 2:52 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] custom action ExeCommand attribute Hey Igor, What does the command line value look like inside of the MSI itself? Have you viewed it with Orca ( http://msdn.microsoft.com/en-us/library/aa370557.aspx) yet? Thanks, Brian Rogers Intelligence removes complexity. - Me http://icumove.spaces.live.com On Tue, Feb 24, 2009 at 8:17 AM, Igor Likhotkin jingv...@hotmail.comwrote: Hi, I am sort of new to wix. I am still evaluating it to see if it can be adapted for what I need. Here is the issues I ran into. I have a custom action: CustomAction Id=CA1 BinaryKey=EXE1 ExeCommand='-d [INSTALLLOCATION] -f [TempFolder]eclipse.zip' Execute=deferred Return=check HideTarget=no Impersonate=no / The custom action does get called, but the command line arguments come in garbled. That is the switch value for -d switch is set to [INSTALLLOCATION] -f [TempFolder]eclipse.zip (the quoting seems to be acting like a greedy regular expression). I tried using , but that did not qork either. Is this a bug? What am I doing wrong? Is there some kind of workaround? Thanks. -igor. _ Windows Live(tm) Hotmail(r)...more than just e-mail. http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t2_hm_justgotbetter_howitworks_022009 -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Changing the feature display attribute using a custom action
Ok dumb question! I just realized that I should set the features default InstallLevel=0 and condition it to become 1 if the registry key is found. Karl Denning wrote: I have a feature that is hidden by default and does not install. However, if a specific registry key is found, the feature must become unhidden and the user should be able to decide whether they want to install it or not. It's all easy to do except changing the 'display' attribute to unhidden. So does anyone know if there is a way to change the display attribute via an immediate custom action? Unfortunately this has to be done without a boot-strapper. -- View this message in context: http://n2.nabble.com/Changing-the-feature-display-attribute-using-a-custom-action-tp2393055p2393108.html Sent from the wix-users mailing list archive at Nabble.com. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Help required to execute Sql files
Thanks Eitan If you have the sample code to do this. Could you please pass me that? Thanks, Pankaj -Original Message- From: Eitan Behar [mailto:ei...@baconao.net] Sent: Thursday, February 26, 2009 1:19 PM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Help required to execute Sql files Write a C# Custom Action using DTF, and pass it as parameter the folder with the sql scripts. The function then can just use OLEDB or SQLCMD to run the scripts. Eitan -Original Message- From: Pankaj Agrawal (Infosys Technologies Ltd) [mailto:v-pa...@microsoft.com] Sent: Thursday, February 26, 2009 10:35 PM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Help required to execute Sql files Hi, I need a help to execute bunch of SQL files which are not part of my WXS / MSI but need to execute them through my MSI during installation. All these SQL files are present at some shared location which is changing on a day to day basis like (addition of new SQL script, deletion or modification). I want to execute all the SQL files present in the particular folder using my MSI. If anybody has done that please guide me how to go ahead for that. Thanks, Pankaj -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Why cannot use MsiNTProductType value in Condition?
MSDN says the way to recognize a server version of Windows is to use the MsiNTProductType property. Is there a reason why WiX 2.0.5805.0 will not let me use it in a LaunchCondition, like this? Condition Message=This application is not for Windows Servers VersionNT=500 AND MsiNTProductType2 /Condition Candle says fatal error CNDL003 1: Name cannot begin with the '2' character, hexadecimal value 0x32. If I omit 2 then candle doesn't complain. I.e this is ok: Condition Message=This application is not for Windows Servers VersionNT=500 AND MsiNTProductType /Condition Is it me, or is it WiX? If I can't use MsiNTProductType value, then how can I prevent installs on server Oses? The MSDN link is http://msdn.microsoft.com/en-us/library/aa370329.aspx# -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Trying to use Apache Ant with Wix tool with an Extension
peter clift wrote: Can you show me an example of how to pass an wix extension to candle ? You probably want to talk to the Ant folks that wrote the task. -- sig://boB http://joyofsetup.com/ -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Why cannot use MsiNTProductType value in Condition?
Alan Sinclair wrote: MSDN says the way to recognize a server version of Windows is to use the MsiNTProductType property. Is there a reason why WiX 2.0.5805.0 will not let me use it in a LaunchCondition, like this? Condition Message=This application is not for Windows Servers VersionNT=500 AND MsiNTProductType2 /Condition You need to escape characters in XML: Either use CDATA to wrap the condition or use lt; and gt; instead of and . -- sig://boB http://joyofsetup.com/ -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] SqlDatabase with multiple data files?
Joe Colon wrote: do multiple file database creation still unsupported as of today? (2/26/09), build 3.0.5020 The feature request is still open because nobody's volunteered to work on it. -- sig://boB http://joyofsetup.com/ -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Why cannot use MsiNTProductType value in Condition?
Hey Alan, You might want to try using one of the following as you are in XML. Condition Message=This application is not for Windows Servers VersionNTgt;=500 AND MsiNTProductTypelt;2 /Condition Condition Message=This application is not for Windows Servers ![CDATA[VersionNT=500 AND MsiNTProductType2]] /Condition Brian Rogers Intelligence removes complexity. - Me http://icumove.spaces.live.com On Thu, Feb 26, 2009 at 4:28 PM, Alan Sinclair alan.sincl...@citrix.comwrote: MSDN says the way to recognize a server version of Windows is to use the MsiNTProductType property. Is there a reason why WiX 2.0.5805.0 will not let me use it in a LaunchCondition, like this? Condition Message=This application is not for Windows Servers VersionNT=500 AND MsiNTProductType2 /Condition Candle says fatal error CNDL003 1: Name cannot begin with the '2' character, hexadecimal value 0x32. If I omit 2 then candle doesn't complain. I.e this is ok: Condition Message=This application is not for Windows Servers VersionNT=500 AND MsiNTProductType /Condition Is it me, or is it WiX? If I can't use MsiNTProductType value, then how can I prevent installs on server Oses? The MSDN link is http://msdn.microsoft.com/en-us/library/aa370329.aspx# -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Custom Action on Finish Dialog
Hey Arun, In addition to what John mentioned, you create an having a batch file that calls shutdown which is not hard rooted. If the user's path points to some other named shutdown.exe your action will fail. I know it sounds unlikely, but it happens. Second, if my memory is correct, once the Finish dialog is prompted the transaction has finished and you no longer have a handle to the MSI. Therefore a property reference, such as [#fileid] will not resolve. You can test this by setting a text box on the finish dialog and seeing if that property has a value. Thanks, Brian Rogers Intelligence removes complexity. - Me http://icumove.spaces.live.com On Thu, Feb 26, 2009 at 12:25 PM, John Lalande johnlala...@gmail.comwrote: You should really just use ScheduleReboot and condition it on your checkbox. See the Wix help file for more details. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Why cannot use MsiNTProductType value in Condition?
Thanks Bob and Brian -- I'm still new to XML -Original Message- From: Bob Arnson [mailto:b...@joyofsetup.com] Sent: Thursday, February 26, 2009 5:06 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Why cannot use MsiNTProductType value in Condition? Alan Sinclair wrote: MSDN says the way to recognize a server version of Windows is to use the MsiNTProductType property. Is there a reason why WiX 2.0.5805.0 will not let me use it in a LaunchCondition, like this? Condition Message=This application is not for Windows Servers VersionNT=500 AND MsiNTProductType2 /Condition You need to escape characters in XML: Either use CDATA to wrap the condition or use lt; and gt; instead of and . -- sig://boB http://joyofsetup.com/ -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] WixVariable Usage
What is the difference between !(bind.VariableName) and !(wix.VariableName)? I've seen examples of !(wix.VariableName) usage in WixUI_Advanced.wxs but can't find a reference in the documentation. My gut tells me they are two syntaxes for referencing WixVariable values. Assuming my gut is correct, then I would like to choose one a single syntax for consistency but candle seems to require both syntaxes at different times: Product/@Version accepts !(bind.Version) but rejects !(wix.Version). Product/@UpgradeCode accepts !(wix.UpgradeCode) but rejects !(bind.UpgradeCode). Upgrade/@Id accepts !(wix.UpgradeCode) but rejects !(bind.UpgradeCode). -- Edwin G. Castro Software Developer - Staff Electronic Banking Services Fiserv Office: 503-746-0643 Fax: 503-617-0291 www.fiserv.com Please consider the environment before printing this e-mail -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] How to execute custom action in the end of a product upgrade rollback
I want to run a custom action at the end of a rollback of product upgrade. This custom action will change the logon password of an installed service so it should be executed at the end of the rollback after the service from the previous install is rolled back. === This email, including any attachments, is only for the intended addressee. It is subject to copyright, is confidential and may be the subject of legal or other privilege, none of which is waived or lost by reason of this transmission. If the receiver is not the intended addressee, please accept our apologies, notify us by return, delete all copies and perform no other act on the email. Unfortunately, we cannot warrant that the email has not been altered or corrupted during transmission. === -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How to execute custom action in the end of a product upgrade rollback
In article 49a75c79.5030...@tait.co.nz, Joe Osman joe.os...@tait.co.nz writes: I want to run a custom action at the end of a rollback of product upgrade. This custom action will change the logon password of an installed service so it should be executed at the end of the rollback after the service from the previous install is rolled back. OK, so let me see if I have this straight: 1) You're doing a major upgrade and you have RemoveExistingProducts sequenced at the start of your install transaction. This means the old product is removed and then the new product is installed. 2) During a failed upgrade, the install of the new product is rolled back and then the uninstall of the old product is rolled back. 3) The rollback of the uninstall of the previous version somehow resets the password of the service that it restored. 4) You want to reset the password appropriately after the service is restored. Now, assuming all of that is correct, here's how I would approach it: 1) Patch the existing version so that when it rolls back an uninstall it restores the password. 2) Apply the patch before you upgrade via a bootstrapper or a LaunchCondition in the new version. Why do I say patch the existing version? Because its the right place for the rollback to occur. Its the restoration of the uninstalled service that's messing up the password. Its the piece of the puzzle that's at fault, so its the piece that needs to be fixed. You can't put it in the new product because RemoveExistingProducts must appear *first* in the install transaction. Therefore you can't place a rollback action in the transaction before RemoveExistingProducts. Because you can only schedule rollback CAs after RemoveExistingProducts runs, it means that those rollback CAs will execute before the previous version is rolled back. In other words, a rollback of an upgrade with RemoveExistingProducts at the start of the install transaction looks like this: - Rollback installation of new product - Rollback uninstallation of existing products There isn't a way to get another rollback CA from the new package scheduled to run after the existing products have been restored. Now you could try moving RemoveExistingProducts to the end of the install transaction. That would mean that your rollback would look like this: - Rollback uninstallation of existing products - Rollback installation of new product However, when I implemented a large upgrade, I had so many problems (to be fair, they came from the way our installation was implemented, not from the core Windows Installer runtime) with RemoveExistingProducts at the end of the install transaction, that I gave up and moved it to the start of the transaction where everything was happy. So, I don't have any good personal experience with putting RemoveExistingProducts at the end of the install transaction and no experience with how this behaves during a rollback. -- The Direct3D Graphics Pipeline -- DirectX 9 draft available for download http://www.xmission.com/~legalize/book/download/index.html Legalize Adulthood! http://blogs.xmission.com/legalize/ -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] GenerateBootstrapper : setup.exe is unable to locate application file
Hi thanks Simon! Your suggestion worked! Thanks again! Best regards, Bob Lim Try cool new skins, plus more space for friends. Download Singapore Yahoo! Messenger now! http://sg.messenger.yahoo.com -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Install pre-requisites from server manager features
Hi all, There are few pre-requisites for my application, which will be installed on a Windows server 2008 machine. Most of those pre-requisites are there in the ServerManager features and roles. Is there a way in wix, to verify whether those features are installed, and to install them if not found? Thanks, Sandun -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] MakeSfxCA and project output
Has anyone gotten this error when using DTF?SFXCA: Failed to extract to temporary directory. Cabinet error code 11. Has anyone managed to pack a directory using another method? Thanks, Shawn On Thu, Feb 26, 2009 at 12:01 AM, Shawn Dwyer shawn.o.dw...@gmail.comwrote: I think I'm getting close but I'm getting an error when unpacking. Reading the source for MakeSfxCA I found the GetPackFileMap function and reading the description: By default, all files will be placed in the root of the cab. But inputs may optionally include an alternate inside-cab file path before an equals sign. So this implied to me that on the MakeSfxCA command line, rather than pass $(TargetDir)EULAs\ja-JP\Eula.rtf I could pass EULAs\ja-JP\Eula.rtf= $(TargetDir)EULAs\ja-JP\Eula.rtf I beleive the log output of MakeSfxCA confirmed this: Packaging files MyInstallerCA.dll CustomAction.config Microsoft.Deployment.WindowsInstaller.dll EULAs\ja-JP\Eula.rtf However, when I run my installer I get the following error: SFXCA: Extracting custom action to temporary directory: Temp\MSI28AD.tmp-\ MSI (c) (D0!6C) [23:20:00:013]: Closing MSIHANDLE (2) of type 790531 for thread 3436 MSI (c) (D0!6C) [23:20:00:091]: Creating MSIHANDLE (3) of type 790531 for thread 3436 *SFXCA: Failed to extract to temporary directory. Cabinet error code 11.* Has anyone tried this before and gotten it to work? Is there a better way to do this? Additionally I figured out how to pack everything in my CA project ouput directory recursively. I replaced the PackCustomAction taget in the Wix.CA.targets file with the following. I don't recommend changing this file since it will get overwritten on the next Wix install, I simply did this as a shortcut to see if I could get it to work. This could be placed in any project file or imported from a custom target though. Target Name=AfterBuild CreateProperty Value=$(TargetDir)$(TargetCAFileName) Output TaskParameter=Value PropertyName=TargetCAPackage/ /CreateProperty CreateItem Include=$(TargetDir)**\*.* Output TaskParameter=Include ItemName=AllFilesInTargetDir / /CreateItem CreateItem Include=@(AllFilesInTargetDir) Condition= '%(AllFilesInTargetDir.FullPath)' != '$(TargetPath)' and '%(AllFilesInTargetDir.FullPath)' != '$(TargetCAPackage)' Output TaskParameter=Include ItemName=AllDependenciesInTargetDir / /CreateItem CreateProperty Value=@(AllDependenciesInTargetDir-'%(RecursiveDir)%(Filename)%(Extension)=%(RecursiveDir)%(Filename)%(Extension)') Output TaskParameter=Value PropertyName=AllDependenciesInTargetDirList / /CreateProperty !-- Run the MakeSfxCA.exe CA packaging tool. -- Exec Command='$(MakeSfxCA) $(TargetCAPackage) $(SfxCADll) $(TargetPath) $(AllDependenciesInTargetDirList)' WorkingDirectory=$(TargetDir) / /Target On Wed, Feb 25, 2009 at 12:07 PM, Shawn Dwyer shawn.o.dw...@gmail.comwrote: Hi, Is there a way to get MakeSfxCA include everything in my CA project ouput directory recursively, maintaining folder structure? It seems to me this would be the simplest way of ensuring all necessary dependencies are there at runtime. For a simple example say I have my EULAs for each language in a subdirectory such as $(TargetDir)\EULAs\ja-JP\Eula.rtf. I'd like this file and the folder structure to be there at runtime. Of course in the above example I could simply flatten the folder structure and add the language as part of the file name, but my particular scenario is more complicated. Another example would be to get the dependencies of dependencies. For example Project A depends on Project B which depends on Project C. The output of C is automatically copied to the output directory of B, and all of that to the ouput directory of A. I'd like to someout get that all packaged up and available at runtime. Thanks, Shawn -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Install pre-requisites from server manager features
I'd be curious to find out about this as well... it's a curiosity I've had... if an application depends on a windows component that is part of the windows installer, how do they get installed? I don't know of any pre-requisite msi file that can be put in as part of a bootstrapper... then again, I've only been developing with WiX for about 2-3 months. Maybe if the WiX team can fill us in, that'd be cool. --Richard -Original Message- From: sandun css [mailto:sandun...@gmail.com] Sent: Friday, February 27, 2009 12:41 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Install pre-requisites from server manager features Hi all, There are few pre-requisites for my application, which will be installed on a Windows server 2008 machine. Most of those pre-requisites are there in the ServerManager features and roles. Is there a way in wix, to verify whether those features are installed, and to install them if not found? Thanks, Sandun -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Excute an application from wix
Hi, I need to run an application after the user presses the finish button. Is there a simple way to do that, in WiX v3? -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users