MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

Guidelines for Custom Action Location

created the topic: Guidelines for Custom Action Location
General
Place the custom action as high in the sequence as possible where it executes properly. If it doesn’t execute properly when you test it, keep moving it lower in the sequence until it works.
If the custom action uses information that’s gathered during the User Interface sequence, place it after the actions that gather the information you need.
If the installation is run silently, items in the User Interface sequence do not execute.

Correct Sequence
If the action does this: Place it in this sequence:
Gathers input from an end user
User Interface
Needs to change properties
User Interface or Execute Immediate
Is an Install MSI custom action
Execute Immediate
Is to be executed sometime during the installation of files
Execute Immediate or Execute Deferred

Place it between the InstallInitialize and InstallFinalize actions, near the InstallFiles action. The InstallFiles action installs files during deferred mode.
Makes a change to the system
Execute Deferred
Depends on a previous action in order to run
Execute Deferred

Windows Installer does not perform the action when it runs in Immediate mode. If a custom action depends on a change to the system, and the change has not yet been made, the custom action fails.
Requires elevated privileges to run
Execute Deferred

Actions run in Deferred mode can be run under the system context. See the description of the In-Script Options field in Using the Custom Action Properties Tab.

Restricted Areas

* If an action has restrictions on its placement in the sequence, the restricted areas are shaded in the Installation Sequence list when you select the action in the Actions list. Place the action in a non-restricted area. Restrictions are defined by Windows Installer functionality. Example: You can’t run an action that depends on an installed file if the file is not yet installed.
* If you use the Move Up and Move Down commands on a custom action that has restricted placement, keep in mind that the restricted areas will not be shaded. Before moving an action, select the action in the Actions list to view its restricted areas.
* Formatted Text
* If you use formatted text in a custom action, such as a bracketed property name, the custom action must be placed after the CostFinalize action in the User Interface sequence. This is a Windows Installer requirement.
* If you use formatted text in a custom action, do not put the custom action in the Execute Deferred sequence. Formatted text strings do not convert in the Execute Deferred sequence. The exceptions to this rule are the CustomActionData and ProductCode properties. See Formatted and Obtaining Context Information for Deferred Execution Custom Actions in the Windows Installer SDK Help.

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Top 10 Hard Drive Recovery Tools in 2026: Features, Pros, Cons & Comparison

Meta Description  Discover the top 10 hard drive recovery tools in 2026. Compare their features, pros, cons, pricing, and recovery options to find the best software for…

Read More

Synthesia Alternative Options for Enterprise Training: 2027 Rankings

TL;DR We rank the best Synthesia alternatives for enterprise training in 2027. Colossyan leads the list because it turns your documents into video led courses while you…

Read More

LiverCareFinder.com Review: Finding Hepatology, Liver Surgery and Liver Transplant Centres

Liver conditions range from relatively common problems, such as metabolic dysfunction-associated steatotic liver disease (MASLD), to advanced conditions requiring specialised surgery or transplantation. Choosing the right healthcare…

Read More

DiabetesHospitalFinder.com Review: A Guide to Finding Diabetes Specialists and Comprehensive Endocrine Care

Diabetes management is rarely limited to blood sugar testing and medication alone. Many patients need long-term support involving nutrition, monitoring technologies and regular screening for complications affecting…

Read More

MindCareFinder.com Review: A Mental Healthcare Discovery Platform for Therapy, Psychiatry and Emotional Wellbeing

Finding appropriate mental healthcare can be challenging. People seeking support may be unsure whether they need a psychiatrist, psychologist, counsellor or specialised treatment centre. Privacy, affordability, treatment…

Read More

ENTHospitalFinder.com Review: Finding Ear, Nose, Throat and Head-and-Neck Specialists

Ear, nose and throat conditions can affect hearing, breathing, communication and overall quality of life. Some problems require a straightforward consultation, while others need advanced diagnostic equipment…

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
0
Would love your thoughts, please comment.x
()
x