Re: [WiX-users] Search Replace template parameters in SQL

2008-10-07 Thread Neil Sleightholm
I don't use the built-in WiX SQL commands I find them too limiting, I prefer to shell out to sqlcmd to run the SQL scripts and use the sqlcmd replaceable parameters. For an example see here: http://neilsleightholm.blogspot.com/2008/08/executing-sqlcmd-from-wix.ht ml. Neil -Original

Re: [WiX-users] error while uninstalling

2008-10-07 Thread Nutesh Garg
From: Nutesh Garg Sent: Tuesday, October 07, 2008 12:51 PM To: 'wix-users@lists.sourceforge.net' Subject: error while uninstalling Hi, I am getting an error while uninstalling the product that has been patched. The msi log says: DEBUG: Error 2769: Custom Action InstallSqlData did not close 5

Re: [WiX-users] Logging

2008-10-07 Thread Peter Vestergaard
Sorry I wasn't being clear.. I am using light in a c# app. And this is what is happening: Process light = new Process(); light.StartInfo.FileName = WiX toolset\light.exe; light.StartInfo.Arguments = \ + OutputFolder +.+ \WiXOutput.wixobj + \ + -out + \ + OutputFolder + . +

Re: [WiX-users] Logging

2008-10-07 Thread Simon Dahlbacka
yes, shell redirection does not work in this case. In that case you should use ProcessStartInfo.RedirectStandardOutput / .RedirectStandardError and then you can read the output from light.StandardOutput and light.StandardError /Simon On Tue, Oct 7, 2008 at 11:22 AM, Peter Vestergaard [EMAIL

Re: [WiX-users] german letters

2008-10-07 Thread Eitan Behar
Use: auml; uuml; Full reference here: http://www.ascii.cl/htmlcodes.htm On Tue, Oct 7, 2008 at 11:02 AM, Dieter Janzen [EMAIL PROTECTED] wrote: hi, how is it possible to use ä, ö and ü? Pt! Schon vom neuen WEB.DE

[WiX-users] Granting user access to database

2008-10-07 Thread Eitan Behar
Short question, and waiting for (hopefully) a short answer: How to grant grant permissions of db_owner to a certain user on a database? TiA, Eitan - This SF.Net email is sponsored by the Moblin Your Move Developer's

Re: [WiX-users] Granting user access to database

2008-10-07 Thread Dana Gutride
For integrated auth, use a sqlstring element containing the following where USERNAME is the domain\username: exec sp_addrolemember N'db_owner', N'[USERNAME]' Dana On Tue, Oct 7, 2008 at 6:34 AM, Eitan Behar [EMAIL PROTECTED] wrote: Short question, and waiting for (hopefully) a short answer:

[WiX-users] Heat problem harvesting class from type-library

2008-10-07 Thread misuo
Hi, I have a problem harvesting a type-library from an executable file (a COM Server) with heat.exe, version 3.0.4513. If I run heat (as normal-user in Vista) I get something a la: Fragment DirectoryRef Id=Bin Component Id=file.exe Guid=PUT-GUID-HERE File Id=file.exe

Re: [WiX-users] Execute a Custom action only when a specific component is removed

2008-10-07 Thread Yuval David
Thanks. -Original Message- From: Alexander Shevchuk [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2008 20:15 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Execute a Custom action only when a specific component is removed Hi Yuval, If you

[WiX-users] How do I install an SSL certificate?

2008-10-07 Thread Bjerstedt, Tony [Audatex - Americas]
Does anybody out there have an EXAMPLE of installing a certificate to enable SSL for a website? The PFX file from Verisign contains 2 certificates, the actual certificate and an intermediate chain and when I try to install it, the wrong certificate is installed and associated with the web

Re: [WiX-users] Granting user access to database

2008-10-07 Thread Eitan Behar
Thanks! On Tue, Oct 7, 2008 at 2:03 PM, Dana Gutride [EMAIL PROTECTED] wrote: For integrated auth, use a sqlstring element containing the following where USERNAME is the domain\username: exec sp_addrolemember N'db_owner', N'[USERNAME]' Dana On Tue, Oct 7, 2008 at 6:34 AM, Eitan Behar

[WiX-users] german letters

2008-10-07 Thread Dieter Janzen
hi, how is it possible to use ä, ö and ü? Pt! Schon vom neuen WEB.DE MultiMessenger gehört? Der kann`s mit allen: http://www.produkte.web.de/messenger/?did=3123

Re: [WiX-users] german letters

2008-10-07 Thread Michael Zemanek
You have to use an encoding that supports German special characters (e.g. ?xml version=1.0 encoding=UTF-8? To make German special characters readable within an installer (GUI etc) you have to set Codepage and Language attributes of your Product ... tag to the according values. For German

Re: [WiX-users] Logging

2008-10-07 Thread Peter Vestergaard
Thank you all! Great help! 2008/10/7 Simon Dahlbacka [EMAIL PROTECTED] yes, shell redirection does not work in this case. In that case you should use ProcessStartInfo.RedirectStandardOutput / .RedirectStandardError and then you can read the output from light.StandardOutput and

[WiX-users] help required laying out a wix dialog

2008-10-07 Thread Sean Farrow
Hi: As I visually impaired user I could do with some help laying out a WiX dialog. Would anybody be prepared to help me with this? I know what elements I need, so you can probably adapt one of the existing dialogues! If you can help please write me off-list. Regards and thanks in advance. Sean.

Re: [WiX-users] Granting user access to database

2008-10-07 Thread Amy Rosewater
Hi Eitan, I do something similar in my install with the following under my SqlDatabase node: sql:SqlString Id=CreateUser User=SqlUser ExecuteOnInstall=yes SQL=CREATE USER [LOGIN] FOR LOGIN [LOGIN] Sequence=013 / sql:SqlString Id=AssignUserToRole User=SqlUser ExecuteOnInstall=yes

[WiX-users] DTF InstallerException Invalid handle

2008-10-07 Thread Marcel Kulicke
Hi, I have a problem with a CustomAction and DTF. In my CA, which runs as an deferred, commit CA, I try to open and query the MSI database with Database database = new Database(SomePath, DatabaseOpenMode.ReadOnly); The constructor returns no InstallerException, so I think everything works fine

[WiX-users] Uninstall takes 3 times longer timeframe than install

2008-10-07 Thread Yan Sklyarenko
Hello WiX community, My installation source contains 25,000+ files. I used heat.exe to create a WiX authoring out of the root directory. This gave me a *.wxs file with approximately the same number of components, which is claimed to be handled OK by Windows Installer. After some rough

Re: [WiX-users] Granting user access to database

2008-10-07 Thread Eitan Behar
Thanks to all, Finally, I am merging all the concepts, and doing this: Component Id=SetDBOwner ... sql:SqlString Id=SetDBOwner Sequence=1 SQL=use TestDatabase exec sp_grantlogin '[COMP_USER_DOMAIN]\[COMP_USER_NAME]' exec sp_grantdbaccess '[COMP_USER_DOMAIN]\[COMP_USER_NAME]' exec

Re: [WiX-users] Uninstall takes 3 times longer timeframe than install

2008-10-07 Thread Bryan Turner
Yan, Try uninstalling from the command line with the option DISABLEROLLBACK=1. For example, msiexec /x yourmsi.msi DISABLEROLLBACK=1. This might make the uninstall quicker if it does not need to create copies of all the files as it removes them in case you hit the cancel button during

[WiX-users] Target framework when building WIX v3

2008-10-07 Thread Jeb Remus
Hello, I'm having some trouble building WIX v3. The top of my build log has ... Target framework: Microsoft .NET Framework 3.5 Target(s) specified: inc [property] Target framework changed to Microsoft .NET Framework 2.0. ... However my

Re: [WiX-users] Uninstall takes 3 times longer timeframe than install

2008-10-07 Thread Wilson, Phil
Set MSI logging policy and do the uninstall to see what's taking the time. There is, for example, a C runtime custom action called (I think) SxSUninstallCA that runs for a long time. Phil Wilson -Original Message- From: Bryan Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, October

Re: [WiX-users] Problem using FirewallException

2008-10-07 Thread Paul Lalonde
I removed the Assembly and AssemblyApplication attributes as you suggested. The installer was already running with full UI. This is on x86. Unfortunately, the results were the same: abrupt rollback, no error message to the user, and nothing in the log. -- Paul Lalonde

Re: [WiX-users] How do I install an SSL certificate?

2008-10-07 Thread Bjerstedt, Tony [Audatex - Americas]
Ok, more information. I took a look at the source for the certificate install code (gotta love open source). The PFX file (binary stream) is passed as a BLOB. The install code decrypts it and installs the first and only the first certificate in the file. (This results in the intermediate

[WiX-users] How Update / Upgrade strategy (small, minor, major) affect file overriding?

2008-10-07 Thread polan
I've been trying to develop some upgrade strategy for my program. What I want to achieve is an installer which would be able to install lets say version 1.0.3, but also upgrade the versions 1.0.0 or 1.0.1 to version 1.0.3. To make the things simple lets say that installing is just copying some

[WiX-users] Radio Button Group

2008-10-07 Thread Wendell Joost
Using Wix 3.0.4513.0, is there any way to specify a Radio Button Group so that *none* of the items in the group are selected? I'm not finding a way to do this and our software architects are insisting that we do it this way. Thanks! Wendell

Re: [WiX-users] help required laying out a wix dialog

2008-10-07 Thread polan
Maybe you could give a try to visual designer that is a part of wixEdit http://wixedit.sourceforge.net/ You can create/change the dialogs in a very simple way there. Sean Farrow wrote: Hi: As I visually impaired user I could do with some help laying out a WiX dialog. Would anybody be

Re: [WiX-users] How Update / Upgrade strategy (small, minor, major) affect file overriding?

2008-10-07 Thread Ian Elliott (Excell Data Corporation)
If you use the Upgrade tag, you are doing a major upgrade. In this case, the old version is removed and the new version is installed. If the files change between the versions then you will get the latest versions after the upgrade. Setting the OnlyDetect parameter to yes means that you just

Re: [WiX-users] How do I install an SSL certificate?

2008-10-07 Thread Rob Mensching
Import the PFX on to your machine, then export only the certificate you want in a PFX you ship? -Original Message- From: Bjerstedt, Tony [Audatex - Americas] [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2008 10:48 To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] How

Re: [WiX-users] error while uninstalling

2008-10-07 Thread Rob Mensching
What version of the WiX toolset are you using? -Original Message- From: Nutesh Garg [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2008 00:29 To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] error while uninstalling From: Nutesh Garg Sent: Tuesday, October 07, 2008

Re: [WiX-users] Radio Button Group

2008-10-07 Thread Richard
In article [EMAIL PROTECTED], Wendell Joost [EMAIL PROTECTED] writes: Using Wix 3.0.4513.0, is there any way to specify a Radio Button Group so that *none* of the items in the group are selected? Are you trying to enforce that no selection is made, or are you trying to provide another

[WiX-users] really stuck on database uninstall

2008-10-07 Thread Amy Rosewater
Hi All, I have posted this once before and so far no response, so I am going to try and do a better job describing my problem. I am using the latest weekly release Wix v3.0.4513 available since Sept. 13. I have an install that creates a database using the SqlDatabase element. I have the

Re: [WiX-users] Radio Button Group

2008-10-07 Thread Wendell Joost
What the designer wants is as follows: The dialog defaults to this state: Radio button has no options selected. Next button is disabled until a radio button option is selected by the user. My understanding of MSI and WiX is that this is not supported (one button in a radio button group MUST be

Re: [WiX-users] really stuck on database uninstall

2008-10-07 Thread Amy Rosewater
I have been researching what could have changed. I think one significant thing I know has changed is that I upgraded my server's version of SQL Server to be 2008 (from 2005). Amy -Original Message- From: Amy Rosewater [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2008 1:05 PM

[WiX-users] backing up old file before removal

2008-10-07 Thread Joshua Chambers
Hello! So I am working on a new version of a program already out in the field. Thanks to a finger pointing in the right direction I have gotten the new installer to run when clicked on (before, the old one ran), now I have my upgrade stuff working fine and dandy, though I have just one

[WiX-users] Bug in FeatureRef?

2008-10-07 Thread Brian Gillespie
WiX release 3.0.4513.0 When I use a ComponentRef inside a FeatureRef inside a Fragment file, the File in my single Component doesn't end up in my MSI. However, if I move the FeatureRef into the main Product file, it works as I expect. Confused? Me too. Here's a tiny WiX project that gives the

Re: [WiX-users] Component condition ignored during Upgrade

2008-10-07 Thread PameAlex
The property is being set correctly Action 17:11:37: RemoveExistingProducts. Removing applications Action start 17:11:37: RemoveExistingProducts. RemoveExistingProducts: Application: {D2E3C4E8-F835-42BF-9871-DC2AF481361B}, Command line:

Re: [WiX-users] really stuck on database uninstall

2008-10-07 Thread Michael Osmond
Hi A couple of thoughts 1. How are you resolving [DATABASENAME] and [SQLSERVER] - are they correct during uninstall 2. I noticed you are using User=InstallationSqlUser - has this been effected by the 2008 upgrade 3. I am not particularly familiar with 2008, but in doing the upgrade has the SQL

Re: [WiX-users] Bug in FeatureRef?

2008-10-07 Thread Rob Mensching
References start at the Product and work down. If a Fragment does not get a reference into it, it will never be included in the build. Would that explain the behavior you are seeing? -Original Message- From: Brian Gillespie [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2008

Re: [WiX-users] How do I install an SSL certificate?

2008-10-07 Thread Bjerstedt, Tony [Audatex - Americas]
The PFX file includes the complete certificate chain. (The PFX file actually includes 3 certificates including an updated root cert for Verisign.) Thus all of the embedded certificates need to be installed. When I use the IISAdmin tool to import the file (Website properties-Directory Security

Re: [WiX-users] How do I install an SSL certificate?

2008-10-07 Thread Rob Mensching
Sure, you can open a feature request. There might be one open already... -Original Message- From: Bjerstedt, Tony [Audatex - Americas] [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2008 15:23 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] How do

Re: [WiX-users] backing up old file before removal

2008-10-07 Thread Cody Cutrer
Sounds like you should probably schedule CopyFiles before RemoveFiles and/or InstallFiles (not sure of their default sequencing relative to one another), and re-schedule RemoveExistingProducts to just before or after InstallFinalize (instead of InstallInitialize). This is all done in the

Re: [WiX-users] Component execution based on condition

2008-10-07 Thread Sandeep Gautam (HCL Technologies Ltd)
Re sending my query... -Regards Sandeep -Original Message- From: Sandeep Gautam (HCL Technologies Ltd) [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2008 12:40 PM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Component execution based on condition

Re: [WiX-users] Component execution based on condition

2008-10-07 Thread Ian Elliott (Excell Data Corporation)
Seems like someone answered this one earlier. You have spelled your property two different ways in different locations: INSTALLLSFILES INSTALLPSFILES -Original Message- From: Sandeep Gautam (HCL Technologies Ltd) [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2008 3:59 PM To:

Re: [WiX-users] Component execution based on condition

2008-10-07 Thread Sandeep Gautam (HCL Technologies Ltd)
Sorry This is a typo error. Correcting my error. I have some component which are executing based on some property. I am declaring my property like that: Property Id= INSTALLPSFILES I am assigning values to this property on some button click event: Control Id=Install Type=PushButton X=240

Re: [WiX-users] Component execution based on condition

2008-10-07 Thread Ian Elliott (Excell Data Corporation)
Since switching to wix, I haven't worked yet on any installers with UI so I haven't used that particular element yet. However, have you checked the log file to see if the property is being set? What does the 1 in between the Publish tags do? -Original Message- From: Sandeep Gautam (HCL

Re: [WiX-users] Bug in FeatureRef?

2008-10-07 Thread Brian Gillespie
Hi Rob, References start at the Product and work down. If a Fragment does not get a reference into it, it will never be included in the build. Would that explain the behavior you are seeing? Probably. Maybe I'm trying to organize my XML files in a way that WiX isn't designed to handle.

Re: [WiX-users] Bug in FeatureRef?

2008-10-07 Thread Francis Kam
Sounds about right. I've been down this road too. You don't need to end up with any Component* elements in your main feature tree. What I ended up doing was something more like this in your main: Feature ... FeatureRef ... / FeatureRef ... / /Feature And then in your fragments have

Re: [WiX-users] Bug in FeatureRef?

2008-10-07 Thread Rob Mensching
Well, you can break your Features out into separate Fragments and have those Features contain the ComponentRefs. Then you just need FeatureRefs in the Product. There are lots of permutations but they start at the entry section (Product / Module / Patch) and work down as deep as necessary.

Re: [WiX-users] Component execution based on condition

2008-10-07 Thread Alexander Shevchuk
http://blogs.msdn.com/oldnewthing/archive/2007/04/13/2106139.aspx -Original Message- From: Sandeep Gautam (HCL Technologies Ltd) [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2008 3:59 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Component

Re: [WiX-users] really stuck on database uninstall

2008-10-07 Thread Amy Rosewater
Hi Michael, Thanks for your reply: I do have DATABASENAME and SQLSERVER at the time of uninstall. The InstallationSqlUser is set by the following User node in my wix source: util:User Id=InstallationSqlUser Name=[SQLLOGIN] Password=[SQLLOGINPASSWORD]

Re: [WiX-users] really stuck on database uninstall

2008-10-07 Thread Michael Osmond
Hello Amy, I don't normally use the user ID, so I'm not sure if it shows up in a verbose MSI log, but I might do - the verbose log normally shows things like property changes, which includes something like this for database actions -Original Message- From: Amy Rosewater [mailto:[EMAIL

Re: [WiX-users] really stuck on database uninstall

2008-10-07 Thread Michael Osmond
Hello Amy, (Sorry hit the wrong key combination) I don't normally use the user ID, so I'm not sure if it shows up in a verbose MSI log, but I might do - the verbose log normally shows things like property changes, which includes something like this for database actions MSI (s) (44!D0)

[WiX-users] xmlconfig error

2008-10-07 Thread Amy Rosewater
Hi All, I am using wix v3.0.4513. I have an install in which I would like to add nodes to config files. I have the following xml in my install which always results in the same error: Error 25542. Failed to find node: CreateVirtualDirectoryApplicationNode in XML file:

[WiX-users] Problem on Heat.exe

2008-10-07 Thread Wong Shao Voon
Hi guys, The registry entries generated by heat.exe writes to HKCR\CLSID, while RegAsm actually writes them to HKLM\SOFTWARE\Classes\CLSID and so on. Any plans to fix this? Or any workarounds other than manually replacing them ourselves? Thank you very much! Best regards, Shao Voon

[WiX-users] Using AND in a condition statement

2008-10-07 Thread Marty Dalton
Hi I am trying to work out how to test two conditions in one go Publish Dialog=XScreen2Dlg Control=Next Event=NewDialog Value=XScreen4Dlg Order=1![CDATA[TWAIN =0 AND SERVERPC =PC]]/Publish Publish Dialog=XrScreen2Dlg Control=Next Event=NewDialog Value=TypeOfInstallDlg Order=2![CDATA[TWAIN =0

Re: [WiX-users] Problem on Heat.exe

2008-10-07 Thread Rob Mensching
What's the difference? -Original Message- From: Wong Shao Voon [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2008 19:56 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Problem on Heat.exe Hi guys, The registry entries generated by heat.exe writes to HKCR\CLSID, while

Re: [WiX-users] Problem on Heat.exe

2008-10-07 Thread Rob Mensching
Okay. Should be a pretty simple script to replace HKCR with HKLM\Software\Classes\CLSID. From: Wong Shao Voon [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2008 20:54 To: Rob Mensching Subject: RE: [WiX-users] Problem on Heat.exe No difference which I can detect of. But I notice .Net

Re: [WiX-users] Problem on Heat.exe

2008-10-07 Thread Wong Shao Voon
No difference which I can detect of. But I notice .Net COM assembly goes to HKLM\SOFTWARE\Classes\CLSID while native COM dll goes to HKCR\CLSID . I only want the behaviour to be as close as RegAsm as possible, I believe RegAsm has a reason to do that which I do not know of. Best regards, Shao

Re: [WiX-users] Problem on Heat.exe

2008-10-07 Thread Wong Shao Voon
Though I do not know the reason, I happen to found this link below, http://msdn.microsoft.com/en-us/library/aa370810(VS.85).aspx When a user uses RegAsm, he/she does not have to care where RegAsm writes to but using Heat.exe, we have to be aware of the registry location. Anyway, it is not just

[WiX-users] Custom Action is not running

2008-10-07 Thread MadhaviAthota
Hi All, I have written the below custom action . ?xml version=1.0 encoding=UTF-8? Wix xmlns=http://schemas.microsoft.com/wix/2006/wi; Product Id=bfb13c62-6766-47a5-b1b4-f0fc1694ba58 Name=CustomActionsSetup Language=1033 Version=1.0.0.0 Manufacturer=CustomActionsSetup

[WiX-users] How can I control the Order of Component Installation.

2008-10-07 Thread MadhaviAthota
Hi All, I have a scenario where I need to take Backup of already existing files. Remove the files. Copy new files into the above location. Copy back only the Web.Config file from the backup location. I have written seperate components for each step in WIX .wxs file.

Re: [WiX-users] error while uninstalling

2008-10-07 Thread Nutesh Garg
I am using Wix 2.0 -Original Message- From: Rob Mensching [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2008 12:29 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] error while uninstalling What version of the WiX toolset are you using?

Re: [WiX-users] Custom Action is not running

2008-10-07 Thread Alexander Shevchuk
Madhavi, You don't need to include the path and executable name in the ExeCommand attribute's value. Only parameters for the executable: CustomAction Id=DoSomething BinaryKey=MyCA ExeCommand='D:\Samples\EnvironmentConfig.xml RPP BACKUP' Execute=deferred Return=check HideTarget=no