Just a little more information. From the installation log I get:

MSI (s) (F4:58): Doing action: InstallServices
Action start 10:11:13: InstallServices.
GenerateScript: Installing new services
Action ended 10:11:13: InstallServices. Return value 1.
MSI (s) (F4:58): Doing action: ChangeServiceAccount
Action start 10:11:13: ChangeServiceAccount.
GenerateScript: Change PPC Service accounts
Action ended 10:11:13: ChangeServiceAccount. Return value 1.
MSI (s) (F4:58): Doing action: StartServices
Action start 10:11:13: StartServices.
GenerateScript: Starting services

. . . . 

MSI (s) (F4:58): Executing op: ServiceInstall(Name=Tandem Heartbeat 
Service,DisplayName=Tandem Heartbeat Service,ImagePath=C:\Program 
Files\Visa\ApplicationServer\ApplicationServer.exe,ServiceType=16,StartType=2,ErrorControl=1,,,,,Password=**********,Desc
ription=Heartbeat message to the Tandem.)
MSI (s) (F4:58): Executing op: ServiceInstall(Name=PPC Service,DisplayName=PPC 
Remoting Service,ImagePath=C:\Program 
Files\Visa\ApplicationServer\ApplicationServer.exe,ServiceType=16,StartType=2,ErrorControl=1,,,,,Password=**********,Description=PPC
 Remot
ing Service.)
MSI (s) (F4:58): Executing op: 
ActionStart(Name=ChangeServiceAccount,Description=Change PPC Service accounts,)
Action 10:11:39: ChangeServiceAccount. Change PPC Service accounts
MSI (s) (F4:58): Executing op: 
CustomActionSchedule(Action=ChangeServiceAccount,ActionType=1025,Source=BinaryData,Target=ChangeServiceAccount,)
MSI (s) (F4:58): Creating MSIHANDLE (2) of type 790536 for thread 3416
Action ended 10:11:49: InstallFinalize. Return value 3.


It is the ChangeServiceAccount that I need the properties set for. Then there is the 
dump of properties, of which I am only interested in the following. 

Property(C): SERVICEUSER = PPC\Administrator
Property(C): SERVICEPASSWORD = **********
Property(C): PASSWORDCONFIRMATION = **********

So the properties seem to be set in the property table but in the custom action 
(ChangeServiceAccount) when I am using MsiGetProperty and the properties are coming 
back blank or a zero length string. This is why the custom action returns an error and 
starts the rollback process above. I am not very familiar with the log file format so 
I am not sure why the ChangeServiceAccount custom action is listed twice in the log. 
Anyway, any ideas as to why the properties don't seem to get set from the dialog?

Kevin

-----Original Message-----
From: Burton, Kevin 
Sent: Monday, September 27, 2004 8:51 AM
To: 'Jim Geurts'
Cc: [EMAIL PROTECTED]
Subject: RE: Dialog tutorial


Again thank you for the response.

I have:

                <control dialog="UserCredentialDlg" name="UserName" type="Edit"
                    x="18" y="85" width="252" height="18" attr="7"
                    property="SERVICEUSER"
                    text="[SERVICEUSER]"
                    nextcontrol="PasswordLabel" />
                <control dialog="UserCredentialDlg" name="Password" type="Edit"
                     x="18" y="122" width="252" height="18" attr="2097159"
                     property="SERVICEPASSWORD"
                     text="[SERVICEPASSWORD]"
                     nextcontrol="PasswordConfirmationLabel" />    
                <control dialog="UserCredentialDlg" name="PasswordConfirmation" 
type="Edit"
                    x="18" y="159" width="252" height="18" attr="2097159"
                    property="PASSWORDCONFIRMATION"
                    text="[PASSWORDCONFIRMATION]"
                    nextcontrol="Back" />

The dialog containing these controls is run early on. The custom action that needs 
these properties is specified as:

            <customactions>
. . .
                <customaction action="ChangeServiceAccount" type="1025" 
source="PPCINSTALLATIONSUPPORT" target="ChangeServiceAccount" />
. . .
            </customactions>

and in the sequence table as:

            <sequences>
. . .
                <sequence type="installexecute" action="ChangeServiceAccount" 
value="5810" condition="NOT Installed" />
             </sequences>

I pop up a message box in the custom action when there is an error and I display the 
properties that should have been set and they are blank. This custom action is set to 
run after the services have been installed so this is well down the line from when the 
properties should have been set. I am prompted for the properties very early in the 
installation process but when they are needed they seem to be blank. I need the 
services to be installed before I can use these properties so that is why I cannot 
call the custom action as part of the <controlconditions> (at least as far as I 
understand it).

Kevin



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
NAntContrib-Developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer

Reply via email to