Re: [WiX-users] C# Custom Action questions

2011-03-13 Thread Mike Edenfield
On 3/11/2011 9:27 AM, Kevin Burton wrote: Along these same lines I tried building the CA project setting the target as x64 just to see if this made a difference. I did get a different error message but it still didn't work: MSI (s) (60:80) [08:07:23:231]: Created Custom Action Server with

Re: [WiX-users] C# Custom Action questions

2011-03-11 Thread Kevin Burton
Installer XML toolset. Subject: Re: [WiX-users] C# Custom Action questions I think I hit something like that. Try building the CA with AnyCPU as the platform rather than 32/64 I have got that error when I forgot the public on the class, though Regards Michael -Original Message- From

Re: [WiX-users] C# Custom Action questions

2011-03-11 Thread Kevin Burton
BUYSEASONS 262-901-2000 Office 262-901-2312 Fax kev...@buyseasons.com -Original Message- From: Michael Osmond [mailto:mosm...@baytech.com.au] Sent: Thursday, March 10, 2011 8:49 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] C# Custom Action questions I

Re: [WiX-users] C# Custom Action questions

2011-03-11 Thread Kevin Burton
...@buyseasons.com -Original Message- From: Michael Osmond [mailto:mosm...@baytech.com.au] Sent: Thursday, March 10, 2011 8:49 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] C# Custom Action questions I think I hit something like that. Try building the CA

Re: [WiX-users] C# Custom Action questions

2011-03-11 Thread Castro, Edwin G. (Hillsboro)
XML toolset. Subject: Re: [WiX-users] C# Custom Action questions I am sorry I had inadvertently set the binary tag to the DLL *not* the CA.dll so with the compile target of the CA specifically set to x86 (*not* Any CPU) the CA is called correctly. Thank you. Kevin Burton Senior Software

Re: [WiX-users] C# Custom Action questions

2011-03-11 Thread Kevin Burton
-2000 Office 262-901-2312 Fax kev...@buyseasons.com -Original Message- From: Castro, Edwin G. (Hillsboro) [mailto:edwin.cas...@fiserv.com] Sent: Friday, March 11, 2011 10:53 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] C# Custom Action questions FYI

Re: [WiX-users] C# Custom Action questions

2011-03-11 Thread Kevin Burton
...@buyseasons.com -Original Message- From: Castro, Edwin G. (Hillsboro) [mailto:edwin.cas...@fiserv.com] Sent: Friday, March 11, 2011 1:00 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] C# Custom Action questions I have a custom action library written

Re: [WiX-users] C# Custom Action questions

2011-03-11 Thread Kevin Burton
- From: Castro, Edwin G. (Hillsboro) [mailto:edwin.cas...@fiserv.com] Sent: Friday, March 11, 2011 2:10 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] C# Custom Action questions I have not tried AnyCPU as that only makes sense if the C++ CA dll is written

Re: [WiX-users] C# Custom Action questions

2011-03-11 Thread Christopher Painter
- Original Message From: Castro, Edwin G. (Hillsboro) edwin.cas...@fiserv.com To: General discussion for Windows Installer XML toolset. wix-users@lists.sourceforge.net Sent: Fri, March 11, 2011 10:53:29 AM Subject: Re: [WiX-users] C# Custom Action questions FYI: The DLL is a .NET assembly

Re: [WiX-users] C# Custom Action questions

2011-03-10 Thread Kevin Burton
, 2011 11:21 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] C# Custom Action questions You shouldn't return failure if the credentials are incorrect, if you do so you will get this error. been there, done that... On Mar 10, 2011 6:34 AM, Kevin Burton kev

Re: [WiX-users] C# Custom Action questions

2011-03-10 Thread Kevin Burton
-Original Message- From: Simon Dahlbacka [mailto:simon.dahlba...@gmail.com] Sent: Wednesday, March 09, 2011 11:21 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] C# Custom Action questions You shouldn't return failure if the credentials are incorrect

Re: [WiX-users] C# Custom Action questions

2011-03-10 Thread Castro, Edwin G. (Hillsboro)
: Kevin Burton [mailto:kev...@buyseasons.com] Sent: Thursday, March 10, 2011 6:05 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] C# Custom Action questions How does the custom action indicate that the credentials are incorrect? Kevin Burton Senior

Re: [WiX-users] C# Custom Action questions

2011-03-10 Thread Kevin Burton
for Windows Installer XML toolset. Subject: Re: [WiX-users] C# Custom Action questions You'll want to set a property that can be checked in a condition. Edwin G. Castro Software Developer - Staff Electronic Banking Services Fiserv Office: 503-746-0643 Fax: 503-617-0291 www.fiserv.com P Please consider

Re: [WiX-users] C# Custom Action questions

2011-03-10 Thread Skildum, Mathew
:21 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] C# Custom Action questions So CA's always return Success. What are the other return values used for? Thank you. For the tip. The problem that I am having now is that it doesn't appear that the CA is getting

Re: [WiX-users] C# Custom Action questions

2011-03-10 Thread Kevin Burton
[mailto:mathew.skil...@aspect.com] Sent: Thursday, March 10, 2011 12:32 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] C# Custom Action questions In cases where you checking things like credentials you want the actions to return success so that the install does

Re: [WiX-users] C# Custom Action questions

2011-03-10 Thread Skildum, Mathew
, but you give them all the chances they need to get it right. Mat Skildum -Original Message- From: Kevin Burton [mailto:kev...@buyseasons.com] Sent: Thursday, March 10, 2011 12:38 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] C# Custom Action questions

Re: [WiX-users] C# Custom Action questions

2011-03-10 Thread Wilson, Phil
discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] C# Custom Action questions This is where you use the property that the action set. You do not allow the user off of the dialog until they enter credentials that work and the property is set to the value you expect. This way

Re: [WiX-users] C# Custom Action questions

2011-03-10 Thread Kevin Burton
To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] C# Custom Action questions This is where you use the property that the action set. You do not allow the user off of the dialog until they enter credentials that work and the property is set to the value you expect

Re: [WiX-users] C# Custom Action questions

2011-03-10 Thread Wilson, Phil
discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] C# Custom Action questions I am not sure what you mean by square one? Are you saying that the checking of credentials that are invalid will throw an exception that is not caught? First I have to solve the problem that I don't think

Re: [WiX-users] C# Custom Action questions

2011-03-10 Thread Kevin Burton
, 2011 12:27 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] C# Custom Action questions I am not sure what you mean by square one? Are you saying that the checking of credentials that are invalid will throw an exception that is not caught? First I have to solve

Re: [WiX-users] C# Custom Action questions

2011-03-10 Thread Castro, Edwin G. (Hillsboro)
for Windows Installer XML toolset. Subject: Re: [WiX-users] C# Custom Action questions This is nothing to do with exceptions. I'm telling you that the act of verifying credentials is a flavor of logon, and that a failure to verify may be treated in exactly the same way as when your service

Re: [WiX-users] C# Custom Action questions

2011-03-10 Thread Kevin Burton
, March 10, 2011 4:11 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] C# Custom Action questions Phil and I both mentioned the potential problem. Run your code for invalid credentials more than once. Try it about 4-12 times (as suggested by Phil). The flow

Re: [WiX-users] C# Custom Action questions

2011-03-10 Thread Kevin Burton
- From: Castro, Edwin G. (Hillsboro) [mailto:edwin.cas...@fiserv.com] Sent: Thursday, March 10, 2011 4:11 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] C# Custom Action questions Phil and I both mentioned the potential problem. Run your code for invalid

Re: [WiX-users] C# Custom Action questions

2011-03-10 Thread Christopher Painter
) edwin.cas...@fiserv.com To: General discussion for Windows Installer XML toolset. wix-users@lists.sourceforge.net Sent: Thu, March 10, 2011 4:11:13 PM Subject: Re: [WiX-users] C# Custom Action questions Phil and I both mentioned the potential problem. Run your code for invalid credentials more than

Re: [WiX-users] C# Custom Action questions

2011-03-10 Thread Michael Osmond
you need to get the credentials out of properties. Michael -Original Message- From: Kevin Burton [mailto:kev...@buyseasons.com] Sent: Friday, 11 March 2011 8:41 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] C# Custom Action questions I hear you

Re: [WiX-users] C# Custom Action questions

2011-03-10 Thread Kevin Burton
. Subject: Re: [WiX-users] C# Custom Action questions Hi Kevin I think your error that it can't find the CA is in the call private static bool CheckCredentials Should be something like: [CustomAction] public static ActionResult CheckCredentials(Session session

Re: [WiX-users] C# Custom Action questions

2011-03-10 Thread Michael Osmond
12:05 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] C# Custom Action questions Thank you Michael, I tried public class CustomActions { private static int checkCount = 1; [CustomAction] public static ActionResult

[WiX-users] C# Custom Action questions

2011-03-09 Thread Kevin Burton
I have a very simple C# Custom Action that is supposed to verify credentials: using Microsoft.Deployment.WindowsInstaller; namespace BuySeasons.BsiServices.Install { public class CustomActions { [CustomAction] public static ActionResult CheckCredentials(Session session)

Re: [WiX-users] C# Custom Action questions

2011-03-09 Thread Christopher Painter
To: General discussion for Windows Installer XML toolset. wix-users@lists.sourceforge.net Sent: Wed, March 9, 2011 3:24:17 PM Subject: [WiX-users] C# Custom Action questions I have a very simple C# Custom Action that is supposed to verify credentials: using Microsoft.Deployment.WindowsInstaller

Re: [WiX-users] C# Custom Action questions

2011-03-09 Thread Kevin Burton
Painter [mailto:chr...@deploymentengineering.com] Sent: Wednesday, March 09, 2011 3:30 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] C# Custom Action questions If I had to guess you calling this CA as a ControlEvent off a Dialog / Control in your UI sequence

Re: [WiX-users] C# Custom Action questions

2011-03-09 Thread Castro, Edwin G. (Hillsboro)
: Kevin Burton [mailto:kev...@buyseasons.com] Sent: Wednesday, March 09, 2011 2:15 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] C# Custom Action questions I think I have solved this problem. The CA was scheduled in the InstallExecuteSequence and was marked

Re: [WiX-users] C# Custom Action questions

2011-03-09 Thread Kevin Burton
XML toolset. Subject: Re: [WiX-users] C# Custom Action questions ICE63 - http://msdn.microsoft.com/en-us/library/aa369008.aspx Edwin G. Castro Software Developer - Staff Electronic Banking Services Fiserv Office: 503-746-0643 Fax: 503-617-0291 www.fiserv.com P Please consider the environment before

Re: [WiX-users] C# Custom Action questions

2011-03-09 Thread Simon Dahlbacka
) [mailto:edwin.cas...@fiserv.com] Sent: Wednesday, March 09, 2011 5:26 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] C# Custom Action questions ICE63 - http://msdn.microsoft.com/en-us/library/aa369008.aspx Edwin G. Castro Software Developer - Staff Electronic