Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

How do I install HB-REG on a new computer

I am trying to install HB-REG on a Windows 7 64-bit notebook. It will not import my userid, nor will it accept my userid when I input it manually.

Unhandled exception has occured in your application. If you click Continue, the application will attempt to continue. If you click Quit, the application will close immediately.

Access to the path "C:\Program Files (x86)\Sawtooth Software\HBreg\sudyname.mru" is denied.


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.UnauthorizedAccessException: Access to the path 'C:\Program Files (x86)\Sawtooth Software\HBReg\studyname.mru' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
   at System.IO.StreamWriter..ctor(String path)
   at HBRegWin.MainForm.SaveIntoMRU(String strNewMRU)
   at HBRegWin.MainForm.Open(String strStudy)
   at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.Command.Invoke()
   at System.Windows.Forms.Control.WmCommand(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
    Assembly Version:
    Win32 Version: 2.0.50727.5448 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
    Assembly Version:
    Win32 Version:
    CodeBase: file:///C:/Program%20Files%20(x86)/Sawtooth%20Software/HBReg/HBRegWin.exe
    Assembly Version:
    Win32 Version: 2.0.50727.5446 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/
    Assembly Version:
    Win32 Version: 2.0.50727.5447 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/
    Assembly Version:
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging

For example:

    <system.windows.forms jitDebugging="true" />

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
asked Jan 28, 2012 by anonymous
retagged Sep 1, 2016 by Walter Williams
Please refrain from posting multiple times.  Thank you.

1 Answer

+3 votes
HB-Reg was written for Windows XP.  Beginning with Windows Vista, the folders under Program Files were protected so that programs could not write data to them.  HB-Reg attempts to write its list of recently used studies (studyname.mru) and the user id file to its program folder.  That is why you are experiencing this problem.

You can manually copy the user id file to C:\Program Files (x86)\Sawtooth Software\HBReg.  Windows may ask you to confirm that action, which you should.  That will solve that issue.

The error with the .mru will not adversly affect estimation, and you can click Continue when it occurs. The fix is somewhat more involved.  Use Windows Explorer to browse to the C:\Program Files (x86)\Sawtooth Software folder.  Right-click on the HBReg folder and select Properties.  On the Security tab, click the Edit... button to change permissions.  In the list of user groups, select Users.  Under its permissions, check Full Control.  Press OK, and OK again at the previous dialog.  That should solve the .mru issue.
answered Jan 28, 2012 by Walter Williams Gold Sawtooth Software, Inc. (20,130 points)