[WiX-users] How to make smaller .msi-file?
Hello, all How I can make installer smaller? My all files required 4mb space on hdd, but .msi file have size of 8mb! This is... not right I think. I set compressed=yes in package-definition. Thanks, Anton. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] How to make smaller .msi-file?
On Fri, 15 Sep 2006 13:07:50 +0700, Anton Filippov wrote: Anton, How I can make installer smaller? My all files required 4mb space on hdd, but .msi file have size of 8mb! There can be many reasons for that that we can't decide from here, not knowing your actual setup. But one usual problem is specifying your main executable (which might be quite large) for the icon file. This will mean storing it twice in the .msi, once for actual deployment and once more for just the icon. Make a small exe or dll that hardly contains anything but your icon resource and refer to it instead. Bye, Gábor --- DEÁK JAHN, Gábor -- Budapest, Hungary E-mail: [EMAIL PROTECTED] - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] XmlFile linker error using createElement Permanent=yes
Folks, Am I using the 'Permanent' attribute incorrectly in the XMLFile Element? I have, XmlFile Id='WebCongifSettings1' File='[INSTALLDIR]Web.Config' Action='createElement' Sequence='1' ElementPath=/configuration/configSections Name=section Permanent=yes/ This gives a Linker error C:\Documents and Settings\crouchjc\Desktop\Wix_Sample\myDemo.msi : fatal error LGHT0010: There was an error importing table: XmlFile with file: C:\Documents and Settings\crouchjc\Local Settings\Temp\igjywmzw\XmlFile.idt However, the help files seem to say that I can do this. If I take it out and add it into a component element - no problems. I am using version Microsoft (R) Windows Installer Xml Linker version 2.0.4221.0 Copyright (C) Microsoft Corporation 2003. All rights reserved. And my build syntax is C:\Program Files\Windows Installer XMLlight.exe -out C:\Documents and Setting \crouchjc\Desktop\Wix_Sample\myDemo.msi C:\Documents and Settings\crouchjc Desktop\Wix_Sample\myDemo.wixobj wixca.wixlib br John - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] (no subject)
Hot on the heels of my last issue I have a bigger issue ... I have two separate msi's which both create a website both need to run on port 80 and have different host headers. Each installs fine on it's own but when I install one after the other I get the following error in the trace log: ConfigureIIs: Error 0x8007007a: Insufficient buffer to track all sub-WebSites ConfigureIIs: Error 0x8007007a: Failed to find web root ConfigureIIs: Error 0x8007007a: failed to read IIsWebSite table Has anyone got any insights as to why this might happen? Cheers StokesyBe one of the first to try Windows Live Mail. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Automatic updating an MSI installation underrestricteduser account
Hi, You might use a special user account with just enough rights to install your application, with just the correct amount of rights in the registry. Then run the service described on this user. By adding impersonation tricks you might be able to switch to the user context and use the HKCU and profile settings from that user. I this this is a nice workaround (i am not using it, but it should do the trick) The user can be created from within your installer MSI (since it is run as administrator) and all the specific rights can be arranged also. Just my thoughts ;) Greetings, Albert van Peppen Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Jason SwagerVerzonden: vrijdag 15 september 2006 4:29Aan: Bob ArnsonCC: Wilson, Phil; wix-users@lists.sourceforge.netOnderwerp: Re: [WiX-users] Automatic updating an MSI installation underrestricteduser account Yep - I fully agree. But when the customer requires this in an application - what else can you do? Privelege escalation is a definite worry. In my solution, I used named mutexs and encrypted memory mapped files using public/private key encryption via Windows CryptoAPI to trigger the installation. A bit of of overkill in this case, but it was a good exercise.Bob Arnson [EMAIL PROTECTED] wrote: Jason Swager wrote: This approach has some drawbacks. First, the possibly extra service running all the time.Which is a source of potential security holes, especially privilege escalation as it's running 100 percent of the time as local system. It works, but it's a sledgehammer of a solution.-- sig://boBhttp://bobs.org-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___WiX-users mailing listWiX-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wix-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] installing service to run as a particular user
Rene Hollan wrote: I've searched but can't find the Wix magic (if there is any) to install a service to run as a particular user. Can anyone point me in the right direction? Check the Account and Password attributes of the ServiceInstall element. http://wix.sourceforge.net/manual-wix2/wix_xsd_serviceinstall.htm I had to put .\ in front of the account name to use a local account. -- View this message in context: http://www.nabble.com/installing-service-to-run-as-a-particular-user-tf2274905.html#a6322770 Sent from the wix-users forum at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Cannot add new file with votive
Today I switched to the latest version of votive from yesterday. Now it is not possible to add new files to the WiX project. There is no template available. A bad workaround is to add an empty text file and rename it to example.wxs. Additional I am not be able to create a new WiX project in VS 2005 Prof. Edition. The new project will be created but not be opened. In VS 2003 the project will be opened fine but adding new files still not work like on older projects. Any suggestions? - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Permissions for a windows service
Simon Burgess-2 wrote: CreateFolder Permission User=NT AUTHORITY\NetworkService GenericRead=yes GenericWrite=yes / /CreateFolder But now, the service does not have enough permissions to start, not least because setting the permission as I have done above gets rid of all existing permissions on that directory. Is there a way to add to permissions that already exist in a directory? You need to add Extended=yes to the Permission element, otherwise the LockPermission table of the Windows Installer will overwrite the current permissions of the directory. From the helpfile: Specifies whether or not to use the LockPermissions table when the Permission element is nested under a Registry, File, or CreateFolder element. If Extended is set to 'yes' then the WiX SecureObject custom action will be used to lock down the resource instead of the legacy LockPermissions table. Specifying 'yes' for this attribute will require you to link your MSI with the wixca.wixlib. By using the SecureObject custom action you can apply permissions for many more well known user SIDs as well as for user accounts that are created as part of the install. -- View this message in context: http://www.nabble.com/Permissions-for-a-windows-service-tf2235547.html#a6322913 Sent from the wix-users forum at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Permissions for Groups
roxana wrote: the installer gives me the well known error. I don't understand why MSI doesn't consider the Users group as a well known sid, for this seems to be the problem... AFAIK Windows Installer only knows the SID for the Administrator and Everyone. If you want to use other SIDs you have to use a CA to retrieve them. http://www.installsite.org/pages/en/msi/tips.htm#SIDLookup -- View this message in context: http://www.nabble.com/Permissions-for-Groups-tf2238717.html#a6323548 Sent from the wix-users forum at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How to make smaller .msi-file?
Hi Anton,If you had used tallow, it might have indiscriminately picked up some files which you might not have expected. Try performing an administrative install on a test machine and verify if the files that are included are really the ones that you need. If not, check the wxs files and fragments if something unwanted is imported. You can perform an administrative install using the following command line.msiexec /a PathToMSI TARGETDIR=PathOfTheUncompressedImage /qbRegards,Vagmi On 9/15/06, DEÁK JAHN, Gábor [EMAIL PROTECTED] wrote: On Fri, 15 Sep 2006 13:07:50 +0700, Anton Filippov wrote:Anton, How I can make installer smaller? My all files required 4mb space on hdd, but .msi file have size of 8mb!There can be many reasons for that that we can't decide from here, not knowing your actual setup. But one usual problem is specifying your main executable (which might be quite large) for the icon file. This will mean storing it twice in the .msi, once for actual deployment and once more for just the icon. Make a small exe or dll that hardly contains anything but your icon resource and refer to it instead. Bye, Gábor---DEÁK JAHN, Gábor -- Budapest, HungaryE-mail: [EMAIL PROTECTED] -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___WiX-users mailing listWiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users-- http://geekswithblogs.net/vagmi.mudumbai http://installneo.blogspot.comPeace is its own reward. - Mahatma Gandhi - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Sequencing issue with a major upgrade
Hopefully you haven't already distributed the first MSI. If so, you might have a problem. You need to set the NOT UPGRADINGPRODUCTCODE condition in the original MSI (the one you are upgrading now). When you upgrade an existing MSI, the cached MSI is called to perform the uninstall, the new MSI doesn't have any control over how the custom actions run. The Windows Installer Team wrote a great blog entry about how you should test your MSI before deploying it ( http://blogs.msdn.com/windows_installer_team/archive/2006/07/28/681358.aspx).DanaOn 9/14/06, Simon Burgess [EMAIL PROTECTED] wrote: Ah yes thank you, this compiles now however when I run the new msi on top of an existing installation (major upgrade) it still runs the InstallPerfCounter custom action AND then the UninstallPerfCounter custom action as before From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Dana Gutride Sent: 14 September 2006 15:52 To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Sequencing issue with a major upgrade Simon: It seems that you may have put the condition inside of the wrong element. That condition should go in the Custom Action / elements in the InstallExecuteSequence not in the CustomAction / element that define the custom action and it's properties. Dana On 9/14/06, Simon Burgess [EMAIL PROTECTED] wrote: Hi I get the following compile error with your example: The CustomAction element contains illegal inner text: 'REMOVE=ALL When you say something like the sample is thre something else I need to do, apologies I'm not familiar with this syntax From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Dana Gutride Sent: 13 September 2006 21:48 To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Sequencing issue with a major upgrade Simon: Try something like this: Custom Action="" After=RemoveFiles![CDATA[REMOVE=ALL AND NOT UPGRADINGPRODUCTCODE]]/Custom The UPGRADINGPRODUCTCODE property is set during the upgrade and available during the previous product removal. Dana On 9/13/06, Simon Burgess [EMAIL PROTECTED] wrote: Hi Does anyone know how I can sequence a custom action so that it is run during an uninstall (before the files are removed) but not run as part of a major upgrade when I RemoveExistingProducts? I have the following source: CustomAction Id='AlreadyUpdated' Error='[ProductName] version [ProductVersion]is already installed.' / CustomAction Id='NoDowngrade' Error='A later version of [ProductName] is already installed.' / CustomAction Id='InstallPerfCounter' FileKey ='installservice.bat' ExeCommand='quot;[INSTALLDIR]Exchange\Enterprise Library\Caching\binquot;' Return='check'/ CustomAction Id='UninstallPerfCounter' FileKey ='installservice.bat' ExeCommand='quot;/uquot; quot;[INSTALLDIR]Exchange\Enterprise Library\Caching\binquot;' Return='check'/ InstallExecuteSequence ?if $(var.BuildType) != Dev ? Custom Action='' After='FindRelatedProducts'PATCHFOUND/Custom Custom Action='' After='FindRelatedProducts'NEWERFOUND/Custom ?endif? RemoveExistingProducts After='InstallFinalize' / LaunchConditions After='AppSearch' / Custom Action="" After=InstallFinalizeNOT Installed/Custom Custom Action="" Before=RemoveFilesInstalled/Custom /InstallExecuteSequence Currently when I author and run a major upgrade, it runs the InstallPerfCounter custom action first and at the end runs the UninstallPerfCounter custom action so I end up with no perf counters installed. Any help appreciated. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] installing service to run as a particular user
hi Can anybody provide an working example of using the ServiceInstall element including the custom actions. I have tryed but cannot get it working. I can create the msi but it fails. If I had a simple one that worked, I might be able to find where I'm going wrong (see Topic ServiceInstall element, how to get it working - 13 Sep) Dave. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Create Event Log
Bob has added support to WiX 3 for custom event sources, but I don't think the custom log is in there yet. It is on the list. Luckily, both event logs and sources are simply a bunch of registry keys. This is bread and butter for WiX/MSI, so it is not difficult to implement this natively with no CAs at all. The trick is to get the authoring for the keys. You can easily go into the registry, export those nodes and use heat or tallow to convert the .reg files to WiX authoring though. The biggest trick in my mind is what to do about the event message DLL file. If you are using .NET and its eventlog support, you are almost certainly using the event message DLLs that come with .NET. In my mind, the main problem is picking the appropriate DLL from various possible .NET Framework installs that might be on the box. All of the event message DLLs will work and do the same thing though, so I don't think you really need to pick a specific one. I think you can use any. The file always has the same name, so you just need to get the right path. An alternate approach would be to put their DLL in your own installer so it is self-contained and reference it from your own install dir. That bloats your installer a bit and is a little evil, but should work. You can also write your own message dll. The MSDN reference talks a little about how. :) I think the first thing to do is look at the registry keys created for your custom log so you can start to understand how it works. MSDN also documents all the registry keys. Joe - Original Message - From: Peter Stokes To: wix-users@lists.sourceforge.net Sent: Thursday, September 14, 2006 9:05 PM Subject: [WiX-users] Create Event Log Hi, Is there a way to create an event log without resorting to installer files and Custom Actions. Cheers Stokesy Be one of the first to try Windows Live Mail. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Please ensure this is a valid assembly file error
Hi I'm using version 3.0.2015.0 of Wix and am getting the following message when I light the wixobj. error LGHT0132 : The assembly file 'blah.dll' appears to be invalid. Please ensure this is a valid assembly file and that the user has the appropriate access rights to this file. More information: The format of the file 'blah.dll' is invalid. I saw Derek's response to Brad... http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg01646.html but I have the latest release and am still getting the error. Is there anything I need to check or does this need revisiting? Dave *** The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. Authorised and regulated by the Financial Services Authority This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer. Internet e-mails are not necessarily secure. The Royal Bank of Scotland plc does not accept responsibility for changes made to this message after it was sent. Whilst all reasonable care has been taken to avoid the transmission of viruses, it is the responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments will not adversely affect its systems or data. No responsibility is accepted by The Royal Bank of Scotland plc in this regard and the recipient should carry out such virus and other checks as it considers appropriate. Visit our websites at: http://www.rbos.com http://www.rbsmarkets.com *** - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Registry Key on Uninstall
WIX Version: 2.0.4415.0 Problem Summary: How to prevent pre-existing registry keys from being removed during uninstall. Im still quite new to WiX so please bear with me. I am trying to understand a scenario. I am going to install an application that will create some registry entries but will also update some that already exist. During the uninstall all registry keys are removed. I need to keep any that already existed. Here is a simple script that shows what Im talking about. To test it, simply create a README.TXT file for it to install. Also, manually create a registry key in HKLM\Software\Acme called SomeIntKey. The key is a DWORD so set its value to any non-zero value. If you install the MSI created with this script then the registry key is changed to 1 (thats good). Now uninstall the MSI. The key is removed (thats bad)! How do I prevent the key from being removed during uninstall? ?xml version='1.0'? Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi' Product Id='457E3468-BA41-47bd-83A8-F6D44B282171' Name='Test Package' Language='1033' Version='1.0.0.0' Manufacturer='Acme, Inc.' Package Id='----' Description='My first Windows Installer package' Comments='This is my first attempt at creating a Windows Installer database' Manufacturer='Acme, Inc.' InstallerVersion='200' Compressed='yes' / Media Id='1' Cabinet='product.cab' EmbedCab='yes' / Directory Id='TARGETDIR' Name='SourceDir' Directory Id='ProgramFilesFolder' Directory Id='INSTALLDIR' Name='TestProg' LongName='Test Program' Component Id='MyComponent' Guid='457E3468-BA41-47bd-83A8-F6D44B282173' File Id='readme' Name='readme.txt' DiskId='1' src='' / Registry Id='Reg01' Root='HKLM' Key='Software\Acme' Name='SomeIntKey' Type='integer' Value='1' Action='' / /Component /Directory /Directory /Directory Feature Id='MyFeature' Title='My 1st Feature' Level='1' ComponentRef Id='MyComponent' / /Feature /Product /Wix __ Doug Watts Advectis, Inc. Direct: 678.460.4605 Cell: 770.314.6704 The #1 Network for Mortgage Document Collaboration Information contained in this email message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. Access to this email by anyone other than the addressee is prohibited. If you are not the intended addressee, you may not copy, forward disclose or otherwise use it or any part of it in any way. To do so may be unlawful. If you received this e-mail by mistake, please advise the sender immediately. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Registry values ref counts...
On some computes I got undeleted registry values, while on others all registry is cleaned. I suppose that MSI somehow counts references to the registry keys and values that it writes and remove them when ref count is 0. If I am right where it stores that reference counts? Best regards, Peter G. Sakhno C-MAP RUSSIA Ltd http://www.c-map.ru/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Registry Key on Uninstall
I'm finding that the key is only deleted if it's empty: it has no values, and the default value is not set. This is both using your example, and using an Action='createKey' Registry element to explicitly create the key that you're interested in, as follows: Registry Id='Reg01Parent' Root='HKLM' Key='Software\Acme' Action='createKey' Registry Id='Reg01' Name='SomeIntKey' Type='integer' Value='1' Action='write' / /Registry I suspect this is an underlying issue with Windows Installer. Viewing the output .msi with Orca shows the following data (table, best viewed in fixed-width font): Registry| Root | Key | Name | Value | Component +--+---++---+--- -- Reg01 | 2| Software\Acme | SomeIntKey | #1| MainExecutable Reg01Parent | 2| Software\Acme | + | | MainExecutable Your example has only the 'Reg01' row present. If your application depends on an empty key being present I think you'll have to work around it. If you need to reset a registry value to the value it had before installation, rather than removing the value, then I think you will need to use a custom action - I can't see any way in the Registry table (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/se tup/registry_table.asp) of leaving a value on the system. (Registry terminology: keys contain values; values have data. This is consistent with the API names, e.g. RegCreateKey, RegQueryValueEx, RegSetValueEx. Note that Windows Installer's schema is inconsistent in its use of terminology here: 'Name' should, IMO, be 'ValueName' and 'Value' should be data.) -- Mike Dimmick From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Watts Sent: 15 September 2006 15:47 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Registry Key on Uninstall WIX Version: 2.0.4415.0 Problem Summary: How to prevent pre-existing registry keys from being removed during uninstall. I'm still quite new to WiX so please bear with me. I am trying to understand a scenario. I am going to install an application that will create some registry entries but will also update some that already exist. During the uninstall all registry keys are removed. I need to keep any that already existed. Here is a simple script that shows what I'm talking about. To test it, simply create a README.TXT file for it to install. Also, manually create a registry key in HKLM\Software\Acme called 'SomeIntKey'. The key is a DWORD so set its value to any non-zero value. If you install the MSI created with this script then the registry key is changed to 1 (that's good). Now uninstall the MSI. The key is removed (that's bad)! How do I prevent the key from being removed during uninstall? ?xml version='1.0'? Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi' Product Id='457E3468-BA41-47bd-83A8-F6D44B282171' Name='Test Package' Language='1033' Version='1.0.0.0' Manufacturer='Acme, Inc.' Package Id='----' Description='My first Windows Installer package' Comments='This is my first attempt at creating a Windows Installer database' Manufacturer='Acme, Inc.' InstallerVersion='200' Compressed='yes' / Media Id='1' Cabinet='product.cab' EmbedCab='yes' / Directory Id='TARGETDIR' Name='SourceDir' Directory Id='ProgramFilesFolder' Directory Id='INSTALLDIR' Name='TestProg' LongName='Test Program' Component Id='MyComponent' Guid='457E3468-BA41-47bd-83A8-F6D44B282173' File Id='readme' Name='readme.txt' DiskId='1' src='readme.txt' / Registry Id='Reg01' Root='HKLM' Key='Software\Acme' Name='SomeIntKey' Type='integer' Value='1' Action='write' / /Component /Directory /Directory /Directory Feature Id='MyFeature' Title='My 1st Feature' Level='1' ComponentRef Id='MyComponent' / /Feature /Product /Wix __ Doug Watts Advectis, Inc. Direct: 678.460.4605 Cell: 770.314.6704 The #1 Network for Mortgage Document Collaboration Information contained in this email message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. Access to this email by anyone other than the addressee is prohibited. If you are not the intended addressee, you may not copy, forward disclose or otherwise use it or any part of it in any way. To do so may be unlawful. If you received this e-mail by mistake, please advise the sender immediately.
Re: [WiX-users] Automatic updating an MSI installation under restricteduser account
In this particular customer case - nope, admin credentials couldn't be on the system or in the hands of the restricted user. I suggested that the credential be written to the system in some obscure, highly encrypted fashion during the initial install (which had to be done by an Admin), then used in a CreateProcess call that spawned the MSI. But that was shot down on the principle that having the admin creds ANYWHERE on the system in ANY fashion was unacceptable. Not to mention what happens if those creds changed?Yeah - this "update while restricted user" is causing the extra services to spawn like crazy.Bob Arnson [EMAIL PROTECTED] wrote:Do you think it would work -- in general -- to prompt the user for admin credentials at install time, then write a scheduled task to run under that user? Personally, I hate all these apps that install services. iTunes is a terrible offender. Lots of antivirus apps too.- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] (no subject)
I had a similar problem about a month ago. I think many things can cause this, but in my case I was trying to create a website and did not have an IP address tag for it. -Matt From: Peter Stokes [mailto:[EMAIL PROTECTED] Sent: Friday, September 15, 2006 2:47 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] (no subject) Hot on the heels of my last issue I have a bigger issue ... I have two separate msi's which both create a website both need to run on port 80 and have different host headers. Each installs fine on it's own but when I install one after the other I get the following error in the trace log: ConfigureIIs: Error 0x8007007a: Insufficient buffer to track all sub-WebSites ConfigureIIs: Error 0x8007007a: Failed to find web root ConfigureIIs: Error 0x8007007a: failed to read IIsWebSite table Has anyone got any insights as to why this might happen? Cheers Stokesy Be one of the first to try Windows Live Mail. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Cannot add new file with votive
Did you use votive.msi or votive3.msi? The votive3.msi has a brand new Votive that you'll probably want to use if you do use Votive. It's got all sorts of new stuff and a lot of bug fixes. I think you'll find that it's much more usable than votive2. Justin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Torsten Rudnick Sent: Friday, September 15, 2006 3:32 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Cannot add new file with votive Today I switched to the latest version of votive from yesterday. Now it is not possible to add new files to the WiX project. There is no template available. A bad workaround is to add an empty text file and rename it to example.wxs. Additional I am not be able to create a new WiX project in VS 2005 Prof. Edition. The new project will be created but not be opened. In VS 2003 the project will be opened fine but adding new files still not work like on older projects. Any suggestions? - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] installing service to run as a particular user
I did some more digging and found out that: (1) Our .wxs does use the ServiceInstall element, with values for Account and Password provided via external octopus-driven config; (2) Despite specifying these values, the service still runs as SystemLocal; (3) I'm not sure what password to specify to get the service installed on an arbitrary system to run as NT AUTHORITY\NETWORKSERVICE. I'd think that running the installer with admin privs should be enough. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Walton Sent: Friday, September 15, 2006 6:22 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] installing service to run as a particular user hi Can anybody provide an working example of using the ServiceInstall element including the custom actions. I have tryed but cannot get it working. I can create the msi but it fails. If I had a simple one that worked, I might be able to find where I'm going wrong (see Topic ServiceInstall element, how to get it working - 13 Sep) Dave. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Automatic updating an MSI installation underrestricteduser account
Windows Installer 3.0 the first version which supports it. It is mentioned here, too: http://blogs.msdn.com/windows_installer_team/archive/2006/06/27/648447.aspx (see rule 45 LUA patching) Regards, Martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wilson, Phil Sent: Donnerstag, 14. September 2006 19:52 To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Automatic updating an MSI installation underrestricteduser account I don't believe this is supported until MSI 4.0 - see the User Account Control (UAC) Patching topic: http://windowssdk.msdn.microsoft.com/en-us/library/ms710366.aspx Phil Wilson -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Petr Vones Sent: Thursday, September 14, 2006 9:41 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Automatic updating an MSI installation under restricteduser account Hi, what is the recommended way of updating/patching existing installation running the application under restricted user account only ? I don't have any experiences with it. The scenario is: - First version of the product is standard MSI package installed by an administrator (to ProgramFiles folder) - The administrator logs off - An user logs on (under restricted account) and use the application The application (running under restricted user account) checks for a web update. If there is an update it must be able to update application files in ProgramFiles folder without logging as an administrator. But the user does not have write access to the ProgramFiles folder. Only files will be updated (that's mean no registry access etc. is required). Can MSI installer (which is running as a service) do this ? Thanks, Petr - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Feature List conditional control
Is there a way to conditionally manage the Feature List? I have a dialog that populates a set of properties. Depending upon those properties, I would like to conditionally hide / disable specific feature options on the Customize dialog. So far, I have gotten the conditionals working within the other parts of my UI, but I cannot seem to figure out how to get the UI-set properties to control the Feature list. Ideas? David Adams MSN MessengerID: [EMAIL PROTECTED] - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Retiring from the WiX community
I've just posted my last 3 blog posts: Addition of two new tools to WiX for transform (Torch)and patch creation (Pyro): http://installing.blogspot.com/2006/09/torch-and-pyro.html Ability to auto-generate safe component guids (limited to single-file components): http://installing.blogspot.com/2006/09/automatically-generating-component.html Retiring from the WiX community:http://installing.blogspot.com/2006/09/retiring-from-wix-community.html Thanks for all the great times and good memories! D e r e k- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Random Wix Questions
I have a few random wix questions below, that I wondered if anyone could help with. Thanks!-Tina 1. How do you determine if an existing Wix code file is written for Wix 1.0, 2.0, or 3.0? 2. Is there any way to specify a default web page when creating a WebSite using the WebSite node in Wix? 3. How can a custom action tell if an upgrade is being run versus a new install? I think that FindRelatedProducts will update the property specified in the Upgrade node to include the product GUID that is being upgraded. So, can a custom action assume that if the property noted is blank, a new install is being run, and if the custom action has a value then an upgrade is being run? a. For instance, if you have the following node:Upgrade Id=GUID UpgradeVersion Property=MyProperty IncludeMinimum=yes Minimum=1.0.1 //UpgradeThen, can a custom action check if MyProperty is an empty string or not to determine if were in an upgrade scenario or not? -- ___ Play 100s of games for FREE! http://games.mail.com - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] string replacement in xml files
I do something quite similar as well. We use nant for our builds, and in the build file I set an environment variable, then use it in the wix file. Src="" I wasnt able to use the var. for some reason I had to set the variable to an environment variable before I could access it. So in the build file I have: setenv variable name=INSTALLATION value=${Installation} / /setenv Then in the wxs file I have: Component Id=ComponentID DiskId=1 Guid=guid File Id=fileid Name=short_1.DLL LongName=filename.dll src="" ReadOnly=no / /Component From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Crouch, John Sent: Thursday, September 14, 2006 1:20 AM To: wix-users@lists.sourceforge.net Cc: Simon Burgess Subject: Re: [WiX-users] string replacement in xml files Simon, I have a very similar issue for an enterprise deployment next year. I am currently using an .ini file which keeps all data for all the deployment locations by computer name (which I know in advance). [NY-SRV-01] This-web-config=127.0.0.1 This-exe-config=127.0.0.2 [SF-SRV-02] This-web-config=721.0.0.1 This-exe-config=721.0.0.2 Then in my WiX generated msi I Look into the registry for the computer name assign that to a value Look up the computer name matching the previous value in my *.ini file Read off the values that this particular msi requires. Use XMLFile to update the key values in my web and app config files. Works fine, however, I am open to any suggestions to improve it. Kind regards, National Oilwell Varco John Crouch Software Engineer/Developer National Oilwell Norway AS Phone:+4751818181 Fax:+4751800547 [EMAIL PROTECTED] www.nov.com This message, including any attachments, is intended only for the addressee and may contain privileged or confidential information. Any unauthorized disclosure is strictly prohibited. If you receive this message in error, please notify us immediately so that we may correct our internal records. Please then delete the original message. Thank you. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Simon Burgess Sent: Wednesday, September 13, 2006 10:48 PM To: 'WiX-users' Subject: [WiX-users] string replacement in xml files I am looking into different ways to handle environment specific information in web.config files. It would seem logical if at deployment time, my installer could determine where it is being run and update a generic config file so that is fit for purpose for the environment it is being run on. I wouldnt need to create new elements exactly but just search for partular tokens within an xml file and replace them with a value I read in from the registry for example. The following is some sample xml from a config file: endpoint address=http://localhost/Configuration/ConfigurationService.svc binding=basicHttpBinding bindingConfiguration=BasicHttpBinding_IConfigurationService contract=Exchange.EnterpriseLibrary.Configuration.IConfigurationService name=BasicHttpBinding_IConfigurationService/ I would need to replace localhost with something more appropriate. Is this something the XMLFile element could handle or is there something else in WiX that could help out? - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] FW: custom actions
Thanks Saranath _ From: Saranath Aravamudhan Sent: Friday, September 15, 2006 2:36 PM To: Windows Installer XML Subject: custom actions Hi- Can you please let me know how to restrict custom actions to run only during the installation and not during the un-install? Thanks Saranath - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] FW: custom actions
Add a condition checking NOT Installed in InstallExecuteSequence/InstallUISequence. Ex: Custom Action=SetARPINSTALLLOCATION After=CostFinalize ![CDATA[NOT Installed]] /Custom From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Saranath Aravamudhan Sent: Friday, September 15, 2006 2:38 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] FW: custom actions Thanks Saranath _ From: Saranath Aravamudhan Sent: Friday, September 15, 2006 2:36 PM To: Windows Installer XML Subject: custom actions Hi- Can you please let me know how to restrict custom actions to run only during the installation and not during the un-install? Thanks Saranath - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] FW: custom actions
Actually I was looking for more like REMOVEALL which would specifically cover uninstalls while NOT Installed would cover both fresh installs and uninstalls Thanks Saranath From: Chandra Rentachintala [mailto:[EMAIL PROTECTED] Sent: Friday, September 15, 2006 4:31 PM To: Saranath Aravamudhan; wix-users@lists.sourceforge.net Subject: RE: [WiX-users] FW: custom actions Add a condition checking NOT Installed in InstallExecuteSequence/InstallUISequence. Ex: Custom Action=SetARPINSTALLLOCATION After=CostFinalize ![CDATA[NOT Installed]] /Custom From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Saranath Aravamudhan Sent: Friday, September 15, 2006 2:38 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] FW: custom actions Thanks Saranath _ From: Saranath Aravamudhan Sent: Friday, September 15, 2006 2:36 PM To: Windows Installer XML Subject: custom actions Hi- Can you please let me know how to restrict custom actions to run only during the installation and not during the un-install? Thanks Saranath - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users