KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

Kixforms and Windows PE

 
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion
View previous topic :: View next topic  
Author Message
Ashmite
KiXforms Dabbler
KiXforms Dabbler


Joined: 27 Apr 2004
Posts: 13

PostPosted: Mon Nov 07, 2005 9:06 pm    Post subject: Kixforms and Windows PE Reply with quote

Has anyone tried to get Kixforms working in Windows PE (not to be confused with Bart PE)?

PE is pretty stripped down of most extraneous components. It looks like kixforms partially work as the form will display with out any errors, but that is about it. I just get a bunch of 0's and 1's for error codes in the CMD prompt

Shawn,
Can you list the dependicies for Kixforms so I can try to figure out how to include them in my PE build.

Thx,
--Joel
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Mon Nov 07, 2005 11:05 pm    Post subject: Reply with quote

Here's a list of dependencies, hope this helps:
ADVAPI32.DLL
COMCTL32.DLL
COMDLG32.DLL
GDI32.DLL
KERNEL32.DLL
KIXFORMS.DLL
MPR.DLL
MSVCRT.DLL
NTDLL.DLL
OLE32.DLL
OLEAUT32.DLL
RPCRT4.DLL
SHELL32.DLL
SHLWAPI.DLL
USER32.DLL
VERSION.DLL
WS2HELP.DLL
WS2_32.DLL
WSOCK32.DLL

-Shawn
Back to top
View user's profile Send private message
Ashmite
KiXforms Dabbler
KiXforms Dabbler


Joined: 27 Apr 2004
Posts: 13

PostPosted: Tue Nov 08, 2005 12:46 am    Post subject: Reply with quote

Cool! Thanks Shawn. I'll try it out tomorrow and let you know how it goes. I'm thinking Kixforms would make a nice tool to create a Windows PE menu instead of the command prompt.

--Joel
Back to top
View user's profile Send private message
Radimus
KiXforms Enthusiast
KiXforms Enthusiast


Joined: 05 Mar 2003
Posts: 157
Location: Tampa, Florida

PostPosted: Tue Nov 08, 2005 1:47 am    Post subject: Reply with quote

assuming the dependancies are there, then all that should need to be done is export the reg key for KF from a regular XP box, then reg it in PE (each time booted)

Hopefully it will work.

If it does, then it can get 'installed permanently " by loading into the hive on the image
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Ashmite
KiXforms Dabbler
KiXforms Dabbler


Joined: 27 Apr 2004
Posts: 13

PostPosted: Tue Nov 08, 2005 2:44 pm    Post subject: Reply with quote

Hmm.... still not working.

All the listed DLL's are included in the default PE build, except from Kixforms.dll. I'm using Regsvr32 /s to register the Dll at startup, which is one of the accepted methods.

The following keys are in the registry:

HKLM\Software\Classes\Kixtart.Forms
HKLM\Software\Classes\Kixtart.Forms.Dialogs
HKLM\Software\Classes\Kixtart.System
HKLM\Software\Classes\Kixtart.System1

The respective references CLSID keys are located within HKLM\Software\Classes\CLSID

I wonder if this is a Kix32.exe dependency issue.

Thoughts?

--Joel
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Tue Nov 08, 2005 2:52 pm    Post subject: Reply with quote

You say your getting a partial form ? Your going to have to put tracer messages in your script to figure-out where the first failure is. Or slowly build-up a small test script, adding things until it breaks. Then advise about a specific property or method that isn't working.
Back to top
View user's profile Send private message
Ashmite
KiXforms Dabbler
KiXforms Dabbler


Joined: 27 Apr 2004
Posts: 13

PostPosted: Tue Nov 08, 2005 3:56 pm    Post subject: Reply with quote

OK, the below code does indeed make the form. The only object that appears on the form is the File menu. There should be an Exit menu item on the File menu. The groupbox and treeview do not appear. The script does run with no execution errors and does function correctly in normal Windows.

Where I though I was getting error codes are actually the assignments at the bottom. For example

Code:

$node.LabelEdit = 1


This is the first line that I get output in the command window. I get a '1'

Similarly the assignments here give me '100100102102'

Code:

$a.ImageIndex = 100
$a.SelectedImageIndex = 100
$a = $node.Nodes.Add("All Domain Controllers")   
$a.ImageIndex = 102
$a.SelectedImageIndex = 102



Full Script file

Code:

Break On

$System = CreateObject("Kixtart.System")

$Form = Form()

$Form.Show
While $Form.Visible
 $=Execute($System.Application.DoEvents)
Loop

Function Form()

Dim $this

   $this = $System.Form()
   $this.Size = 640,480
   $this.Center
   $this.Text = "PE Test Form"

   $this.ToolGroupBox = $this.GroupBox()
   $this.ToolGroupBox.Height = 30
   $this.ToolGroupBox.Dock = 1   
   $this.ToolGroupBox.BackColor = "White"
   
   $this.Menu = $System.MainMenu()
   $this.Menu.Style = 1
   $this.Menu.ImageList = $System.BuiltinImageList()

   $this.FileMenu = $this.Menu.MenuItems.Add("File")
   
    $this.ExitMenu = $this.FileMenu.MenuItems.Add("Exit")
   $this.ExitMenu.ImageIndex = 3
    $this.ExitMenu.OnClick = "Quit()"

   $this.TreeView1 = $this.TreeView()
   $this.TreeView1.ImageList = $this.ImageList1
   $this.TreeView1.OnAfterSelect = $System.EventHandler($this,"AfterSelect")
   $this.TreeView1.ImageList = $System.BuiltinImageList
   $this.TreeView1.ImageIndex = 45
   $this.TreeView1.SelectedImageIndex = 46
   $this.TreeView1.ShowPlusMinus = 1
   $this.TreeView1.ShowLines = 1
   $this.TreeView1.ShowRootLines = 1
   $this.TreeView1.HotTracking = 0
   $this.TreeView1.FullRowSelect = 0
   $this.TreeView1.HideSelection = 0
   $this.TreeView1.CheckBoxes = 0
   $this.TreeView1.Sorted = 0
   $this.TreeView1.LabelEdit = 1
   $this.TreeView1.Width = 150
   $this.TreeView1.Dock = 3   
   
   $this.Computers = $this.TreeView1.Nodes.Add("Computers")
   $this.Computers.ImageIndex = 62
   $this.Computers.SelectedImageIndex = 62
   
   $node = $this.Computers.Nodes.Add("All Computers")
   $node.LabelEdit = 1
   
   $node = $node.Nodes.Add("Windows Servers")
   $a = $node.Nodes.Add("All Windows Servers")
   $a.ImageIndex = 100
   $a.SelectedImageIndex = 100
   $a = $node.Nodes.Add("All Domain Controllers")   
   $a.ImageIndex = 102
   $a.SelectedImageIndex = 102
   
   
   $Form = $this

EndFunction
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group