MSFN Forum: Adding one exe file with just one DLL - MSFN Forum

Jump to content



  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Adding one exe file with just one DLL regsvr32 doesn't work :/ Rate Topic: -----

#1 User is offline   EvilGuinness 

  • Newbie
  • Group: Members
  • Posts: 44
  • Joined: 10-March 04

Posted 25 March 2004 - 03:54 AM

Hello,

after booting my PE from a RIS server, I add scripting to PE without a problem : regsvr32 works fine for all the DLL's I need, and launching cscript "hello.vbs" gives me a wonderfull msgbox :)

I need to add an executable file that comes with a DLL file (noinput.exe and noinput.dll, something to block the keyboard and the mouse). I put the exe and dll in the "system32" directory. When I try to launch directly noinput.exe, it says "the system cannot find the file specified" or something like that.

Well, I do the regsvr32 noinput.dll....but I have an error : "noinput.dll was loaded, but the DllRegisterServer entry point was not found. The file cannot be registered".

I don't understand why it doesn't work : the dll files for scripting are registered, but this file doesn't want...

I don't find really interesting things on the net (the microsoft website itself didn't give me any interesting result : I found my error message, but nothing interesting to avoid it). I found someone who had the same problem (http://forums.aspfre...m/t21741/s.html) but I can't change the dll code, and regasm doesn't exist...Oh, I found this too : http://forums.devshe...archive/t-29188. Is there anything related with these "activeX dll's"???

edit : lots of people had this message, but I cvan't find anything that works for me...

Thanks!


#2 User is offline   CuBie 

  • Advanced Member
  • PipPipPip
  • Group: Banned
  • Posts: 364
  • Joined: 21-February 04

Posted 25 March 2004 - 06:54 AM

Try putting the .dll and the .exe in there own folder in the root of the cd! :)

Quote

"noinput.dll was loaded, but the DllRegisterServer entry point was not found. The file cannot be registered".


Means that the dll cant be registered so just do like i said above! :rolleyes:

Also if that dont work the program may need some other files or runtime files to make it work!

Chris.

#3 User is offline   EvilGuinness 

  • Newbie
  • Group: Members
  • Posts: 44
  • Joined: 10-March 04

Posted 25 March 2004 - 07:01 AM

Thanks for your answer, but moving the files doesn't do anything : same results! :)

Edit : I'm watching the files to know if something else is needed, but it seems that there is only the exe and dll files.

#4 User is offline   CuBie 

  • Advanced Member
  • PipPipPip
  • Group: Banned
  • Posts: 364
  • Joined: 21-February 04

Posted 25 March 2004 - 07:12 AM

hmm... Ill see what i can do!

Ill get back to ya on this :)

Chris.

#5 User is offline   CuBie 

  • Advanced Member
  • PipPipPip
  • Group: Banned
  • Posts: 364
  • Joined: 21-February 04

Posted 25 March 2004 - 07:14 AM

Add the vb runtimes to system32 - vb dll's cant be regsvr32'ed and they require extra files so add them and i bettcha it will work!

Dont foget to add noinput.exe and noinput.dll back to system32

Ill post the link to the files (runtimes) in a sec.

Chris

#6 User is offline   CuBie 

  • Advanced Member
  • PipPipPip
  • Group: Banned
  • Posts: 364
  • Joined: 21-February 04

Posted 25 March 2004 - 07:16 AM

www.fruitytooty.com/VB6RUNTIMES.zip

Extract the zip and put all the files in your pe\i386\system32 dir.

Let me know how it goes :)

Chris.

#7 User is offline   EvilGuinness 

  • Newbie
  • Group: Members
  • Posts: 44
  • Joined: 10-March 04

Posted 25 March 2004 - 07:54 AM

I downloaded the files, put them in system32...and now I'm waiting. I come back as soon as I see if it works or not.

#8 User is offline   EvilGuinness 

  • Newbie
  • Group: Members
  • Posts: 44
  • Joined: 10-March 04

Posted 25 March 2004 - 07:59 AM

No, it doesn't work....but thanks for your help and the time you spend for me :)

edit : oh, someone in my office has found the source code (hum, is it an English word? I'm not sure...), I'm looking at it.

edit2 : no, I would spend too much time to write something in it...

#9 User is offline   scp 

  • Junior
  • Pip
  • Group: Members
  • Posts: 84
  • Joined: 23-March 04

Posted 25 March 2004 - 05:46 PM

This error message means that the dll is not a self registering DLL, so it don't works with regsvr32. One chance is, that it is a self installing DLL, try:
regsvr32 /i /n noinput.dll

You can find out, if a DLL is self registering or not if you use a tool like EXESCOPE and watch at the Exports.
A self registering DLL has a exported function named DLLRegisterServer
A self installing DLL has a exported function named DLLInstall
Its possible that one DLL has both entries.

#10 User is offline   EvilGuinness 

  • Newbie
  • Group: Members
  • Posts: 44
  • Joined: 10-March 04

Posted 26 March 2004 - 02:39 AM

Thanks for your help, but installing doesn't work. I'm going to look for an other solution that doesn't use this exe!

#11 User is offline   CuBie 

  • Advanced Member
  • PipPipPip
  • Group: Banned
  • Posts: 364
  • Joined: 21-February 04

Posted 26 March 2004 - 07:11 AM

Maybe i can write a program to do it for you? If you want?

Chris. :)

#12 User is offline   EvilGuinness 

  • Newbie
  • Group: Members
  • Posts: 44
  • Joined: 10-March 04

Posted 26 March 2004 - 07:18 AM

Oh, well, it would be just perfect if it works under PE, but I can't send you money! :)
If you can do it, and if it doesn't take you too much time, I would be very glad....thanks a lot!

edit : it's just a program that blocks the keyboard and the mouse. I don't know if it's hard to do...

edit 2 : eh, speaking English forbids me to say how glad I am, it would be easier in French :rolleyes:

#13 User is offline   CuBie 

  • Advanced Member
  • PipPipPip
  • Group: Banned
  • Posts: 364
  • Joined: 21-February 04

Posted 26 March 2004 - 08:11 AM

EvilGuinness, on Mar 26 2004, 07:18 AM, said:

Oh, well, it would be just perfect if it works under PE, but I can't send you money! :)
If you can do it, and if it doesn't take you too much time, I would be very glad....thanks a lot!

edit : it's just a program that blocks the keyboard and the mouse. I don't know if it's hard to do...

edit 2 : eh, speaking English forbids me to say how glad I am, it would be easier in French :rolleyes:

lol.. nnooo i don't want no moneys! :D

I enjoy programming!

I look into it later on today - im making a Unatended XP CD! :D

Chris.

#14 User is offline   EvilGuinness 

  • Newbie
  • Group: Members
  • Posts: 44
  • Joined: 10-March 04

Posted 26 March 2004 - 08:25 AM

That's ok, you take all the time you want, I didn't hope someone could do something like that, so I won't say anything if you take even more than one month to do it :)

Just to say that I'm in France, and I stop working in less than two hours. I'm back monday morning : you don't need to do it now! (I mean, I will not be fired if I don't do this today...I need to improve my English skills)
You can wait the next week....I don't want to "force" you! :rolleyes:

#15 User is offline   Bilou_Gateux 

  • Powered by Windows Embedded
  • PipPipPipPipPip
  • Group: Members
  • Posts: 766
  • Joined: 03-January 04

Posted 26 March 2004 - 10:04 AM

To disable mouse and keyboard, you should install a special driver from the Windows Server Appliance Kit.

With SAPrep, you can configure your server to boot "headless" without keyboard and mouse connected.

After copying this special drivers, you should add them to your WinPE and configuring registry to load them...

I haven't check this kind of install but i'm currently working at works to build a Windows 2000 Server as web server without local accessibility (keyboard and mouse disabled) using the SA kit.

SAK - Making the server appliance headless

Quote

Although not a requirement, as the OEM, you can make an appliance headless by configuring it to only be accessed remotely. A headless appliance does not use, or need to be connected to, a dedicated keyboard, mouse, or monitor.

After the target image is functioning correctly with all OEM drivers and custom software components installed, you can make it headless by running the \\oemtools\nullvga\saprep.exe utility on the Server Appliance Kit CD. If the -D flag is specified on the command line, the saprep command will remove the keyboard, mouse, and monitor drivers, and install the null VGA driver on the target image.

Note A reboot is required after running saprep -d to make the changes take effect, for example, to make the server appliance headless.

Usage: SAPREP
[options]:

-d Disable VGA, kboard, & mouse devices.
OEM must remove the video card.

-v Disable kboard & mouse devices. VGA driver must be updated with null VGA driver.
OEM will keep the video card on the machine.

-u Enable VGA, kboard, & mouse devices.
Can be used to re-enable the kboard, mouse, & monitor for troubleshooting.

The default action is to leave the devices enabled.


#16 User is offline   EvilGuinness 

  • Newbie
  • Group: Members
  • Posts: 44
  • Joined: 10-March 04

Posted 29 March 2004 - 02:40 AM

How unlucky I am :rolleyes:
It would be the best thing to use, but we don't have this Appliance kit, I don't know why. It would have been for sure the best software for me, but I don't have it.

Hum, good morning CuBie, how are you? You said me you love programming, no? :)

#17 User is offline   Bilou_Gateux 

  • Powered by Windows Embedded
  • PipPipPipPipPip
  • Group: Members
  • Posts: 766
  • Joined: 03-January 04

Posted 30 March 2004 - 10:10 AM

Microsoft Server Appliance Kit v2.01 update

unpack sak201.exe

#18 User is offline   EvilGuinness 

  • Newbie
  • Group: Members
  • Posts: 44
  • Joined: 10-March 04

Posted 31 March 2004 - 01:00 AM

As we say in French : "oups, toutes mes excuses, j'avais pas vu" :)

I thought it was a special CD, like windows PE, or something like that.

edit : I was wondering how to install this driver...hum, .inf files are a very good thing.

edit 2 : I forgot to say "thanks"... :rolleyes:

edit 3 : I read what I found about using .inf files, and I used rundll32 to execute the inf file...but when I try to execute saprep, it says "Starting Server Appliance Preparation....failed to load DLL:srvprep.dll".

Did I forget something?

edit 5 : oh, well, I found this : http://www.msfn.org/board/index.php?showtopic=16824&st=0
Eh, it seems to be harder than I thought...

#19 User is offline   Bilou_Gateux 

  • Powered by Windows Embedded
  • PipPipPipPipPip
  • Group: Members
  • Posts: 766
  • Joined: 03-January 04

Posted 31 March 2004 - 10:00 AM

Server Appliance Kit 3.0 for Windows Server 2003

Download SAK30.zip

may includes the missing files from the v2.01 (update kit)

#20 User is offline   EvilGuinness 

  • Newbie
  • Group: Members
  • Posts: 44
  • Joined: 10-March 04

Posted 01 April 2004 - 03:49 AM

what the hell...I tried to boot my RIS server, and it refused to boot...I have to reinstall all of it, OS, servers, OS images....

edit : I solved the problem...1 problem at least :)
I did all what is said in the link above ( http://www.msfn.org/board/index.php?showtopic=16824&st=20 --> I put my drivers in a cab file), but I doesn't change anything, I don't know how to use saprep...maybe I forgot to change something...I don't have winnt.sif, so I changed ristndrd.sif in the I386 and I386\templates directories (I boot from a RIS server)...someone to help, please? (Hum, I'm off-topic, no?)

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy