[WiX-users] How to convert properties to actual values

2009-10-06 Thread Mazin Sayid Ali
Hi I'm creating a custom action that reads values from a custom table. I want to specify a filename as we do in xmlconfig using [#foo.txt] or using properties [INSTALLDIR]foo.txt. I'm using DTF to create the Custom Action. How can I parse the value from the custom table to get the Final full path?

Re: [WiX-users] Creating SQLServer Users/Logins....

2009-10-06 Thread Michael Osmond
Here's an example of how I create the user login for a database depending if the database is on the same server as the web application or a different server Some of the security stored procs I am using are obsolete in SQL2008 though (this was built for SQL2000) SQL Script

Re: [WiX-users] Creating SQLServer Users/Logins....

2009-10-06 Thread Thomas Due
This one triggered me: >> This way I can pass username information into the SQL script as an MSI property. How do you do that? That is something I find could be very very useful to me, not only username information, but all sorts of information that could be useful during database creation, or u

Re: [WiX-users] Unable to use Xpath expressions

2009-10-06 Thread Berger Michael
Hi Blair, a useful tool to check your Xpath expression is http://xpathtester.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=3600 I had the same problem but after the correct Syntax it works fine. BR Michael -Ursprüngliche Nachricht- Von: Blair [mailto:os...@live.com] Gesendet: Die

[WiX-users] Out Of Office Reply

2009-10-06 Thread gary
Thank you for your message. I am currently out of the office on Holiday with no access to e-mail. I will be returning to work on 12 October. If you need assistance before then, you may reach Atlas on 0845 867 2845 or i...@atlascs.co.uk. Regards Gary Howlett --

Re: [WiX-users] VBScript : Displaying MsgBox and continuing or aborting the installation...

2009-10-06 Thread Richard
In article <488f6a8c5a9db84fbb082d732f1bbdef02211...@exchange01.amxuk.local>, "Dominique Louis" writes: > My Action looks like this... >Script="vbscript" > Execute="immediate"> >

[WiX-users] VBScript : Displaying MsgBox and continuing or aborting the installation...

2009-10-06 Thread Dominique Louis
It is now nearly 2am and I've spent literally hours searching the internet for an answer, to no avail. I hope someone here can point me in the right direction. I'm trying to write a custom action using VBScript using the Script="vbscript" attribute. My Action looks like this... My probl

Re: [WiX-users] CustomAction Error not displaying...

2009-10-06 Thread Dominique Louis
Thanks for your help Blair. Just to clarify for anyone else trying this. NotSet is actually a string literal. So the correctly working condition is actually... ((WIX_DIRECTX_PIXELSHADERVERSION < 200) OR ( WIX_DIRECTX_PIXELSHADERVERSION = "NotSet" ) ) OR ((WIX_DIRECTX_VERTEXSHADERVERSION < 200)

Re: [WiX-users] Permission element question

2009-10-06 Thread Blair
There are three permission-style elements in WiX. Permission which works with all supported versions of Windows Installer (and has several known limitations), PermissionEx which works with Installer 5.0, and the WixUtilsExtension PermissionEx (doesn't use SDDL, but it is more flexible than Installe

Re: [WiX-users] Unable to use Xpath expressions

2009-10-06 Thread Blair
XMLFile uses the msxml3 engine that was released before XPath 1.0 became finalized. As such, you have to set the SelectionLanguage attribute (the obsolete working-draft predecessor to XPath is too different and too limited and is the unfortunate "default"). Here is what I tested:

Re: [WiX-users] Creating SQLServer Users/Logins....

2009-10-06 Thread Michael Osmond
Louis You need to look at SqlDatabase, SqlScript and SqlString. I use SqlString to create users (with TSQL) and then assign them a role in the target database, as SqlString expands formatted strings. This way I can pass username information into the SQL script as an MSI property. You could a

[WiX-users] dark.exe rejecting MsiAssembly table rows

2009-10-06 Thread Alan Sinclair
Is there a problem with dark.exe (v 3.0.4805.0) in decompiling MsiAssembly tables? Dark is giving warnings like this: > Migration.msm : warning DARK1059 : The MsiAssembly table contains a > row with primary key(s) > 'DataObjects.v0405.dll.5DF28CB2_8D5D_4385_994C_3AB91FB1B53A' > whose Componen

[WiX-users] Permission element question

2009-10-06 Thread Farooq Mahmud (Hotmail)
I run an msi based on the code below. [ProgramFilesFolder] gives my built-in Users group read permission but my application folder does not inherit this permission. I use Windows Explorer to create a folder under [ProgramFilesFolder] and the folder does inherit the Users permission. Is there a

Re: [WiX-users] Unable to use Xpath expressions

2009-10-06 Thread Pan.Pantziarka
It successfully performs the first action and inserts the new element. But it fails the second action. -Original Message- From: Blair Sent: 06 October 2009 19:58 To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Unable to use Xpath expressions Is it

Re: [WiX-users] How can I capture the exit code from an ExeCommand CA?

2009-10-06 Thread Blair
If your custom action runs before CostFinalize, use conditions based on properties. PROCESSEXIT=0 ... PROCESSEXIT<>0 ... If your custom action runs after CostFinalize, use MsiSetComponentState. See the description of the "Condition" column in this page: http://msdn.microsoft.com/l

Re: [WiX-users] Unable to use Xpath expressions

2009-10-06 Thread Blair
Is it failing on the first action or just the second? -Original Message- From: pan.pantzia...@compassmc.com [mailto:pan.pantzia...@compassmc.com] Sent: Tuesday, October 06, 2009 9:26 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Unable to use Xpath expressions Hi, I'm new

Re: [WiX-users] Creating SQLServer Users/Logins....

2009-10-06 Thread Blair
It really depends on how the SQLServer security is setup for the instance and the database you are targeting. A SQL support resource would probably be a better place to help you determine how to identify what kind of security model is in place in the system you are targeting. If you are lucky ther

Re: [WiX-users] WiX 3.0.3808.0

2009-10-06 Thread Blair
When using a non-released version, it is considered good practice to consistently test building with the latest weekly release and to periodically (monthly?) update your toolset to one of those newer builds to avoid getting caught in an unsupported position as you are now in. Having said that, unl

Re: [WiX-users] write custom action in csharp for storing information

2009-10-06 Thread Blair
Creating files/etc. are things called state changes, which are supposed to be performed by deferred actions run between InstallInitialize and InstallFinalize and accompanied by rollback actions that undo the action in the case of an installation failure. One of the more reliable ways to do those f

[WiX-users] Unable to use Xpath expressions

2009-10-06 Thread Pan.Pantziarka
Hi, I'm new to Wix 3.0 and am trying to use it to insert new elements into a config XML file. The format of the file is something like this: first stuff more stuff I want to add another stuff element to the end of the file and am trying to use XMLFile as follows:

[WiX-users] Creating SQLServer Users/Logins....

2009-10-06 Thread Dominique Louis
Hi all, I'm working on a script that attaches our database to an instance of SQLServer. It then creates a virtual directory ( not under c:\Inetpub ) in IIS ( 6 or 7 ) and correctly sets the appropriate folder permissions so that the ASP.NET v2.x, can be viewed across the network. This all seems t

[WiX-users] How can I capture the exit code from an ExeCommand CA?

2009-10-06 Thread David Battey
I want to run an ExeCommand CA and then decide which of two components to install depending on the process's exit code . Is there a way to do this? I can write a DllCommand to execute the .exe and assign the exit code to a property, but I'm wondering if there's a more direct way to do it. Thank

Re: [WiX-users] WiX 3.0.3808.0

2009-10-06 Thread Pally Sandher
For released products yes there is generally an archive. For alphas/betas/release candidates most people will generally not bother since you inevitably want the release instead of a version still in active development. Hence WiX v2.0 releases & WiX v3.0 releases are available on SourceForge while

Re: [WiX-users] WiX 3.0.3808.0

2009-10-06 Thread Andrew Smith
For development of new products we will most certainly explore newer versions of WiX. However, for products already developed that have used this version, we need to be able to site the version on the web. Strange that a version is no longer available for download...usually there's an archive

Re: [WiX-users] write custom action in csharp for storing information

2009-10-06 Thread danimian
I am writing a custom action with the following code. The Challenge is save information during installation. [CustomAction] public static ActionResult MyCA(Session session) { DBInformation obj_DBInformation = new DBInformation(); obj_DBInformation.Server = session["SERVERNAMEPROP"]

Re: [WiX-users] write custom action in csharp for storing information

2009-10-06 Thread Kusuma Sudheer Kumar (Tata Consultancy Services)
Session properties are the way to store the information. I can create some properties in my Wix code and update the values like session["PROPERTY1"]="j"; Can you provide more info as what are you planning to perform? Thanks, Sudheer BGE Build Team (X 34482) -Original Message- From:

Re: [WiX-users] major upgrades just reinstall, overwriting previous

2009-10-06 Thread Jonathan Hartley
Thanks for clarifying that. This now works for me. I have made my upgrade display a modified WelcomeDlg, first by adding a custom WelcomeDlg as described here: http://www.dizzymonkeydesign.com/blog/misc/adding-and-customizing-dlgs-in-wix-3/ Then I modified the description text control on that d

Re: [WiX-users] modifying Welcome Dialog text on upgrade vs install

2009-10-06 Thread Jonathan Hartley
Hooray! Yes, that works perfectly now. Thank you Pally. Pally Sandher wrote: > http://msdn.microsoft.com/en-us/library/aa372039(VS.85).aspx > WelcomeDlg is part of InstallUISequence. Run your Type 51 Custom Action > in it with Before="WelcomeDlg" & it should work. > > Palbinder Sandher > Software

Re: [WiX-users] change the default wixui dialog color

2009-10-06 Thread Pally Sandher
Sigh. This was answered yesterday. See the topic "Re: [WiX-users] How to change background color behind the checkbox- last install page" Palbinder Sandher Software Deployment & IT Administrator T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovat

Re: [WiX-users] WiX 3.0.3808.0

2009-10-06 Thread Pally Sandher
The link for it on http://wix.sourceforge.net/releases/wix3.feed doesn't work anymore so it's unlikely you can download it. Why do you need that specific version? It's over a year and half out of date & there's been almost 60 versions released since then with a massive number of bugs fixed. What i

[WiX-users] write custom action in csharp for storing information

2009-10-06 Thread danimian
Hi, in tutorial there is an example of csharp custom action for checking Key which look like this public class SampleCheckPID { [CustomAction] public static ActionResult CheckPID(Session session) { string Pid = session["PIDKEY"]; session["PIDACCEPTED"] = Pid.StartsWith("