Jump to content

phaolo

Member
  • Posts

    282
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Italy

Everything posted by phaolo

  1. I'm trying to find switches for lots of programs. Probably it's my fault, but /? seems to work better than USSF.. Anyway, pagefile ok! (not so an easy find though) For those who are reading this post, the original script is at this page (2 x ram): http://www.msfn.org/board/lofiversion/index.php/t58653.html (at the end) Here I put the simplified version (removed subs, deleted messages and set pagefile to 1,5) I don't dare touch anything else as I don't understand the code in GetObject parts '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Option Explicit Dim intRAM, objRAM Dim objPageFile, objWMIService, colPageFiles ' Puts Total MB of Physical RAM into intRAM variable For Each objRAM in GetObject("winmgmts:\\.\root\CIMV2").ExecQuery("SELECT TotalPhysicalMemory FROM Win32_ComputerSystem") intRAM = (objRAM.TotalPhysicalMemory / 1024) / 1024 intRAM = FormatNumber(intRAM, 0) + 1 Next ' 1.5 Physical RAM intRAM = intRAM * 1.5 ' Set current Page File to be 1.5 times RAM Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\.\root\cimv2") Set colPageFiles = objWMIService.ExecQuery ("Select * from Win32_PageFileSetting") For Each objPageFile in colPageFiles objPageFile.InitialSize = intRAM objPageFile.MaximumSize = intRAM objPageFile.Put_ Next ' Exit Script WScript.Quit(0) '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  2. Yes hehe I noticed that. Lots of testing & tweaking..but it's quite funny and useful. I know nothing about vbs, so I have to do many searches + copy&paste + puzzling. Luckly most of the things can be done with dos commands. Even if nlite is great, you are right about some settings: for example the option to disable "fast user switching" is not working very good. It would be great if nlite could export simple registry modifications to a reg file for manual editing. I tried Peid + Ussf but it seems it can only find nullsoft nsis installers with same switches types (what's the helper.bin thing). Where did I go wrong? About the page file, I know how to set it, but I'd like to set it according to the ram of the system.. I'll have another google round then
  3. Hello, thank you for replying Yes, manual edit + nlite seems to work. Before I was afraid that the program could overwrite something. I tried VMware also and..****, it rocks! And VMtools are fabulous too. Win XP fits good in a 3 Gb hdisk (in total takes 1,5 Gb as said) Next I'll try RunOnceEx from cd method (directly from nlite maybe) to install programs, run setups, batch files and vbs scripts. Questions: -Windows "Zip folders" can extract ZIP files without WINZIP, right? Can it be done from command line compact /U or should I use a script? -I'd like to set all possible switches for setup programs (like noreboot, quiet, installpath, components). Dos /? method doesn't work always. Is there an alternate way to find them? -Do any of you know a script to set a fixed page file 1,5 times bigger than the machine ram? Thanks
  4. Hello, I've read the guide at http://unattended.msfn.org/unattended.xp/view/web/1/ The site is wonderful but there are really lots of infos! So I have these questions: 1- is it good to use nlite together with the manual changes? Nlite seems a great program but I don't like very much the CAB method to install applications. I'd like to run zip,rars,setup,reg,bat files What to use? Batch,RunOnceEx,WPI,WIHU? Which is the best method that combines customizability and semplicity? 2- I'd like to test the result OS cd from a virtual machine. Which is best: Virtualbox,VirtualPC,Vmware,Bochs? What's the min space I need for the (virtual) install? Requirements say 1.5 Gb but mine is 4 Gb.. Thanks!
  5. A hello topic hehe, nice! Some human warmth among these cold bits Hello, my name is Paul. Great site!
×
×
  • Create New...