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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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.
Answered 11/18/2004 by: WiseUser
Fourth Degree Brown Belt

Please log in to comment
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
Answered 11/18/2004 by: mjccheshire
Senior Yellow Belt

Please log in to comment
0
Which error do you actually have after copying your .msi to a local Source?


B.Raji

CleverITS
www.cleverits.com
Answered 11/18/2004 by: CLEVERITS_B.RAJI
Yellow Belt

Please log in to comment
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
Answered 11/19/2004 by: mjccheshire
Senior Yellow Belt

Please log in to comment
0
Try moving the custom action lower in the sequence you have chosen.

Does the .exe work when it isnt within the .msi?
Answered 11/19/2004 by: oofemioo
Blue Belt

Please log in to comment
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.
Answered 11/19/2004 by: mjccheshire
Senior Yellow Belt

Please log in to comment
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?
Answered 11/19/2004 by: oofemioo
Blue Belt

Please log in to comment
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.
Answered 11/19/2004 by: mjccheshire
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity