Jump to content

idle.newbie

Member
  • Posts

    93
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Taiwan

Everything posted by idle.newbie

  1. how about specified your main class in META-INF/MENIFEST.MF, and run with java -jar yourJar.jar, that will much simpler. if your system had JRE and not associate .jar with WinRAR, you can double-click yourJar.jar to run your class.
  2. you have to use another boot loader, eg. bcdw/cdshell, and make a simple boot menu, like multiboot cd but only with "boot from hd"/"boot from cd"(boot from the 8k boot sector). that 8k boot sector is not regular CDBOOT.bin(2k), something like emulating cd as hd/disk, it will not load BOOTFIX.bin.
  3. 7-zip never have a switch begins with /. if you need detail switch for 7zip, make a console mode sfx archive, anySFX.exe -? will show you.
  4. ;DropShadow, apply @T-12[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ListviewShadow] "DefaultValue"=dword:00000001 "DefaultByAlphaTest"=dword:00000001
  5. i've do some tests for OEMFilesPath, with these settings in WINNT.SIF [Unattended] OEMFilesPath="Geek" OemPreinstall = Yes or [Unattended] OEMFilesPath="\Geek" OemPreinstall = Yes or [Unattended] OEMFilesPath="..\Geek" OemPreinstall = Yes the sample directory structure as attached picture. make sure every $1 directory has a text file with full-path-to-text-file in it. by use of OemPreinstall=Yes and $OEM$\$1, if OEMFilesPath works on CD install, after XP setup complete there should be at least one text file in %SystemDrive%, and we can check the content of the text file to know which directory XP setup use. unfortunately, there's no text file as it should be there. this test comply with your answer, on a CD install OEMFilesPath without a drive letter. after that i go with multiple $OEM$ directory.
  6. why use any regTweak or sendTo? use Explorer's File -> New -> Folder, or Right-Click -> New -> Folder, or in short-cut key [Alt-F] -> [W] -> [F], short-cut key takes less than a second.
  7. GOOOOOD... i'd read some thread that generate 5k x 5k folders and each folder has 10k empty files, these folders and files are used to increase the MFT size. after deleting all these folders and files, the MFT size remains, then invoke the defragmenter, and he said you don't need any defragmenter anymore(for NTFS). i can't remember where the thread was, the .cmd script was lost, maybe rewrite a .cmd script before your guide will be a good idea, worth a try.
  8. if JRE installer will not overwrite an existing deployment.properties, make a default .properties and move it to $OEM$\$Docs\Default User\Application Data\Sun\Java\Deployment\deployment.properties. simple and apply to everybody, don't need to care about where you install the JRE.
  9. WSH has two script engine WScript.exe(windowedDialog) and CScript.exe(cmdline). if your script didn't output any message(WScript.Echo), and runs from RunOnceEx, i'll suggest the WScript.exe. %SystemRoot%\system32\WScript.exe "path\to\your\script" anyArguments but i don't think regTweak @RunOnceEx applies to all users, if you wanna make it to all users, why not add that WAB regTweak to your regTweak.reg @T-12, remember to touch an empty .wab before any user use WAB, or it will fall back to %UserProfile%\blah\blah\userName.wab. touch an empty file @T-12 in .cmd @TYPE>D:\Docs\Safe\book.wab 2>NUL
  10. i don't know the exactly difference, basically HKCR\Folder = HKCR\Directory + HKCR\Drive + and more(like some special shell folder), HKCR\Directory more physical directory, i like HKCR\Folder but not this case(my script may not work correct on specialFolder, and i don't want it to apply on DriveRoot). SendTo's nice, but my script needs only a directory, SendTo works on File too, too lazy to check for file or directory.
  11. another script to makeCab a whole directory, output to parent folder, named folderName.cab, in cmdWindow or Explorer(install cmd in line1&2). cmdWindow: cabIt path\to\anyFolder or without argument to cab current directory and output to parent directory. cabIt cabIt.js
  12. Changing ProfilesDir in winnt.sif to another disk should work, but next time you reformat your system, user profiles with the same name will change to userName.domainName, i don't like that. but UserShellFolder way will cause another ACL problem, the folderOwner/fileOwner in Properties -> Security page, you'll find some ghost entry after next reformat, the old-SID belongs to nobody so it looks strange, and i use scripting to do some CACLS thing.
  13. %UserProfile%\Application Data\Sun\Java\Deployment\deployment.properties #javaplugin.console=show #javaplugin.console=hide javaplugin.console=nothing
  14. Tsunami is right. apply that @T-12. all UserShellFolders regEntries are REG_EXPAND_SZ, so you can use environment variables. i got several lines in my .cmd batch @T-12: SET KEY=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders REG ADD "%KEY%" /f /v "Desktop" /t REG_EXPAND_SZ /d "D:\HOME\%%USERNAME%%\Desktop" REG ADD "%KEY%" /f /v "Personal" /t REG_EXPAND_SZ /d "D:\HOME\%%USERNAME%%\Documents" REG ADD "%KEY%" /f /v "Favorites" /t REG_EXPAND_SZ /d "D:\HOME\%%USERNAME%%\Favorites" REG ADD "%KEY%" /f /v "My Pictures" /t REG_EXPAND_SZ /d "D:\HOME\%%USERNAME%%\Documents\My Pictures" it maps every users' Desktop/MyDocuments/Favorites to D:\Home\userName. better let MyPictures below MyDocuments, or sometimes the Explorer works geek. my script came from a friend, but the original idea came from GreenMachine, you can search "NetUser.exe or CUsrMgr.exe" in this forum.
  15. i use "NetUser.exe"(search in this forum) @T-12, never fails me. of cause you can rename built-in administrator & guest account, but you couldn't delete them. maybe you rename the wrong account name, what the word administrator in French? or check it using "NET USER" in commandline window.
  16. "%SystemDrive%\%SystemRoot%\system32\regsvr32.exe" == "C:\C:\Windows\system32\regsvr32.exe" remove that %SystemDrive%.
  17. Running Silent installshield setup from CD switch by dinosaur-jr
  18. 0404:e0010404 new MS Phonetic IME 0404:e0080404 traditional Phonetic IME 0404:e0060404 traditional DaYi IME [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\PHON] "Reverse Layout"=dword:e0060404 reg for traditional Phonetic IME to reverse lookup for traditional DaYi IME code. you can manually change the traditional Phonetic IME to reverse lookup for other IME, then export that key to find out corresponding IME keyboard layoutID.
  19. the only difference is Pyron's method works, drvz never works currently(without OemPnPDriversPath). T-39 just too late for the regTweak. another advantage from Pyron's method, you don't need the OemPreinstall=Yes, compress everything in $OEM$\$$ & $1(cmdow/codecs/more), extract it from presetup.cmd. the problem is people loves the gui way, somebody hate the batch script.
  20. FOR /F "skip=4 tokens=2*" %%I IN ('REG QUERY "HKEY_CURRENT_USER\Environment" /V "TMP"') DO @SET TMP=%%J If registry valueName(not registry data) contains space, change 2* to 3*, more spaces increase that digit.
  21. OE+WAB, this is all i have, except some dirty acl modification. var WshShell = WScript.CreateObject("WScript.Shell"); var fso = WScript.CreateObject("Scripting.FileSystemObject"); var home = WshShell.ExpandEnvironmentStrings("%HOME%"); if (home == "%HOME%") home="D:\\Home"; //check home exist, or create one if (!fso.folderExists(home)) fso.createFolder(home); //check userHome exist, or create one var userName = WshShell.ExpandEnvironmentStrings("%USERNAME%"); var userHome = home + "\\" + userName; if (!fso.folderExists(userHome)) fso.createFolder(userHome); //check mail strore exist, or create one var mailDir = userHome + '\\Mail'; if (!fso.folderExists(mailDir)) fso.createFolder(mailDir); var oeDir = mailDir + '\\Outlook Express'; if (!fso.folderExists(oeDir)) fso.createFolder(oeDir); //check user's address book dir/file exists, or create one var wabDir = userHome + "\\Address Book"; if (!fso.folderExists(wabDir)) fso.createFolder(wabDir); //OE mail store root regTweak var identities = WshShell.regRead("HKCU\\Identities\\Default User ID"); var key = "HKCU\\Identities\\" + identities + "\\Software\\Microsoft\\Outlook Express\\5.0"; WshShell.regWrite(key+"\\Store Root", home + "\\%USERNAME%\\Mail\\Outlook Express\\", "REG_EXPAND_SZ"); WshShell.regWrite(key+"\\NoSplash", 1, "REG_DWORD"); //if wabFile not exist, WAB will create one on %APPDATA%\...\Address Book, need to touch a empty file var wabFile = wabDir + "\\" + userName + ".wab" if (!fso.fileExists(wabFile)) fso.createTextFile(wabFile); //WAB regTweak WshShell.regWrite("HKCU\\Software\\Microsoft\\WAB\\WAB4\\Wab File Name\\", wabFile); //stubborn regTweak WshShell.regWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\SmallIcons\\SmallIcons", 1, "REG_DWORD"); WshShell.regWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\StartButtonBalloonTip", 0, "REG_DWORD"); WshShell.regWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\ListviewWatermark", 0, "REG_DWORD"); //kill itself fso.deleteFile(WScript.ScriptFullName);
  22. 4 line 4 XP... @REG ADD "HKEY_CLASSES_ROOT\.ax\shell\Register\command" /VE /D "%SystemRoot%\system32\regsvr32.exe \"%%1\"" /F @REG ADD "HKEY_CLASSES_ROOT\.ax\shell\UnRegister\command" /VE /D "%SystemRoot%\system32\regsvr32.exe /u \"%%1\"" /F @REG ADD "HKEY_CLASSES_ROOT\dllfile\shell\Register\command" /VE /D "%SystemRoot%\system32\regsvr32.exe \"%%1\"" /F @REG ADD "HKEY_CLASSES_ROOT\dllfile\shell\UnRegister\command" /VE /D "%SystemRoot%\system32\regsvr32.exe /u \"%%1\"" /F
  23. [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders] The registry entries under this key are REG_EXPAND_SZ, so you can use environment variables, that saves a lot of efforts. [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders] Most registry entries under this key are expanded from User Shell Folders. [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders] Personal REG_EXPAND_SZ D:\Home\%USERNAME%\Documents This regTweak maps every user's My Documents to D:\Home\anyUser\Documents.
  24. I know it's really convenient to omit lengthy OemPnPDriversPath, but sticking on DevicePath regTweak @T-39 is not a good idea, even $winnt$.inf modification @T-39 can't make xp setup to find those drivers. I hope big_qie or Bilou_Gateux can find another approach to overcome this T-39 mist. By now the only solution to omit OemPnPDriverPath is Pyron's method, using hacked setup.exe to run another .cmd script, and do his regTweak before gui setup. Or edit our OemPnPDriversPath, then use big_qie's MT39 to extract drivers @T-39.
  25. 7zip setup sfx never left anything in temp, and worked perfect. The side effect i mentioned, may cause by app setup, it's looking for something in user profile, so there's some strange folder. It's good .net setup not cause this strange side effect, we don't need to del that annoying folder.
×
×
  • Create New...