Write errormessage to registry? - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

rpbrongers
Posts: 1
Joined: Mon Mar 07, 2011 1:58 pm

Write errormessage to registry?

Hello,

We have created an msi with a prerequisite. When running the msi silently, an error is written to the eventlog when the prerequisite is not met. Would it be possible to also write a specific registry value in this case?

The background for this question is the following (excerpt from Citrix Receiver documentation, Receiver is the process that installs other msi's (silently)):
Many installers contain Custom Actions that check some feature of the target machine and can cause the install to terminate if the conditions are not met. In this case, the only information that Receiver has about the installation failure is the installer exit code which normally corresponds to 'Fatal Installer Error'. To provide more useful information the installer can store a message providing more information about the failure in the Registry. The installerDetailExitMessagePath element is then set to the Registry path of this string. Receiver will pick up the message and include it in user and administrative logging to help diagnosis of the installation failure.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Write errormessage to registry?

Hello and welcome to the Advanced Installer Forums,

Unfortunately, you cannot include feature-based prerequisites when performing a MSI silent installation. Feature-based prerequisites can be included only when installing the package with full UI.
Would it be possible to also write a specific registry value in this case?
If you are using a MSI package I'm afraid this is impossible.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”