Re: [WiX-users] Error executing sql scripts with WIX

2008-11-12 Thread Kiran Subhedar (Sogeti)
Thanks a lot for all your replies. I saved the file as Unicode and it worked like a champ. So lessons learnt - SQL CA support ANSI and Unicode but not UTF-8. Kiran -Original Message- From: Rob Mensching [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2008 11:39 AM To: General dis

Re: [WiX-users] Including wcautil.h in my project gives a build error

2008-11-12 Thread Alex Ivanoff
We are using "$(WIX)Sdk\Inc" as an additional include directories in our C++ custom actions. > Hello Everyone, > I am trying to use wcautil.h in my project. I get the following error > when I build my project > Error 1 fatal error C1083: Cannot open include file: 'wcautil.h': No > such file or

Re: [WiX-users] Changing Execute mode of customaction depending on OS version

2008-11-12 Thread Richard
In article <[EMAIL PROTECTED]>, "Wilson, Phil" <[EMAIL PROTECTED]> writes: > If it works deferred on Vista it should work deferred on other OS > versions too. I agree with this. The reason you bump into deferred vs. immediate questions is because you CA is trying to do something that requi

Re: [WiX-users] Changing Execute mode of customaction depending on OS version

2008-11-12 Thread Wilson, Phil
The semi-obvious answer is to have two custom actions and call each depending on the OS (the VersionNT property). However if you need it to be deferred on Vista (because of UAC?) I suspect the right answer is that the custom action should be deferred on every OS. If it works deferred on Vista i

Re: [WiX-users] GetProductProperty "The Handle is invalid" error

2008-11-12 Thread Powell, Simon
Thanks for your help. -Original Message- From: Bob Arnson [mailto:[EMAIL PROTECTED] Sent: 12 November 2008 18:59 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] GetProductProperty "The Handle is invalid" error Powell, Simon wrote: > Could you please s

Re: [WiX-users] Error executing sql scripts with WIX

2008-11-12 Thread Rob Mensching
I don't remember the double arrow being part of the UTF-8 BOM. In any case, it woulnd't surprise me if the SQL CA does not support UTF-8. Try UNICODE or ASCII straight. -Original Message- From: Brian Rogers [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2008 11:27 To: General

Re: [WiX-users] Error executing sql scripts with WIX

2008-11-12 Thread Brian Rogers
That's a UTF-8 byte order marker. I wonder if a non-BOM UTF-8 text file would work...? ## $_='^#(/||/@[EMAIL PROTECTED]@:^[-['^";@@@\\>])@.". "{)/];)^{";$,+=(++$,);$_.=">&$,";`$_`; -Original Message- From: Rob Mensching [mailto:[EMAIL PROTECTED] Sent

Re: [WiX-users] Error executing sql scripts with WIX

2008-11-12 Thread Rob Mensching
What's that funky character at the beginning of your file? Try resaving the file as ASCII. -Original Message- From: Kiran Subhedar (Sogeti) [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2008 23:44 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Error executing sql scripts

Re: [WiX-users] Always Reinstall a Component

2008-11-12 Thread Neil Sleightholm
>> Is the component owning the registry key assigned to the feature(s) being reinstalled? Yes. But it is also included in another feature as I need to set it on or off. >> Is the registry key the component's keypath? Yes, there isn't anything else in the component. >> A "us" REINSTALLMODE should

Re: [WiX-users] Custom Action Previleges Error.

2008-11-12 Thread Rob Mensching
WiX toolset already provides a way to register Event Sources. Why write another CustomAciton? -Original Message- From: MadhaviAthota [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2008 02:31 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Custom Action Previleges Error.

[WiX-users] Installing .NET Compact Framework through WiX

2008-11-12 Thread Jason Kemp
Hi all, I've recently started work on a desktop installer for our mobile app. I decided it would be good time to learn WiX, so I'm using WiX to create the desktop installer. I have the basics finished: I can install the mobile app through ActiveSync, as MS recommends, but what we require is a

Re: [WiX-users] Install Localisation

2008-11-12 Thread Bob Arnson
Neil Sleightholm wrote: > No, should I? > If you use -xo without -bf, you should be able to build a .wixout without needing the files. Then re-light to build the .msi with localization. -- sig://boB http://joyofsetup.com/ --

Re: [WiX-users] Is SetProperty broken?

2008-11-12 Thread Bob Arnson
Neil Sleightholm wrote: > I think this is a bug in the SetProperty code - it shouldn't set > msidbCustomActionTypeFirstSequence if the action is only scheduled in > execute. I would also argue that it should be optional whether it is set at > all, what if you wanted it executed in both sequences

Re: [WiX-users] Always Reinstall a Component

2008-11-12 Thread Bob Arnson
Neil Sleightholm wrote: > Sorry for jumping in but it appear we both have the same issue. I have > tried setting REINSTALLMODE to m "Rewrite all required registry entries" > but this doesn't work. Reading the documentation the default for > REINSTALLMODE is "omus" so that probably explains it. I ha

Re: [WiX-users] GetProductProperty "The Handle is invalid" error

2008-11-12 Thread Bob Arnson
Powell, Simon wrote: > Could you please send a simple example of how to obtain the property > "ProductCode"? There is no properties collection for the session object > or it's child database object. I didn't think you could access the > database tables from a deferred custom action? > If you ne

[WiX-users] What would be the best way to go about this?...

2008-11-12 Thread John D. Marinuzzi
I posted last week with some issues I was having with Merge Modules and got some suggestions, but it never really solved my issue. So, maybe I am just not using the correct way to skin this cat. Here is what needs to be done: Our software uses a hardlock key for protection. We no longer use

Re: [WiX-users] Always Reinstall a Component

2008-11-12 Thread Neil Sleightholm
Sorry for jumping in but it appear we both have the same issue. I have tried setting REINSTALLMODE to m "Rewrite all required registry entries" but this doesn't work. Reading the documentation the default for REINSTALLMODE is "omus" so that probably explains it. I have tried this from both the comm

Re: [WiX-users] multiselection of ListBox items

2008-11-12 Thread Brian Rogers
The standard WiX UI feature tree could easily provide this functionality. It looks like this: http://www.codeproject.com/KB/install/WixTutorial2/featuretreenested.png This would require that you define each item as a with a pointing to file/folder items defined in your product. To get the

[WiX-users] multiselection of ListBox items

2008-11-12 Thread Vuchuru, Surekha (SBT US EXT)
Hello Everyone, Does Wix support multiselection of ListBox items? Let's Say I have following items in a listbox. Chinese_Taiwan French_France Italian_Italy Say we select Chinese_Taiwan and Italian_Italy during installation. Based on that selection, those folders need to be copied to the targ

Re: [WiX-users] Custom Action Previleges Error.

2008-11-12 Thread zett42
You need a deferred custom action with no impersonation scheduled in the InstallExecuteSequence after the standard action "InstallInitialize" to make sure the CA is always run with system privileges (if you really need that). You are also forced to per-machine installation then. MadhaviAthota wr

Re: [WiX-users] Is SetProperty broken?

2008-11-12 Thread Neil Sleightholm
The custom action is only in the execute sequence and is a type 307 (type 51 + msidbCustomActionTypeFirstSequence). The documentation for msidbCustomActionTypeFirstSequence is not clear what happens if this is set and you only have the action in execute: "Execute no more than once if present i

[WiX-users] Retain installdir during upgrade

2008-11-12 Thread Andy2k8
Hello What is the best way to avoid the installdir selection dialog during an upgrade?? I'll use a to get already existing product's installation directory. How do i populate WIXUI_INSTALLDIR property with this value upon upgrade?? Any help?? - Andy MSI Developer Schneider Electric:wor

Re: [WiX-users] Reading value from Inifile

2008-11-12 Thread post
Hi, this can easily be done. Take a look here: http://msdn.microsoft.com/en-us/library/aa368012.aspx Read the "Feature and Component State Values" section. Kind regards, Hans > Hi Rob and Bob, > > Thanks for your help, It is working When i place my test.ini file in > C:\Windows. > > But i hav

Re: [WiX-users] Reading value from Inifile

2008-11-12 Thread Chandra Vuppala
Hi Rob and Bob, Thanks for your help, It is working When i place my test.ini file in C:\Windows. But i have another challenge, My Requirement I have FeatureI, Feature2, Feature3 for Every Feature there will be one custom action, now based on feature selection by user, it has to execute th

[WiX-users] Custom Action Previleges Error.

2008-11-12 Thread MadhaviAthota
Hi All, I have written a custom action in DTF to create EventSource. I have written a custom action in WIX file like I am getting security exception. I tried with I tried deferred also, but didn't work. My WIX version is v3.0.4318.0 Thank You, Madhavi. -- View this message in context:

Re: [WiX-users] v3.0.4707.0 doesn't work.

2008-11-12 Thread Pally Sandher
Not yet but I did create a new project in my solution & add the same 5 .wxs files to it as one of the other projects & set the project options exactly as the project the files were copied from & it builds fine. I diff'd the new wixproj file with the old one & the only difference is the old one has

Re: [WiX-users] GetProductProperty "The Handle is invalid" error

2008-11-12 Thread Powell, Simon
I think I need the session property, I just need to know the value of "ProductCode" when running a CustomAction as deferred. -Original Message- From: Brian Rogers [mailto:[EMAIL PROTECTED] Sent: 11 November 2008 22:38 To: General discussion for Windows Installer XML toolset. Subject: Re

Re: [WiX-users] LGHT0001 The operation completed successfully

2008-11-12 Thread Neil Sleightholm
It was working from msbuild and the command line but failing in VS. Now the problem has gone away! The only difference was that I had changed the source rather than rebuilding existing source. I can't reproduce it again. Neil Neil Sleightholm X2 Systems Limited [EMAIL PROTECTED]

Re: [WiX-users] Install Localisation

2008-11-12 Thread Neil Sleightholm
No, should I? Neil Neil Sleightholm X2 Systems Limited [EMAIL PROTECTED] From: Bob Arnson [mailto:[EMAIL PROTECTED] Sent: Wed 12/11/2008 05:53 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Inst

Re: [WiX-users] Reading value from Inifile

2008-11-12 Thread Chandra Vuppala
Hi Bob, you mean C:\Windows this ? Thanks & Regards, Chandrashekar vuppala M-9908298419 Oakton Global Technology Services Centre (India) Results Driven. When Business & IT Matters From: Bob Arnson [mailto:[EMAIL PROTECTED] Sent: Wed 12/11/2008 11:20 AM To: G

Re: [WiX-users] GetProductProperty "The Handle is invalid" error

2008-11-12 Thread Powell, Simon
Could you please send a simple example of how to obtain the property "ProductCode"? There is no properties collection for the session object or it's child database object. I didn't think you could access the database tables from a deferred custom action? Please help, I'm very stuck. Thanks Simo