Re: [WiX-users] Create virtual folder for web applications

2011-02-14 Thread Rob Mensching
Sounds like you need to verify the value of TARGETVDIR before InstallInitialize. An error custom action conditions with a string search might do it. Check out http://msdn.microsoft.com/en-us/library/aa368078(VS.85).aspx and http://msdn.microsoft.com/en-us/library/aa368012(VS.85).aspx. On Mon, Feb

Re: [WiX-users] Read value from database query

2011-02-14 Thread Rob Mensching
Not today. Feature request probalby open for something like this. It'd be cool if someone contributed it. On Mon, Feb 14, 2011 at 10:07 AM, kim wrote: > > We are storing product versions in a database table. Now I have 2 > questions: > > 1) With my installer how can I check if a database with sp

Re: [WiX-users] Using properties for Directories

2011-02-14 Thread Rob Mensching
All directories must be rooted in TARGETDIR. This old series of blog posts might be useful: http://blogs.msdn.com/b/robmen/archive/2006/10/17/deciphering-the-msi-directory-table-part-7-directories-are-properties.aspx On Mon, Feb 14, 2011 at 7:41 AM, John Thornborrow wrote: > Hi all, > > I'm quite

Re: [WiX-users] error PYRO0130 : The primary key '3' is duplicated in table '_Summary Information'

2011-02-14 Thread Rob Mensching
Patching across different tools or even different versions of the WiX toolset isn't really supported. There are a lot of small changes that can make patching impossible (such as changing the size of a column). I think WiX v2.0 had a switch in light to use the "small Sequences" but we dropped it in

Re: [WiX-users] wix200x.targets missing from 3.6?

2011-02-14 Thread Rob Mensching
Not aware of it but it does sound like a bug. When the bug tracker comes back can you ensure to get this in there? On Mon, Feb 14, 2011 at 11:06 AM, John Thornborrow wrote: > Hi all, > > I've just updated my installation to 3.6.1321.0, and when reloading > existing wix projects, I am prompted wit

[WiX-users] Create virtual folder for web applications

2011-02-14 Thread Konda, Kavya R
Hi, I am new to WIX and i am trying to create multiple virtual directories in IIS pointing to subfolders in my application. I have been able to get it to create the virtual directories but the issue i am having is that it creates it for all the folders in the main folder (ABC). I only want to c

[WiX-users] wix200x.targets missing from 3.6?

2011-02-14 Thread John Thornborrow
Hi all, I've just updated my installation to 3.6.1321.0, and when reloading existing wix projects, I am prompted with "Access to the path 'C:\Program Files (x86)\MSBuild\Microsoft\Wix\v3.x\wix200x.targets' is denied." Error. Upon checking, this is because Wix directory no longer lives there, an

Re: [WiX-users] ReserveCost Problem

2011-02-14 Thread Neil Sleightholm
I have read this a few times I don't think it is related, maybe I didn't explain properly. I am in the UI sequence and the OutOfDiskDlg is displayed, I click back, change the path to a drive with more space and the built in install path is ok but my secondary path still refers to the original. Nei

[WiX-users] Read value from database query

2011-02-14 Thread kim
We are storing product versions in a database table. Now I have 2 questions: 1) With my installer how can I check if a database with specific name exists 2) And if database exists query the table to fetch version. I know one way to do this is through custom action and setting a property with t

Re: [WiX-users] Problems with Wix3.5 detecting Windows Installer 3.1

2011-02-14 Thread Pally Sandher
Try http://www.iesve.com **Design, Simulate + Innovate with the ** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -Original Message- From: Andrew Jones [ma

[WiX-users] Problems with Wix3.5 detecting Windows Installer 3.1

2011-02-14 Thread Andrew Jones
Today I had problems with a WIX 3.5 based msi when installing on Windows 2000 and XP SP3. On the Windows 2000 machine I had manually installed Windows Installer 3.1 V2 (so I could manually install .NET Framework V2). The XP machine already had Windows Installer 3.1. I checked the MSI.dll in Win

Re: [WiX-users] Drop database on Uninstall not working

2011-02-14 Thread kim
Thank you all for your reply. @Michael, Go statements did the trick. The database is now dropped on uninstall and on rollbacks. Many Thanks again :-) -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Drop-database-on-Uninstall-not-working-tp601732

Re: [WiX-users] WriteIIS7ConfigChanges - Stuck with 1603 error codes???

2011-02-14 Thread kim
I installed the new Wix 3.5 RTM and now that rpoblem is gone. Thanks so much Rob. Regards. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/WriteIIS7ConfigChanges-Stuck-with-1603-error-codes-tp6001526p6024265.html Sent from the wix-users mailing li

Re: [WiX-users] Conditionally invoking ServiceInstall Element

2011-02-14 Thread Christopher Painter
Technically it's a violation of the component rules.   However, if you can make sure that the two components ( whether they be in two merge modules or no merge modules ) have mutually exclusive component conditions so that only one will ever be installed you can pretty much get away with it.   Y

Re: [WiX-users] Conditionally invoking ServiceInstall Element

2011-02-14 Thread Gregg Swanson
Thanks for the help... I am a WIX rooky. Is this is a valid option - Package the consleappservice.exe in two separate merge modules, the first doesn't invoke ServiceInstall the second does invoke ServiceInstall? The application that I am helping will have to refactor code and they may be rel

Re: [WiX-users] Conditionally invoking ServiceInstall Element

2011-02-14 Thread Christopher Painter
The ServiceControl element is a child of the Component which is a child of the Feature element so the condition can be applied at the Feature or Component level.  If the component is installed the service will be installed and there's no way around that except to factor your service out of the c

Re: [WiX-users] WCF server cannot connect to the remote database.

2011-02-14 Thread Rune Moberg
On Mon, Feb 14, 2011 at 3:08 PM, Christopher Painter wrote: > Well, Evil Genius,  you clearly no more about installs then myself and Rob > Mensching combined so knock yourself. I am not sure where I said I know more about installers? I freely admit to being a n00b at implementing an installer.

[WiX-users] Login failed using User Element, IIS Application pool and SQL Server Login

2011-02-14 Thread Peter Wilson
This is my first post to this group, so I would like to start with something positive first! "Thank you and well Done to the Wix development team for such a wonderful product. I can't thank you enough! Wix is the first thing I consider before building a new product, and I couldn't imagine my

Re: [WiX-users] WCF server cannot connect to the remote database.

2011-02-14 Thread Christopher Painter
 David-  Please accept my apologies for going too far.  I wouldn't want to be responsible for driving anyone away. Chris --- Christopher Painter, Author of Deployment Engineering Blog Have a hot tip, know a secret or read a really good thread that deserves attention? E-Mail Me - Origina

[WiX-users] Conditionally invoking ServiceInstall Element

2011-02-14 Thread Gregg Swanson
Hello, I have a Console application that may also be used as a Windows Service. Is it possible to conditionally invoke or not invoke the ServiceInstall element to control when the service is installed? Thanks, Gregg --

Re: [WiX-users] WCF server cannot connect to the remote database.

2011-02-14 Thread Christopher Painter
As a certain person would think I'm crazy for using 'InstallSUCK' or my relentless crusading to support managed code custom actions. Sorry for the drama.  I guess I'm just jaded by 15 years of trying to hold the line with installer entropy by fending off 'smart' developers who want me to do cra

[WiX-users] Using properties for Directories

2011-02-14 Thread John Thornborrow
Hi all, I'm quite green when it comes to WiX. Has anyone got any examples of creating an arbitrary folder outside of the TARGETDIR? And is it possible (and how to do so) to have a property for that path, and then have subdirectories created from/in it? Sorry if I'm too vague.. I envision som

Re: [WiX-users] ManagedPipelineMode and ManagedRuntimeVersion typing

2011-02-14 Thread Rob Mensching
Usually those things are just oversights. If you think a field should be formatted, file a bug and make the case. On Mon, Feb 14, 2011 at 6:21 AM, Yan Sklyarenko wrote: > Hello WiX Community, > > I'm just wondering what the reason is for restricting ManagedPipelineMode > and ManagedRuntimeVersi

Re: [WiX-users] WCF server cannot connect to the remote database.

2011-02-14 Thread Rob Mensching
Yeah, there is a fine line between "drama" and "trying to convince other smart programmers that there are 'better' ways of doing things". Of course, 'better' is entirely subjective and 'smart' can sometimes translate into 'stubborn' (because smart people *know* better ). We all have different expe

Re: [WiX-users] WCF server cannot connect to the remote database.

2011-02-14 Thread Rob Mensching
One thing to be careful with is pointing to things in "any Microsoft platform" and saying "Well, Microsoft created this platform so it must be a good pattern." InstallUtil is not a good thing (for the reasons I pointed to in the SelfReg table documentation) and it still exists for backwards compati

Re: [WiX-users] WCF server cannot connect to the remote database.

2011-02-14 Thread David Borneman
Too much drama in this group for me. See ya all :) Sent by Android via Nexus One On Feb 14, 2011 9:09 PM, "Christopher Painter" < chr...@deploymentengineering.com> wrote: > Well, Evil Genius, you clearly no more about installs then myself and Rob > Mensching combined so knock yourself. > > ---

[WiX-users] ManagedPipelineMode and ManagedRuntimeVersion typing

2011-02-14 Thread Yan Sklyarenko
Hello WiX Community, I'm just wondering what the reason is for restricting ManagedPipelineMode and ManagedRuntimeVersion to be a limited set of predefined values? I understand the ManagedPipelineMode evaluates into a single bit to be ON or OFF, and it's easier in terms of implementation of IIsExte

Re: [WiX-users] WCF server cannot connect to the remote database.

2011-02-14 Thread Christopher Painter
Well, Evil Genius,  you clearly no more about installs then myself and Rob Mensching combined so knock yourself. --- Christopher Painter, Author of Deployment Engineering Blog Have a hot tip, know a secret or read a really good thread that deserves attention? E-Mail Me - Original Message

Re: [WiX-users] WCF server cannot connect to the remote database.

2011-02-14 Thread Milagros Moreno Herrera (Intl Vendor)
??? Sorry, I don't have any idea about this theme. I'm copy in many emails, and I don't understand how I could help. Regards Mili -Original Message- From: Rune Moberg [mailto:jjfl...@gmail.com] Sent: lunes, 14 de febrero de 2011 14:44 To: General discussion for Windows Installer XML too

Re: [WiX-users] WCF server cannot connect to the remote database.

2011-02-14 Thread Rune Moberg
On Mon, Feb 14, 2011 at 1:10 PM, Christopher Painter wrote: > For #4, you are right, it is simple.  I can do it in one line of XML in WiX > and > let MSI handle the details.  For developers I can do it in 1 line of .BAT > using > the SC command.    And, no, your InstallUtil code will not be bett

Re: [WiX-users] WCF server cannot connect to the remote database.

2011-02-14 Thread Christopher Painter
For #1 and #2,  InstallUtilLib.dll ( or similar ) runs in process and fires up the CLR then calls your class out of process.   Instead google for DTF as a much better alternative hosting model. For #4, you are right, it is simple.  I can do it in one line of XML in WiX and let MSI handle the d

[WiX-users] How to REINSTALL using MsiSetFeatureState

2011-02-14 Thread Akihiro.Shibuta
Hi! How to set REINSTALL the feature using MsiSetFeatureState in CustomAction ? UINT MsiSetFeatureState( __in MSIHANDLE hInstall, __in LPCTSTR szFeature, __in INSTALLSTATE iState ); iState [in]: Specifies the state to set. this parameter can be one of the following values. INSTALLSTATE_ABSE

Re: [WiX-users] WCF server cannot connect to the remote database.

2011-02-14 Thread Rune Moberg
On Mon, Feb 14, 2011 at 1:34 AM, Christopher Painter wrote: > 1)  Run out of process with no ability to access the MSI handle to query > tables, > get/set properties and write to the log.   This means they will never be data > driven and are useless to debug when ( not if ) they fail. > > 2)  Tat