[WiX-users] Re move ending "\" from INSTALLDIR property value

2008-08-20 Thread Andy2k8
Hello there Is there a way to avoid the ending "\" from the INSTALLDIR value without using custom actions? I want to avoid that when writing the value to a registry entry. thanks Andy -- View this message in context: http://n2.nabble.com/Remove-ending-%22%5C%22-from-INSTALLDIR-property-value-t

Re: [WiX-users] Dynamically Pick File Source Location

2008-08-20 Thread Eitan Behar
Hi Pavan, If the source folder is relative to the solution/project paths, you can indeed use a VisualStudio variable, like $(var.MyProject.TargetDir), or $(var.SolutionDir). But, I don't see how this can help you. You can "easily" create a C# program that generates the XX number, and save it on t

Re: [WiX-users] Dynamically Pick File Source Location

2008-08-20 Thread pavan gadam
Hi Eitan, Is there any way in which BuildXX can be auto generated apart from DOS Script? Is it possible with Visual Studio specific Variable? Thanks, pavan - This SF.Net email is sponsored by the Moblin Your Move Developer's

Re: [WiX-users] XPath or XSLPattern for XmlConfig?

2008-08-20 Thread Brian Rogers
Hey Zack, Take a look at the following links and let me know if these help you out. http://www.w3schools.com/XPath/xpath_syntax.asp http://msdn.microsoft.com/en-us/library/ms950779.aspx Glad it worked! That is what is important! Thanks, -- Brian Rogers "Intelligence removes complexity." - Me

Re: [WiX-users] RegistrySearch question

2008-08-20 Thread Alexander Shevchuk
Hi Mike, REG_MULTI_SZ in AppSearch has lots of problems (here is one of them: http://support.microsoft.com/kb/897026). Consensus here is - use custom action of your choice to get that value. Alex -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Re

Re: [WiX-users] XPath or XSLPattern for XmlConfig?

2008-08-20 Thread Zachary Young
Hi Brian, It worked! Thank you so much! I have no idea why that worked--there's nothing in the XPath that takes into account the namespace, it's just ignored. How did you come across this fantastic knowledge, trial and error? Thanks again, Zach -Original Message- From: [EMAIL PROTECTED]

[WiX-users] RegistrySearch question

2008-08-20 Thread Mike Rerick
I am trying to read a Registry setting to get the installed instances of SQL Server. The InstalledInstances entry is a REG_MULTI_SZ data type. There is a value entered in this entry but the property INSTALLEDINSTANCES does not contain a value. I'm using version 3.0.4401. Any ideas?

Re: [WiX-users] XPath or XSLPattern for XmlConfig?

2008-08-20 Thread Brian Rogers
Hey Zach, Just curious, could you use the below XPath instead? /hibernate-configuration/session-factory/[EMAIL PROTECTED]'connection.connection_string'[\]] Thanks, -- Brian Rogers "Intelligence removes complexity." - Me http://icumove.spaces.live.com On Wed, Aug 20, 2008 at 2:14 AM, Zachary

Re: [WiX-users] Set Property value from INI file for

2008-08-20 Thread Alexander Shevchuk
Hi Dima, This is one of those MSI "specials". IniLocator table requires .ini file to be present in the default Windows directory: http://msdn.microsoft.com/en-us/library/aa369283(VS.85).aspx "IniLocator Table The IniLocator table holds the information needed to search for a file or directory

Re: [WiX-users] util:CloseApplication - how do I use it

2008-08-20 Thread Neil Sleightholm
I have set the verbose logging on using a property but I was already using '/L*v' to enable logging. I think this is the relevant trace: Info 1603. The file C:\Program Files\xxx\xxx\NetSvrUI.exe is being held in use by the following process: Name: NetSvrUI, Id: 328, Window Title: '(not determin

[WiX-users] Set Property value from INI file for

2008-08-20 Thread Dmitry Berkovich
Hi, I am trying to set property value from INI file, but its not works for me. Its looks that I am doing something wrong. Example of my code: and I have "a.ini" file in same folder where MSI is stored. - start of a.ini - [MySection] MyKey=SomeDat

[WiX-users] wix install/upgrade weirdness

2008-08-20 Thread Alpert, Stephen R (GE Healthcare)
When I installed version .4311, my event viewer logged many events; such as, Error in Template (C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ProjectTemplates\WiX\WixLibrary.zip), file (WixLibrary.vstemplate). Unknown attribute (_locID). Error in Template (C:\Program Files\Microsoft

[WiX-users] Localisation of WixUILicenseRtf

2008-08-20 Thread Neil Sleightholm
Is it possible to have localised versions of WixUILicenseRtf? What I would like to do it something like this: Then in my localisation file: License_ja-jp.rtf But that doesn't work. Neil Neil Sleightholm X2 Systems Limited [EMAIL PROTECTED] --

Re: [WiX-users] Database selection dialog

2008-08-20 Thread Albert At School
As mentioned before; I've something like that online at http://madbutcher.dyndns.org/snippets/ Comments are welcome and when requested enough it may grow into somethong more beautyfull ;) Note that this CA was build for WiX 2.0 and was never tested (by me that is) in WiX 3.0. Regards, Albert

Re: [WiX-users] Localisation of Codepage

2008-08-20 Thread Neil Sleightholm
Thanks that helped. I did find it wasn't as clear cut as I expected. I have several .wxl files one for English and the others for all the other languages I support. Because not all strings are translated yet both in my code and the WiX extensions it is necessary to link with this command line: lig

Re: [WiX-users] How to create compressed output

2008-08-20 Thread Alexander Shevchuk
http://blogs.technet.com/alexshev/archive/2008/04/04/from-msi-to-wix-part-16-installable-items-handling-installation-media.aspx -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Devarajan, Mahesh IN BLR SISL Sent: Wednesday, August 20, 2008 2:45 AM To: wi

Re: [WiX-users] FirewallException Element

2008-08-20 Thread Neil Sleightholm
Request raised: http://sourceforge.net/tracker/index.php?func=detail&aid=2062684&group_i d=105970&atid=642717 Neil -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob Arnson Sent: 19 August 2008 21:51 To: General discussion for Windows Installer XML tools

Re: [WiX-users] Localisation of Codepage

2008-08-20 Thread Brian Rogers
Hey Neil, If you use .wxl files to do your localization you could specify the Codepage as an attribute in that file. This would help normalize this for you a bit. Take a look at the http://schemas.microsoft.com/wix/2006/localization and WXL files. Hope this helps, -- Brian Rogers "Intelligence

Re: [WiX-users] Localisation of Codepage

2008-08-20 Thread Brian Rogers
Hey Neil, If you use .wxl files to do your localization you could specify the Codepage as an attribute in that file. This would help normalize this for you a bit. Take a look at the http://schemas.microsoft.com/wix/2006/localization and WXL files. Hope this helps, -- Brian Rogers "Intelligence

Re: [WiX-users] Customizing ErrorDialog error text?

2008-08-20 Thread Joe Pub
Yea, I thought about that, by perhaps setting the error string property before StartServices and then clear it after StartServices but I wasn't sure how many different errors can occur inside StartServices - it may not make sense to the user if the error is not related to the service failing to sta

Re: [WiX-users] Customizing ErrorDialog error text?

2008-08-20 Thread Neil Sleightholm
Couldn't you just assign the error message to a property and conditionally display it on the error dialog? Neil -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joe Pub Sent: 20 August 2008 17:09 To: General discussion for Windows Installer XML toolset. Su

Re: [WiX-users] Customizing ErrorDialog error text?

2008-08-20 Thread Joe Pub
My dialogs are all custom ones already, the problem I have is that I could obviously add the error text within the custom error dialog, but then errors that are nothing to do with failure to start services will still show the extra text I add. Nice post on the blog though. Thanks 2008/8/20 Neil S

Re: [WiX-users] Customizing ErrorDialog error text?

2008-08-20 Thread Neil Sleightholm
I have just written a blog about customising the WiX UI (v3): http://neilsleightholm.blogspot.com/2008/08/customised-uis-for-wix.html This might help. Neil -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joe Pub Sent: 20 August 2008 16:52 To: General dis

[WiX-users] Customizing ErrorDialog error text?

2008-08-20 Thread Joe Pub
Hi, Is it possible to customize the error text on the ErrorDialog. I have a windows service that gets installed/started with my application, but there are error conditions that can occur during init to prevent the service from starting. Now all this is logged to the windows event log, and some o

Re: [WiX-users] How do I execute deferred CAs (for unit testingcustom actions)?

2008-08-20 Thread John Nannenga
Here's a creative approach: You could use an external UI handler to assist you in unit testing deferred custom actions. You can still create the MSI etc... like documented on code.dblock.org; but instead of actually invoking the custom actions yourself, fire off the install and process the mes

Re: [WiX-users] Dynamically Pick File Source Location

2008-08-20 Thread Eitan Behar
Ok, just pass the variable to candle.exe with parameter -d candle.exe (...) *-d*MyVar=MyValue Then, you can access the value in wix using $(var.MyVar) So, your batch file looks like: Set BuildLatest=Build99 candle.exe (...) *-d*SourceForInstall=BuildLatest light.exe (...) And Wix, looks lik

[WiX-users] Can WiX 2.0 make 64-bit MSI?

2008-08-20 Thread Костиков Александр
I know that exists. But when I try to call 64-bit dll in Custom Action I get "%1 is not a valid Win32 application" error. It seems to me that MSI is 32-bit and it cannot call 64 dll. Is there a way to call 64-bit dll? May be it is supported in WiX 3.0? -

Re: [WiX-users] Dynamically Pick File Source Location

2008-08-20 Thread pavan gadam
Hi Eitan, I am building my Wix Solution through Batch File. To get that number i will have to scan through the directory and find BuildLatest. If there is complicated logic involved to find Buildlatest later then would it not be problem to handle it through DOS commands. Thanks, pavan -

Re: [WiX-users] Dynamically Pick File Source Location

2008-08-20 Thread Eitan Behar
Hi Pavan, How are your running the automated WIX process ? If you are just running a batch file from DOS, use the command: SET MyVariable=BUILD69 (or use any DOS trick to generate the number for you) Systems like FinalBuilder, MSBuild, or BuildForge will allow you to do that automatically. Yo do

[WiX-users] VBScript help

2008-08-20 Thread Andy2k8
I have a VBScript CA that will check for network path by looking for "\\" in the "INSTALLDIR" value and set a property VALIDATEPATH = 1 if match is found or 0 if not found, based on the result of the InStr function.This CA gets triggered when the user clicks next button in the InstallDir dialog wi

Re: [WiX-users] Dynamically Pick File Source Location

2008-08-20 Thread pavan gadam
But how to you set this env variable? I want to write a C# Custom Action. Is it possible in Custom Action to fetch env variable and set it? How do you declare System Environment variable? Thanks, Pavan - This SF.Net email is

Re: [WiX-users] Dynamically Pick File Source Location

2008-08-20 Thread Eitan Behar
You need to use a variable to accomplish this. You have several to choose from: environment, preprocessor, visual studio specific, etc. If you have declared a System Environment variable SrcRootPath use: Where SrcRootPath points to the BUILDxxx folder. You can use instead the format $(var.Vari

[WiX-users] Dynamically Pick File Source Location

2008-08-20 Thread pavan gadam
Hi all, We have a requirement where Builds are getting generated in with increment in Folder Names. (like Build001, Build002). I need to make Source Dynamically pick up proper Higher Build. How to go about it? Thanks, Pavan

[WiX-users] Localisation of Codepage

2008-08-20 Thread Neil Sleightholm
In the WiX help it talks about using a localisation variable for the Package/@SummaryCodepage and this seems like a good idea but you also need to set Product/@Codepage to get the MSI built with the correct codepage. The problem is that when I set Product/@Codepage to a localisation variable e.g

Re: [WiX-users] Votive no longer works

2008-08-20 Thread Pally Sandher
Until today I was using 3.0.4401.0 in Visual Studio 2005 without any problems since it's release at the start of the month. I suggest you guys try installing 3.0.4415.0 from http://wix.sourceforge.net/releases/3.0.4415.0/ as I upgraded to that release this morning with no issues either. I use XP6

Re: [WiX-users] How to create compressed output

2008-08-20 Thread Johan Appelgren
On Wed, Aug 20, 2008 at 12:37 PM, Devarajan, Mahesh IN BLR SISL <[EMAIL PROTECTED]> wrote: > I have tried it , still give the same behaviour..by the way I use > WiXAware to create and compile wix source files. > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On

Re: [WiX-users] How to create compressed output

2008-08-20 Thread Devarajan, Mahesh IN BLR SISL
I have tried it , still give the same behaviour..by the way I use WiXAware to create and compile wix source files. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Appelgren Sent: Wednesday, August 20, 2008 3:53 PM To: General discussion for Windows

Re: [WiX-users] How to create compressed output

2008-08-20 Thread Johan Appelgren
On Wed, Aug 20, 2008 at 11:45 AM, Devarajan, Mahesh IN BLR SISL <[EMAIL PROTECTED]> wrote: > Hi, > > I am new to WiX and we need to deliver our software as in form of single > .msi file and all other media types, program files should be compressed > in to .cab files that are separate from the .msi

[WiX-users] How to create compressed output

2008-08-20 Thread Devarajan, Mahesh IN BLR SISL
Hi, I am new to WiX and we need to deliver our software as in form of single .msi file and all other media types, program files should be compressed in to .cab files that are separate from the .msi file. We use the following code But the output is not creating the .cab file instead all the fil

[WiX-users] XPath or XSLPattern for XmlConfig?

2008-08-20 Thread Zachary Young
Hi, Can someone please verify that XmlConfig uses XPath (and not XSLPattern) for its query language? When I run this: against this: I get the following error in my installation log: ExecXmlConfig: Error 0x80004005: failed to find node: //* in XML fil

Re: [WiX-users] Can I create an MSI that leaves no footprint?

2008-08-20 Thread Buddell, James
Yes, take a look at the ISScript MSIs, they don't have a RegisterProduct action which allows them to achieve the behaviour that you're after. Cheers, James -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jay Thaler Sent: 20 August 2008 02:57 To: wix-user