Jump to content

Errorhandling and Runonceex


Recommended Posts

I am trying to convert my installation to use the Runonceex. In one of the entries I call a batch procedure, which executes.

However, if the batch procedure failes for a reason (e.g. exit 1) it just continues with the other entries and nothing shows that something has failed.

Is it possible and how to stop further execution and give a clear warning that something has failed using runonceex?

regards

Xaveer

Link to comment
Share on other sites


You can add flags but I don't think theres a way to stop it.

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f
REG ADD %KEY% /v Flags /t REG_DWORD /d "30" /f

0x00000010 Create Error Log File Create C:\Windows\RunOnceEx.err file if errors occur

0x00000020 Create Execution Log File Create a C:\Windows\RunOnceEx.log file with status of commands

http://support.microsoft.com/default.aspx?scid=KB;fr;q232509

Link to comment
Share on other sites

I added this value FLAGS=DWORD:00000030 but no logfiles created.

I have not tried yet the XPlode-utility instead of the RunOnceEx. Will that give me more errorhandling control?

regards

Xaveer

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...