
jdoe
MemberContent Type
Profiles
Forums
Events
Everything posted by jdoe
-
You want it the hard way You'll have to work hard on this one but I give a way to do it. 1) You need to unlock Windows XP setup and for that you need a patched syssetup.dll 2) You must edit the [OleControlDlls] section of syssetup.inf and add the file you want to register. I can give you the patched syssetup.dll but for the rest, like I said, you'll have to do some work because I don't know what you are trying to do. Unlock Windows XP Setup
-
Thanks
-
@5128, off topic but the xp visual style from the screen shot looks nicely done. Which one it is ?
-
I did remove the Links folder either and the solution of PITU is the best I can see. Why? It's not impossible that Windows itself or an update or whatever re-enable that folder some reasons and a null file will block that. Just make sure to have system and hidden attributes on that file to make it hidden in your favorites. The sad part is I don't have an unattended solution for that rigth now.
-
Windows scripting host
jdoe replied to acovich's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
For testing purpose it's surely better to have the complete code. I know you've wrote quantities of VBS on this board, for the benefit of all members and having see some of them I have few suggestions, basically for readability. Add some "air" in your scripts. Empty lines for separating code sections. Constant indent by 2 or 4 (not mixed). Make loops clear from the other lines. Have naming convention with data type identification variable In other words, have your coding style but always use the same everywhere. The reason I'm so strict about coding style is for code maintenance. Few times I've worked where I had to maintain code that was so poorly format that it was twice as hard to understand just for this reason. This is for MASM Programming Style but the main concepts are valid for any language Please don't take my comments too personal. You're a valuable member of this board. @acovich, I'm sorry for this off-topic post, I know it don't help you much. -
Windows scripting host
jdoe replied to acovich's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
@gunsmokingman For your information the code is incomplete. There is a etc. etc... at the end of acovich code which mean you can't do a test from what you can see only. It's funny that you made a test to be sure if you have the VBS knowledge you pretend -------------------------------------- Just a little reminder "While... Wend" is used when you don't need to a conditional exit point and with "Do... Loop" you can use "Exit Do" as an exit point. In the code of acovich the hidden part of the loop is something like that... Do While TRUE Set objEventObject = colMonitoredEvents.NextEvent() Select Case objEventObject.Path_.Class Case "__InstanceCreationEvent" If Something Is True Then Exit Do Loop A "Do While True" loop implies an "Exit Do", otherwise it would be an infinite loop. The problem of acovich is something about WMI which I have never used so my help worth nothing. Sorry. -
Disable/Enable BITS
jdoe replied to MBBM's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
I think these are the commands you are searching for... NET START WUAUSERV NET START BITS -------------------------------- NET STOP WUAUSERV NET STOP BITS -
File operations on reboot
jdoe replied to Maelstorm's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
This link could help you to figure one way to do that. Look at MOVEFILE_DELAY_UNTIL_REBOOT flag from this Win32 API (W2K and over). MoveFileEx -
using vb6 for P1240 chipboard
jdoe replied to curiousboi's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
I don't know that chip but there must be a compiler for it and I'm guessing it would be C or assembler language if that chip is on a small device. -
Edit SWFLASH.INF from I386 folder and remove all lines under [DefaultInstall] and [updateInstall]. There's other methods but this one is the easiest (without unlocking XP setup). [Version] signature="$Windows NT$" ClassGUID={00000000-0000-0000-0000-000000000000} SetupClass=Base LayoutFile=layout.inf DriverVer=07/01/2001,5.1.2600.2180 [DefaultInstall] [UpdateInstall]
-
I don't know your batch file writing skills but reading this should give you a good starting point. FTP Script FTP.EXE XP built-in command is what will help you doing it.
-
Dllcache - not populate on install
jdoe replied to Doctor Trout's topic in Unattended Windows 2000/XP/2003
Remove Windows File Protection permanently ...and it don't need any registry entries to work -
VB6 keeps crashing on me!
jdoe replied to aylmerj's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
You can put breakpoints in your code and parse lines step by step with F8. If you are using CopyMemory API, without having see the source code, I would say that it must be that call that make VB6 to crash (it is a common problem). Put a breakpoint at each CopyMemory call and when you press F8 and it crash then have found the problem... or one of them. This is how I declare CopyMemory... Public Declare Sub CopyMemory Lib "kernel32.dll" _ Alias "RtlMoveMemory" ( _ ByRef r_Destination As Any, _ ByRef r_Source As Any, _ ByVal v_Length As Long) -
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
-
@ZileXa: Sorry I didn't find an MSDN link but from Windows 2003 SDK SP1 the minimum requirement for LaunchINFSection (advpack.dll) is Internet Explorer 5.01 / Windows 2000
-
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
-
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,DefaultInstall
-
DELETED
-
This is a reply e-mail I have sent to a person having the same problem Also you can check if this CLSID is in your registry... HKEY_CLASSES_ROOT\MakeCab.MakeCab.1\CLSID\{8E17FFF3-C5BA-11D1-8D8A-0060088F38C8} This registry key is on Window 2000 and higher.
-
I was needing the same long time ago, and I wrote a batch for that. It's not perfect because it don't make a backup of NTUSER.DAT before loading it but it worked when I have used it 1 year ago. I know it's not an application with GUI and all those stuff you want but it's there for free. People on this board are passionate persons about computers and I don't think little commision will raise passion even more. Maybe someone will post a link about something that already exist. Be patient REGWIDE
-
For those who want to tune their XPCD
jdoe replied to theutlass's topic in Unattended Windows 2000/XP/2003
English is not my primary language and yes I was refering to CamelCase. I thought your comment were based on VBScript or batch posted as reply. I did not took the time to look at ExTrAcT.cMd and it's obvious now that your comments make sense. My mistake... BTW, it's more newbie than age related. After few batches, he will choose his prefered case and will not hardcode path anymore. -
For those who want to tune their XPCD
jdoe replied to theutlass's topic in Unattended Windows 2000/XP/2003
Alternating case is an easy way to make code more readable and this is true with all script and programming languages. MSFN forum rule # 7b -
Look for CACLS.EXE in system32 folder. It can set permission on user or groups.
-
[Question] Remove All User and Default User
jdoe replied to Hollenthon's topic in Unattended Windows 2000/XP/2003
If I were you I wouldn't think about doing it. "Default User" is needed for new user creation and "All Users" is where most programs installer put shortcuts. If you do so, you will messing up you system and even if I never tried that, I'm sure many tasks won't work anymore. If you don't want to see them, put hidden and system attributes on these folders. -
SP2 Batch Files ? Anyone Confirm
jdoe replied to gearhead98's topic in Unattended Windows 2000/XP/2003
@Nuhi, I did that patch because I respect others work and I didn't want to steal others work. Where your respect has gone when saying that it comes from nLite. I give credits to Timo for identifying to function but I don't patch it the same way. Now, if you are using it with nLite that's another story. For your memory, Timo was replacing 4 "push esi" with a jump just after pSetupVerifyFile call. @gearhead98 About using it with SP1, I'm don't think it will work, but you loose nothing in giving it a try.