/build/static/layout/Breadcrumb_cap_w.png

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

0 Comments   [ + ] Show comments

Answers (8)

Posted by: WiseUser 20 years ago
Fourth Degree Brown Belt
0
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.
Posted by: mjccheshire 20 years ago
Senior Yellow Belt
0
Hi thanks for that.

I have just realised that the MSI is coppied locally before being executed, therefore while I was making changes to the network copy this obviously wasn't making any difference to the actual install.

I now have a different error but at least it is progressing.

Cheers

M
Posted by: CLEVERITS_B.RAJI 20 years ago
Yellow Belt
0
Which error do you actually have after copying your .msi to a local Source?


B.Raji

CleverITS
www.cleverits.com
Posted by: mjccheshire 20 years ago
Senior Yellow Belt
0
Hi

I'm now getting a 2753 error saying that the file isn't marked for installation.

I can't remember which error message I was getting.

Ta

M
Posted by: oofemioo 20 years ago
Blue Belt
0
Try moving the custom action lower in the sequence you have chosen.

Does the .exe work when it isnt within the .msi?
Posted by: mjccheshire 20 years ago
Senior Yellow Belt
0
OK the exe is now running after the publish assemblies and I get the same problem of a 2753 error.

If I run the exe outside of the MSI it works fine.
Posted by: oofemioo 20 years ago
Blue Belt
0
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?
Posted by: mjccheshire 20 years ago
Senior Yellow Belt
0
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ