Jump to content

Batch File hiding


Recommended Posts

Last time I could not manage to register/unregister dlls using that advpack.dll,LaunchINFSection stuff.

The best site for informations about inf is down now but I have found this on the web while ago and this is the only doc I have now. Also, I have included an inf example to register/unregister dlls. I'm sure you will be able to change it for your needs.

INF_DOC.ZIP

Edited by jdoe
Link to comment
Share on other sites


Waou jdoe, Thank you gozaimasu! Muchos Merci ! :thumbup

It looks like there is a lot to learn in this zip.

Very valuable for learning advanced inf syntax.

This should be back on the web.

Half of the little I knew about inf, I already took it from you (I copied your installer for CABTool to make one for CBin :whistle: ), but now you are taking a serious advance over gosh! :P

cheers!

Edited by Djé
Link to comment
Share on other sites

I know it's not relevent anymore since everyone misunderstood the real question and the good answer must be the one from Yzöwl about >nul (with echo off).

But about hiding command prompt window without using 3rd party program or VBScript there is one more solution I don't remember having see in other topics.

TEST.INF

[Version]
Signature="$Windows NT$"
AdvancedINF=2.5

[DefaultInstall]
RunPostSetupCommands=DefaultInstall.RunPostSetupCommands:1

[DefaultInstall.RunPostSetupCommands]
TEST.CMD

And you call it like this

rundll32.exe advpack.dll,LaunchINFSection TEST.INF

pretty cool, I didn't know this was possible. Would this trick work on both WinXP as Win2000?

Link to comment
Share on other sites

I know it's not relevent anymore since everyone misunderstood the real question and the good answer must be the one from Yzöwl about >nul (with echo off).

But about hiding command prompt window without using 3rd party program or VBScript there is one more solution I don't remember having see in other topics.

TEST.INF

[Version]
Signature="$Windows NT$"
AdvancedINF=2.5

[DefaultInstall]
RunPostSetupCommands=DefaultInstall.RunPostSetupCommands:1

[DefaultInstall.RunPostSetupCommands]
TEST.CMD

And you call it like this

rundll32.exe advpack.dll,LaunchINFSection TEST.INF

I made a mistake about the way to call the INF.

I forgot something at the end... I should have wrote...

rundll32.exe advpack.dll,LaunchINFSection TEST.INF,DefaultInstall

Sorry :blushing:

Edited by jdoe
Link to comment
Share on other sites

thanks! btw, I register/install huffyuv & Xvid encoder during T12 with RunOnceEx, with the .INF file, it does require a different method to call the inf file. I am not home right now, will post later.

Edited by ZileXa
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...