Terry

Custom Actions

Hi,

Is there any way to make a custom action part of the InstallUISequence rather than the InstallExcuteSequence?

I want to do this so I can run a custom DLL to initialize the Serial Number Key if a previous version is found on the machine. This would be a common occurance if users are updating the application.

Thanks, Terry
UdreaMihai
Posts: 90
Joined: Wed Mar 23, 2005 8:13 am

Hi Terry,

Advanced Installer doesn't yet allow you to place a custom action in InstallUISequence . But you can simply solve your
problem.

Place your custom action under a InstallSequence that exist in InstallExecuteSequence and also in InstallUISequence (LaunchConditions, FindRelatedProducts, AppSearch, CCPSearch, RMCCPSearch, CostInitialize, FileCost, CostFinalize, MigrateFeatureStates).
All this standard actions are executed before "UserRegistrationDlg".

Build your package and then you may open the resulting msi file with a tool like ORCA.
Go to the "InstallExecuteSequence" table -> "SampleCA" row (I suppose that your custom action is called "SampleCA"). Select it and press Ctrl+Shift+X (Cut Row).

Now, just below "InstallExecuteSequence" table is the "InstallUISequence" table. Select it, left-click on the right side panel and press Ctrl+Shift+V (Paste Row).

Now your custom action is part of the InstallUISequence.

Hope this suits your needs.

Best,
Mihai.
Udrea Mihai
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”