Custom Action help
I am trying to run a custom action as a first step of my MSI. I want my MSI to run the custom action before anything else. We have a custom.exe which does some cleanup prior to the installation. Can someone please tell me what would be my Install Exec Sequence & Condition be?
0 Comments
[ + ] Show comments
Answers (5)
Please log in to answer
Posted by:
chichora123
13 years ago
Posted by:
jmcfadyen
13 years ago
if it is modifying the system as I expect it is based on the name.
It should be scheduled early as possible in the deferred phase. Although it is bad practice to do it in the immediate phase you can get away with it in Corporate land because the installing user will always be an admin account.
I would advise against it if you can help it. By running during the immediate phase you are basically stating the installation will only complete for an admin user.
It should be scheduled early as possible in the deferred phase. Although it is bad practice to do it in the immediate phase you can get away with it in Corporate land because the installing user will always be an admin account.
I would advise against it if you can help it. By running during the immediate phase you are basically stating the installation will only complete for an admin user.
Posted by:
captain_planet
13 years ago
Are you really sure it has to be run right at the start of the Install Execute sequence? (Eg, Before the evaluation of Launch Conditions, AppSearch etc) I'm pretty sure if the custom.exe is just removing a few files/registry/other junk then you should be fine scheduling it immediately after InstallInitialize, and Deferred in a system context.
" cleanup prior to the installation"
If that's the case, your condition should be:
Not Installed
" cleanup prior to the installation"
If that's the case, your condition should be:
Not Installed
Posted by:
anonymous_9363
13 years ago
Posted by:
jmcfadyen
13 years ago
the golden rule of packaging if you modifys the system in any way the CA "MUST" be deferred.
this is because you only have access to the system context on the installer service during this time. If you attempt to run this during the immediate phase you are implicitly saying you will inherit the user context of the initiating user.
this in turn means it will fail if the initiating user is a non admin.
vbscab is spot on as always it would be better to use native tables where suitable.
this is because you only have access to the system context on the installer service during this time. If you attempt to run this during the immediate phase you are implicitly saying you will inherit the user context of the initiating user.
this in turn means it will fail if the initiating user is a non admin.
vbscab is spot on as always it would be better to use native tables where suitable.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.