Executable run in MSI
Hi Guys
I have an application I have MSI'd and this works fine. However I need some information adding to a registry key and to the hosts file.
I have written a nice VB executable for this information to be written which I have added via Installshield X as a custom action.
This is set to run after the PachFiles action in Installation - Execute.
When running the MSI it fails with an error saying that it needs to be scheduled between the InstallInitialise and InstallFinalise!
My question is quite simple really - WHY?
Thanks in advance for any help.
M
I have an application I have MSI'd and this works fine. However I need some information adding to a registry key and to the hosts file.
I have written a nice VB executable for this information to be written which I have added via Installshield X as a custom action.
This is set to run after the PachFiles action in Installation - Execute.
When running the MSI it fails with an error saying that it needs to be scheduled between the InstallInitialise and InstallFinalise!
My question is quite simple really - WHY?
Thanks in advance for any help.
M
0 Comments
[ + ] Show comments
Answers (8)
Please log in to answer
Posted by:
WiseUser
20 years ago
I'm not that familiar with Installshield X, but you should make your custom action execute deferred, because it's making changes to the system.
Ideally you should be adding your registry keys through the registry table, and you should use DNS if you can (rather than hosts). But then again, that's up to you.
Ideally you should be adding your registry keys through the registry table, and you should use DNS if you can (rather than hosts). But then again, that's up to you.
Posted by:
mjccheshire
20 years ago
Posted by:
CLEVERITS_B.RAJI
20 years ago
Posted by:
mjccheshire
20 years ago
Posted by:
oofemioo
20 years ago
Posted by:
mjccheshire
20 years ago
Posted by:
oofemioo
20 years ago
In order to troubleshoot custom actions,
1. Try moving to a different sequence or further down the sequence;
2. If custom action requires elevated privileges, on the properties tab, set the In-Script options to Deferred Execution- System Context;
3 Is the custom action changing the value of a restricted public property?
1. Try moving to a different sequence or further down the sequence;
2. If custom action requires elevated privileges, on the properties tab, set the In-Script options to Deferred Execution- System Context;
3 Is the custom action changing the value of a restricted public property?
Posted by:
mjccheshire
20 years ago
1. I have already moved the custom action once with the same effect.
2. I am running the installation with local admin rights.
3. The exe is adding a line to the hosts file and adding some information to the proxy exceptions registry key. I need to keep the current entires in both the hosts file and proxy exceptions though.
2. I am running the installation with local admin rights.
3. The exe is adding a line to the hosts file and adding some information to the proxy exceptions registry key. I need to keep the current entires in both the hosts file and proxy exceptions though.
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.