Re: [WiX-users] Folder permission question

2009-10-27 Thread Balu Swaminathan
Thanks Benjamin and Rob: I did try that. I had an odd behavior. If I tried CreateFolder for windows\temp, all existing permissions were lost (meaning administrators, etc were removed from folder permissions). If I tried for some other folder, it worked as expected. Basically adds the

Re: [WiX-users] How to detect files presence and conditionally show a new added dialog page

2009-10-27 Thread little.forest
Hi Richard, You're right. I did got some weird error by not using your approach for button control event when I went back and forth among those dialog pages. So I tried your approach, the errors were gone. However, I'm getting some other new weird issues: every time I've to click the Next

Re: [WiX-users] Assembly (C#) installed as merge module

2009-10-27 Thread Florian Schricker
Hi! On Thu, Oct 22, 2009 at 4:33 PM, Rob Mensching r...@robmensching.com wrote: The ASP.NET MVC project had a similar set of requirements. You might look at how they solved this in the 1.0 release. Ok but looking at the sources provided I find them stripped of any deployment projects.

[WiX-users] How is Control Condition supposed to work?

2009-10-27 Thread little.forest
We use Wix 3.0. How is Control condition supposed to work? I've this code: Control Id=MigrateSettingsCheckBox Type=CheckBox X=20 Y=220 Width=290 Height=17 Property=MIGRATE_SETTING_CHECKBOX_VALUE CheckBoxValue=1 Text=Migrate settings from old version. Condition Action=showNot Installed and

Re: [WiX-users] Conditional installation depending on file existence

2009-10-27 Thread Armin Linder
Hi Alexander, All custom directories, like SHELLPATH are represented as properties and they will get their values after CostFinalize (suggested sequence number in InstallExecuteSequence - 1000). Your Property Id=ISSHELLINSTALLED... - is an AppSearch (suggested sequence 400) and at the

Re: [WiX-users] Conditional installation depending on file existence

2009-10-27 Thread Blair
The CDATA helps when using and/or characters in the conditions (or any other reserved char sequences), since they are reserved in XML, for the authoring to be more readable than lt; and gt;. The only pattern you can't have inside a CDATA is ]]. -Original Message- From: Armin Linder

Re: [WiX-users] Upgrade and new install

2009-10-27 Thread Jiang, Chunyan (GE Healthcare)
Hi Blair, Probably my use-case is special. My software should be able to install flexiably. It can be installed as following: Case 1: Version 1 install to PathA, Version 2 install to PathB Case 2: Version 2 install to PathA, version 1 install to PathB, again. I am stuck in developing case 1.

Re: [WiX-users] UserRegistrationDlg dialog and disable Next button until license key of X characters is entered?

2009-10-27 Thread kerberos
On Mon, Oct 26, 2009 at 10:51 PM, Blair os...@live.com wrote: Managed code custom actions called frequently like that are going to be slow because of all the process creation-and-termination/CLI-state setup-and-teardown/etc. going on. You may be interested in the workaround described on this

Re: [WiX-users] Upgrade and new install

2009-10-27 Thread Blair
I don't see the difference between Case 1 and Case 2, except that the installation directories are switched. Four more questions (unless there is some error in what I understood so far) 1- Can the user switch cases down the road?? 2- Does Version 3 overwrite Version 1 in both cases? Or is there

Re: [WiX-users] Upgrade and new install

2009-10-27 Thread Jiang, Chunyan (GE Healthcare)
Hi Blair, Thanks for your reply. Sorry, I made a mistake. Case 2 is to install version 1 to both PathA and PathB. So case 2 is multi instance issue. But I care more about case 1 currently. To clarify the issue, I answer your questions between lines: 1- Can the user switch cases down the

Re: [WiX-users] Having trouble if uninstall. The installed product does not match the installation source.

2009-10-27 Thread Adnan Mian
Thanks a lot for reply. Luckily I found the original MSI file and removed the product. Best Regards Adnan 2009/10/27 Blair os...@live.com This would appear to indicate that someone has messed with Windows Installer's internal state (either its stored state or the cached/stripped files it

[WiX-users] A question about components and their guids

2009-10-27 Thread Younie, Bradford
This is kind of a high-level question about components that I need to understand: What would happen in this scenario: I have two installers that install the same file to their own directory tree. When I defined each installer source, I did a copy/paste of the component for that file from one

[WiX-users] WixUI_Mondo with only two setup types?

2009-10-27 Thread danimian
Hello, i am using WixUI_Mondo which is offering three setup types (typical, custom and complete). Is it possible that WixUI_Mondo offers only two setup types (custom and complete)? How to solve it? Best Regards Adnan -- View this message in context:

Re: [WiX-users] WixUI_Mondo with only two setup types?

2009-10-27 Thread Pally Sandher
Customize it. See Neil Sleightholm's blog for a very good how-to guide - http://neilsleightholm.blogspot.com/2008/08/customised-uis-for-wix.html Palbinder Sandher Software Deployment IT Administrator T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate +

[WiX-users] WIX msi Auto-Updates

2009-10-27 Thread Yu, Brian
Hi there Since ClickThrough is not ready yet, can anyone suggest what other alternatives are available? I googled some third party software that seem to handle auto upgrade but I'm not sure how well they work. http://www.catenalogic.com/products/updater/information

Re: [WiX-users] Features

2009-10-27 Thread Scharp, Craig
Hi Blair, Thanks for the response and the information. You understand correctly. I'm using different entries in the directory table with different id's, but they are different physical paths. In hind-site, that was probably a mistake that I will correct in future releases. Not sure what you

[WiX-users] Feature not properly uninstalled when Level 0

2009-10-27 Thread Rob Hamflett
I've got a feature that I only want to be installed if Visual Studio 2005 C++ is installed. I search the registry for a particular value to indicate if it is present or not, and set this value to a property called FOUND_VC80DIR, which initially has the value of UNKNOWN. On my feature I

Re: [WiX-users] Upgrade and new install

2009-10-27 Thread Jiang, Chunyan (GE Healthcare)
I set one property in my wix project: Property Id=INSTALLDIR DirectorySearch Id=PreDir Path=[APPLICATIONFOLDER] Depth=1 FileSearch Name=installedfile.txt/ /DirectorySearch /Property And set the custom actions as: Custom Action=MyCA Before=InstallFilesPREVIOUSFOUND AND

Re: [WiX-users] Feature not properly uninstalled when Level 0

2009-10-27 Thread Pally Sandher
I think your problem is due to using Level=0. See - http://msdn.microsoft.com/en-us/library/aa369536.aspx Personally I would recommend you don't set your property to anything to start with, simply use RegistrySearch to set it (so it will be null unless your RegistrySearch is successful) change

Re: [WiX-users] Features

2009-10-27 Thread Blair
By two transaction cycle I mean perform two transactions, first a remove, and then an install, which can't be combined, requiring twice the time and the effort of some sort of bootstrapper (used in an atypical fashion). -Original Message- From: Scharp, Craig

Re: [WiX-users] WiX-users Digest, Vol 41, Issue 157

2009-10-27 Thread Younie, Bradford
The IDs of components have a scope of the containing package. The Guids of components have a system-wide scope. As a result, you do need to fix this as soon as you safely can. Thanks! That makes things a whole lot clearer. I wanted to understand how it works so that I knew what my options

Re: [WiX-users] Upgrade and new install

2009-10-27 Thread Blair
The first question was whether the user can switch between case 1 and case 2. What it appears you want is to have every version be a major upgrade (don't keep old ProductCodes from one version to the next) EXCEPT when you send out a security fix (so you need to keep a history of all the

Re: [WiX-users] Upgrade and new install

2009-10-27 Thread Blair
If you use your Upgrade table only for package detection, you won't need to do the directory search. By not removing version 1 (because you will set the OnlyDetect flag) the RemoveFiles action doesn't need any conditions either (and in fact should never have conditions). Also, your ProductCode

Re: [WiX-users] Folder permission question - Solved

2009-10-27 Thread Balu Swaminathan
For future reference, for folks like me. Scenario: We want to have a custom app pool run under our service account (no network service). Of course, we use the xml serializer and it writes to windows\temp. We need to grant permission to our service account to windows\temp. Problem:

[WiX-users] util:XmlFile, conditionally set value

2009-10-27 Thread Scott Vickery
Any ideas on how to conditionally set a value in an xml? Based on a global variable, CLIENTNAME, I want to set a value in a web.config. Something like the following, but, I know it does not work: Condition Level=0![CDATA[CLIENTNAMESOMECLIENT]] util:XmlFile Id=UpdateWebConfig

Re: [WiX-users] Beginner's Question on Multi Language Installer

2009-10-27 Thread Markus Karg
Obviously my question was targeting whether I shall sent it to THIS mailinglist, to a different place like an issue tracker or possibly to you personally. Regards Markus -Original Message- From: DEÁK JAHN, Gábor [mailto:d...@tramontana.co.hu] Sent: Dienstag, 27. Oktober 2009 00:09

[WiX-users] Setting the app pool properties in IIS7

2009-10-27 Thread kalepalli uday
Hi, We have a wix script to create a website on IIS7 and we use the IISextensions dll for the wix. We create a application pool on installation. But the application pool is getting created in Classic mode. How to set the Managed Pipeline Mode to Integrated? Regards, Uday Kumar

Re: [WiX-users] How to change shortcut name?

2009-10-27 Thread Sascha Beaumont
Hi Chunyan, I'm confused, surely you must be passing in the version number *somewhere* during your build process (e.g. from VS, nant, msbuild, etc?) to set Product/@Version? Sascha On Sat, Oct 24, 2009 at 9:52 AM, Blair os...@live.com wrote: How do you set produ...@version? -Original

[WiX-users] how to overwrite a system protected file using Wix and its utils

2009-10-27 Thread Lian Jiang
Hi, I am trying to use my own file to replace a system protected file under c:\windows. I can use sfpcopy.exe (or related windows API) to do this in a custom action but I would like to know whether Wix and its utils can do this natively. Thanks for any clue. Thanks Lian

Re: [WiX-users] How is Control Condition supposed to work?

2009-10-27 Thread little.forest
Hi all, If you know how to show/hide a checkbox based on a property which is set on runtime, please let me know. We're eager to see the solution. Basically, we need to show the end user a dialog to tell them if they want to migrate their existing settings from old version to new. I'm having

Re: [WiX-users] Beginner's Question on Multi Language Installer

2009-10-27 Thread Blair
The mailto link in the footer of every page looks just like this: mailto:d...@tramontana.co.hu?subject=wixtutorial;. That very link is captioned Gábor DEÁK JAHN. That [o]bviously means he wants it to go to him personally. It also means that the subject of the email message should be WixTutorial,

Re: [WiX-users] How to detect files presence and conditionally show a new added dialog page

2009-10-27 Thread Blair
In Richard's blog post, he details the issue with Windows Installer not recognizing that WIXUI_INSTALLDIR_VALID has had a value set/changed by the custom action. You don't get anything happening because WI still thinks WIXUI_INSTALLDIR_VALID != 1. Publish Dialog=MyInstallDirDlg Control=Back

Re: [WiX-users] util:XmlFile, conditionally set value

2009-10-27 Thread Alexander Shevchuk (Volt)
Hi Scott, If this condition does not apply to a component which installs Web.config file, put util:XmlFile in separate Component and apply condition to it: Component Id=... Condition![CDATA[CLIENTNAMESOMECLIENT]]/Condition util:XmlFile ... /Component Basically, Condition is a child of

Re: [WiX-users] Folder permission question - Solved

2009-10-27 Thread Blair
Directory paths in Windows Installer always end in \. If they don't, please change them until they do. BTW, in MSBuild they usually also always end in \ as well. -Original Message- From: Balu Swaminathan [mailto:bswa...@hotmail.com] Sent: Tuesday, October 27, 2009 11:20 AM To: wix user

Re: [WiX-users] util:XmlFile, conditionally set value

2009-10-27 Thread Blair
Put it in its own component. Component Id=UpdateWebConfig Guid=PLACE_GUID_HERE .../ Condition![CDATA[CLIENTNAMESOMECLIENT]]/Condition util:XmlFile Id=UpdateWebConfig File=[ServiceInstanceDirectory]Web.config Action=setValue

Re: [WiX-users] How is Control Condition supposed to work?

2009-10-27 Thread Blair
If you want to use a condition to show or hide it, all properties used in that condition need to be set before you open the dialog (make sure that NEED_MIGRATE_SETTING is set by something not triggered by this dialog). If while the dialog is open you want to change the visibility of the checkbox

Re: [WiX-users] how to overwrite a system protected file using Wix and its utils

2009-10-27 Thread Blair
According to MSDN: Windows Installer does not fully support write system protected files, which is by design. http://msdn.microsoft.com/en-us/library/aa372868(VS.85).aspx + lots of KB articles. If you are targeting Vista/2k8 or above, it is not supported or recommended. Instead, the following is

[WiX-users] WiX Editor: Preset the Use custom commandline for light.exe setting

2009-10-27 Thread Armin Linder
Hi all, for my installers I du almost always need the -cultures switch. Unfortunately the WiX Editor does not remeber this if closed. Does anyone know wether it is possible to change the default command line options for light.exe? Thanks Armin.

Re: [WiX-users] How to detect files presence and conditionally show a new added dialog page

2009-10-27 Thread little.forest
Thanks a lot, Blair! It works now. It seems the Order attribute is important. I also realized that you added this line: Publish Dialog=MyInstallDirDlg Control=Next Property=WIXUI_INSTALLDIR_VALID Value=[WIXUI_INSTALLDIR_VALID] Order=3/ Can you tell me where Richard's blog is? Thanks again.

Re: [WiX-users] How is Control Condition supposed to work?

2009-10-27 Thread little.forest
Thanks Blair. need to be set before you open the dialog - do you mean to set the property before the install wizard dialog? That must be on a very early stage. Currently, we have this code: CustomAction Id=SetSearchFolderProp Property=SETTING_FOLDERS_PROP

[WiX-users] Always install a specific feature/component ...

2009-10-27 Thread Armin Linder
And once more I need to seek your help. I have an application, which has a license file, let's call it license.dat. Per default the contents of license.dat puts the application in a kind of demo mode and encourages the user to register over the Internet. I authored it to be a component with a

Re: [WiX-users] Feature not properly uninstalled when Level 0

2009-10-27 Thread Bob Arnson
Rob Hamflett wrote: Condition Level=0![CDATA[FOUND_VC80DIR = UNKNOWN]]/Condition I'm trying to work out how to get my product to uninstall after the user has removed Visual Studio. http://www.joyofsetup.com/2008/05/16/make-sure-features-are-always-enabled-so-they-can-be-removed/ --

Re: [WiX-users] How is Control Condition supposed to work?

2009-10-27 Thread Richard
In article 411781.78617...@web59815.mail.ac4.yahoo.com, little.forest little.for...@ymail.com writes: How is Control condition supposed to work? For the most robust results, I use combinations of show *and* hide actions with mutually exclusive conditions. I've this code: Control

Re: [WiX-users] How is Control Condition supposed to work?

2009-10-27 Thread Richard
In article 530673.17954...@web59801.mail.ac4.yahoo.com, little.forest little.for...@ymail.com writes: Basically, we need to show the end user a dialog to tell them if they want t o migrate their existing settings from old version to new. I'm having trouble to conditionally show a