Jump to content

Unnatended Creator - Adding User [Fixed]


Recommended Posts

Posted

Produces an error:


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

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at W7T.frmUnattended.UpdateText()
at W7T.frmUnattended.cmdUOK_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(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 **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5669 (QFE.050727-5600)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
W7T
Assembly Version: 1.3.0.47
Win32 Version: 1.3.0.47
CodeBase: file://192.168.1.2/Public/Customization/W7ToolKit/W7T.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5446 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5668 (QFE.050727-5600)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Management
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------

************** 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
enabled.

For example:

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

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.

Posted (edited)

Also, users doesnt apper to be added into Unattended.xml

At least they dont show up in editor.

Also users, cannot be deleted...under users tab... :g:

Actually first user, is getting added, but Unattended.xml file stays incomplete and cannot be used that way... :notworking:

Edited by Etz
Posted

What was you doing to cause that first error?

Adding user, filled in all details, clicked OK, immidiately got this error...

Posted (edited)

OK...

Figured out, If i fill in anything besides username, I get this error and it breaks Autounnatended.xml file.

If I only fill in username and doesnt change usergroup, it works.

Also if I insert second user, same thing happens...

:help:

Edited by Etz
Posted (edited)

v1.3.0.48A - Seems to work as should, will test and report back ;)

Edited by Etz
Posted (edited)

Yep...

Its definately fixed now... :thumbsup:

But we still have an issue, this time it seems, like something is wrong with produced file:

Capture.PNG

Relevant part of DISM.log


2011-10-02 03:35:59, Error DISM DISM Unattend Manager: PID=2708 ------Unattend setting error / warning------ - CUnattendManager::UnattendDumpSetting
2011-10-02 03:35:59, Error DISM DISM Unattend Manager: PID=2708 Error code = 0x800705b9 - CUnattendManager::UnattendDumpSetting
2011-10-02 03:35:59, Info DISM DISM Unattend Manager: PID=2708 File path = [D:\Temp\Autounattend.xml] - CUnattendManager::UnattendDumpSetting
2011-10-02 03:35:59, Info DISM DISM Unattend Manager: PID=2708 Line number = 60 - CUnattendManager::UnattendDumpSetting
2011-10-02 03:35:59, Info DISM DISM Unattend Manager: PID=2708 Column number = 17 - CUnattendManager::UnattendDumpSetting
2011-10-02 03:35:59, Info DISM DISM Unattend Manager: PID=2708 -------------------------------------------- - CUnattendManager::UnattendDumpSetting
2011-10-02 03:35:59, Error DISM DISM Unattend Manager: PID=2708 d:\w7rtm\base\ntsetup\opktools\dism\providers\unattendprovider\dll\unattendmanager.cpp:374 - CUnattendManager::Apply(hr:0x800705b9)
2011-10-02 03:35:59, Error DISM DISM Unattend Manager: PID=2708 d:\w7rtm\base\ntsetup\opktools\dism\providers\unattendprovider\dll\unattendmanager.cpp:654 - CUnattendManager::InternalExecuteCmdLine(hr:0x800705b9)
2011-10-02 03:35:59, Error DISM DISM Unattend Manager: PID=2708 d:\w7rtm\base\ntsetup\opktools\dism\providers\unattendprovider\dll\unattendmanager.cpp:603 - CUnattendManager::ExecuteCmdLine(hr:0x800705b9)

Edited by Etz
  • 2 weeks later...
Posted (edited)

.52B has an interesting "bug" , if you import xml file (created with .50A) which contains users, users are added twice... :g:

(tried to create new one, with current release, and then import it back, still same...)

Its not an big deal, because you can delete those under users tab, but still... :P

Also, "Users" folder location and ProgramData location doesnt get imported...

BTW... importing doesnt detect, for which archidecture Unattended file is, it defaults it always to x86. :)

Oddly, if Unattended file is applied to Image, Network Location and Updates settings doesnt "stick" anymore, after install windows still asks them.

Edited by Etz
Posted (edited)

Confirmed .53B has same Bugs as mentioned in previous post...

:help:

Edited by Etz
Posted

.52B has an interesting "bug" , if you import xml file (created with .50A) which contains users, users are added twice... :g:

(tried to create new one, with current release, and then import it back, still same...)

Its not an big deal, because you can delete those under users tab, but still... :P

Fixed (v55)

Also, "Users" folder location and ProgramData location doesnt get imported...

BTW... importing doesnt detect, for which archidecture Unattended file is, it defaults it always to x86. :)

Fixed (v55)

Oddly, if Unattended file is applied to Image, Network Location and Updates settings doesnt "stick" anymore, after install windows still asks them.

Haven't tested yet :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...