Hi,
When I click on a button nothing happens.
This happens because a button requires control events to know what to do. For example, you can use a
NewDialog control event to show a dialog and a
SetProperty control event to set an installer property.
So I thought I needed a readydlg
Please note that the Maintenance mode already contains this type of dialogs for all three default options:
-
VerifyRepairDlg for the "Repair" option
-
VerifyRemoveDlg for the "Remove" option
-
VerifyReadyDlg for the "Modify" option
You can modify these dialogs to suit your needs. Since you cannot send us the project you are using, I'm not sure what settings you are using.
if i select modify, it displays my dialog with install host, install client and install client & host. I want it to re-install whatever item I select (push button select).
For the "Modify" option Advanced Installer shows by default the "CustomizeDlg" dialog. Therefore, you can modify "CustomizeDlg" to fit your needs. However, this is not recomended if your package uses the "SetupTypeDlg" dialog ("CustomizeDlg" is the same for all dialog sequences).
If you cannot modify "CustomizeDlg", you can create a custom dialog which replaces it. Perhaps the
Add a dialog after "SetupTypeDlg" how-to will help you (it doesn't explain your exact scenario, but it shows how to manipulate the dialogs).
I'm not sure how your project is configured, but it should contain two features in the
Organization page: one for client and one for host. The "Install Client" button should use these published control events:
Code: Select all
[InstallMode] Repair 1
[Progress1] [CtrlEvtRepairing] 1
[Progress2] [CtrlEvtrepairs] 1
ReinstallMode ecmus OutOfDiskSpace <> 1
Reinstall InstallClient OutOfDiskSpace <> 1
EndDialog Return OutOfDiskSpace <> 1
EndDialog Return OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"
EnableRollback False OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"
SpawnDialog OutOfDiskDlg (OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")
SpawnDialog OutOfRbDiskDlg OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)
The are the published control events for the default "Repair" button on the "MaintenanceTypeDlg" dialog and for the "Repair" button on "VerifyReadyDlg". Note that the
Reinstall property is set to the
InstallClient feature in order to repair only this feature. For the "Install Host" button the property should be set to the "InstallHost" feature. Also, for the button which repairs both features
Reinstall should be set to
All.
Regards,
Cosmin