Jump to content


  • Posts

  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Posts posted by silacomalley

  1. MSI installs fine from Cmdlines.txt. Any program that does not install from Cmdlines.txt IMO, maybe bugged and needs reporting to the developer. Just about every program that I have installed from Cmdlines.txt performs without error.


    I stand corrected. I have never tried to install from CMDLINES.TXT, only configure RunOnceEx.

  2. Necessity IS the mother of invention :thumbup From zero to zero in just over two weeks. I've gotten myself a script put together that will allow a person to connect to a wireless network using 'any' authentication and encryption method. Thanks to Boarbabe and Dje for giving me the impetus to really start digging. I found an incomplete AutoIt script on the AutoIt forums that showed me how to actually use some of the features of AutoIt to open the windows I wanted to use and I was able to complete a script that allows the user to select not only the SSID and Authentication mode, but also to select the Encryption mode as well as setting the Network Key programmatically. The script is in no way a 'pretty' thing, but it does what I want it to do, which is to connect my computer to an already existing wireless network without user intervention. If anyone would like to download it and use it, they are more than welcome.


    Thoughts and ruminations welcome!


    I've been thinking on how to do the automated WiFi profile install for a few weeks, but didn't know how to implement it!

    I can't get it to hold the profile on my system though. It goes through the notions and when I check my settings, no new profile exists. Even after rebooting! I have subsituded the script with my wireless details and I can clearly see my config settings flash up on the Wireless applets as they run through the script!

    I'm sure it does work and I have a feeling something on my system is stopping it from working fully. Great info, thanks Bruce.

  3. Yes....You can ! I suppose to better than RunOnceEx becoz...its need to create User A/c first then increases numbers of restarts.

    CMDLINES.TXT is parsed at T12, right? And I'm not sure that the windows installer is present in the install at this point, right? So.....I may be right in saying that some software will not install at T12. Ergo you may need to go the route of the RunOnceEx method, which in actual fact should install nicely before any user account or shell has been initiated or loaded into a GUI.

    As for restarts, as long as you include switches into your app install lines, that will supress rebooting, then you have a foolproof install method that looks relatively professional.

    I install Office2003/2007, 2003 Admin tools, SAV Corp 10, oracle calendar, Cisco VPN, reg tweaks and plenty of other apps that install flawlessly with the RunOnceEx method.

  4. Not sure if you want to remove the shortcut arrow or add the shortcut arrow to icons. So.....I have included the registry tweak for both.

    You can download the attached files, or create a text document with extension .reg and include the following lines to add the shortcut arrow

    Windows Registry Editor Version 5.00



    or to remove the arrow.

    Windows Registry Editor Version 5.00





  5. To get round any problems that IE7 poses, I usually intergrate it, then run a batch file to replace the newly installed iernonce.dll file with the older IE6 iernonce.dll. Then I go ahead and have RunOnceEx on the next boot take care of installing all of my apps.

    I have just one batch file that does everything in one. That way, IE7 is completely intergrated, which saves install time and it does not interfere with any other app installation after XP has installed.

    If your installing IE7 as an unattended install & you don't have an internet connection, it may fail due to the unavailablity of a connection to download files to update and install. Or there could be other software using or locking the registry perhaps, this will cause IE7 to possible fail.

    I'm not entirely sure of this, but it is just an idea of what might be going on, depending on how your installing the software or in what order you are doing so.

  6. Create a batch file and place it under the GuiRunOnce entry within your answer file. for eg:-


    runonce.bat (located in the %cdrom%\$oem$\$1 directory) could consist of the following lines:-

    echo off

    start /wait %systemdrive%\programA.exe


    The above would run your software after the user shell has initiated, but on the first boot.

    Or create a batch file called runonce.bat which could look something like this....

    SET KEY=HKCU\\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce

    REG ADD %KEY% /V "App Install" /D "Currently installing....." /f

    REG ADD %KEY%01 /VE /D "programA" /f
    REG ADD %KEY%01 /V "programA" /D "location of program to launch goes here" /f

    shutdown -r -t 00


    Go ahead and put the same entry as above in your guirunonce section of your answer file and place runonce.bat in %cdrom%\$OEM$\$1\

    Place as many programs as you like in the batch file reg entries, just increment them %KEY%01, %KEY%02, %KEY%03...etc. Your system should boot automatically after the desktop has loaded for the first time and on second boot your app installations should launch (in theory!). The 00 at the end is the time in seconds the system waits before reboot, in this case, zero seconds, which is a little too quick, maybe! Change it to suite, or omitt the shutdown line at the end and reboot manually.

    I am a bit rusty on this and there may be a blatently obvious, easier solution. But this is all could think of right now.

    What software is failing to launch at RunOnceEx or on first boot? How are you trying to initiate the software installation(s)?

  7. Ok, you have created the winnt.sif file with nLite 1.4. So.....maybe you could try creating the answer file with setupmgr.exe, microsofts proprietary solution.

    Go to http://www.microsoft.com/downloads/details...;displaylang=en and download, unzip and run setupmgr.exe.

    There is a ref.chm and deploy.chm file within the zip folder, which are a good reference to most all of the basic unattended options that can be used to automate an unattended install, though there are plenty more options out there that can be inserted into a .sif file, this just covers most of the basics. And it should give you an idea of how to compile a successfull winnt.sif answer file.

    Copy the .sif that setupmgr.exe creates into the i386 folder of your unattended compilation, which I presume was also created in nLite. If you still get the same results, use an exact copy of your XP disk without any nLite modifications and with the answer file created with setupmgr.exe, again - placed in your i386 folder.

    It's a long winded elimination type approach, but I have had some custom installations go pear shaped using nLite, with no logic or reason why, that I could see anyway. I swear by nLite for the amazing standalone tool that it is, but sometimes a file just gets corrupt and goes unnoticed or a setting is out somewhere.

    If the above works with setupmgr.exe......then you may just want to start again from scratch with nLite and maybe there was a bug originaly when you compiled using nLite.

  8. So i have to run : HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce from Cmdlines.txt ?

    You add an entry into HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce which will runonce for each user account. This is only achieved when no one is logged on. Cmdlines.txt is a good time to add the entry into registry.

    btw, run was not mentioned. Hopefully, this explaination is easier to understand. :)

    Hi there!

    I'm searching for the RunOnce Key for every new and every existing user on a machine. After an installation there has to be some user-specific work to be done.

    So, I found this post. Great so far! :thumbup

    But here's the problem: Mhz wrote "This is only achieved when no one is logged on.". How do I achieve this? In a XP-new-installation I'm using cmdlines-txt for this, but how to when the computer ist ready installed?

    Thanks a lot,


    I believe you will need to change the above example (HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce) to HKU\.default\Software\Microsoft\Windows\CurrentVersion\RunOnce and run it whilst logged into your regular profile or user account.

    Try it and see!

  9. If anyone wants to eliminate the need to use third party software to format their USB drive, you can do this....

    Visit http://www.xpefiles.com/viewtopic.php?t=92 and download the hitachi drivers.

    Effectively, after install, your stick will be seen and treated as a regular hard drive. This way you can format and partition the Stick with the Windows manager, creating primary and extended/logical partitions, creating an xp MBR.

    After downloading extract the contents. Open cfadisk.inf and note the following section, we will need to edit this in a moment.....

    %Microdrive_devdesc% = cfadisk_install,IDE\DiskIBM-DSCM-11000__________________________SC2IC801
    %Microdrive_devdesc% = cfadisk_install,IDE\DiskIBM-DSCM-11000__________________________SC2IC815
    %Microdrive_devdesc% = cfadisk_install,IDE\DiskIBM-DSCM-11000__________________________SC2IC915

    %Microdrive_devdesc% = cfadisk_install,IDE\DiskIBM-DSCM-10512__________________________SC1IC801
    %Microdrive_devdesc% = cfadisk_install,IDE\DiskIBM-DSCM-10512__________________________SC1IC815
    %Microdrive_devdesc% = cfadisk_install,IDE\DiskIBM-DSCM-10512__________________________SC1IC915

    %Microdrive_devdesc% = cfadisk_install,IDE\DiskIBM-DMDM-10340__________________________MD2IC501
    %Microdrive_devdesc% = cfadisk_install,IDE\DiskIBM-DMDM-10340__________________________MD2IC601

    ; debug on VMWare/special drive
    ; %Microdrive_devdesc% = cfadisk_install,IDE\DiskVMware_Virtual_IDE_Hard_Drive___________00000001
    ; %Microdrive_devdesc% = cfadisk_install,IDE\DiskIC25N040ATCS04-0________________________CA4OA71A

    Find and add the ID specific to your usb stick. To find this insert your USB stick and use REGEDIT navigate to HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USBSTOR registry key

    There will be an entry for the subkey HardwareID. Open this and there will be a string of values - for my PMY stick the values are:


    We only need to use the first value in the HardwareID string - in this case, for mine, USBSTOR\DiskPNY_____USB_2.0_FD______PMAP. Copy this value into the [cfadisk_device] section in cfadisk.inf. So for eg, my [cfadisk_device] section contains the following code:

    %Microdrive_devdesc% = cfadisk_install,USBSTOR\DiskPNY_____USB_2.0_FD______PMAP
    %Microdrive_devdesc% = cfadisk_install,USBSTOR\DiskPNY_____USB_2.0_FD______PMAP
    %Microdrive_devdesc% = cfadisk_install,USBSTOR\DiskPNY_____USB_2.0_FD______PMAP

    %Microdrive_devdesc% = cfadisk_install,USBSTOR\DiskPNY_____USB_2.0_FD______PMAP
    %Microdrive_devdesc% = cfadisk_install,USBSTOR\DiskPNY_____USB_2.0_FD______PMAP
    %Microdrive_devdesc% = cfadisk_install,USBSTOR\DiskPNY_____USB_2.0_FD______PMAP

    %Microdrive_devdesc% = cfadisk_install,USBSTOR\DiskPNY_____USB_2.0_FD______PMAP
    %Microdrive_devdesc% = cfadisk_install,USBSTOR\DiskPNY_____USB_2.0_FD______PMAP

    ; debug on VMWare/special drive
    ; %Microdrive_devdesc% = cfadisk_install,USBSTOR\DiskPNY_____USB_2.0_FD______PMAP
    ; %Microdrive_devdesc% = cfadisk_install,USBSTOR\DiskPNY_____USB_2.0_FD______PMAP

    Save cfadisk.inf. Open Device manager and check for your USB drive in "Disk Drives". Right click on the entry for your drive and select option to update driver.

    * Don't use windows update

    * Install from a list or specific location

    * Don't search for driver, but use....I will choose the driver to install

    * Have disk

    * Browse to location of edited cfadisk.inf

    Update and restart windows. Your USB stick should be treated as any regular hard drive!

    Let me know if this does not work with any of the current projects, as I have not yet gone through this whole XP on a stick! and tried it all out. He..He... :whistle:

  10. I have the same problem. The title is missing and the reg entries just sit there and do nothing.

    I have added start /wait and still nothing. I have even copied the reg entries over to the HKCU and still nothing! This was working for me at one point, then it stopped working. I have even created a new .SIF file and even checked the effective hive permissions.

    Anyone got any ideas?

  11. I already tried nlite - but with the integration xp-setup crashes with the error, that not enoughe memory is available (only tested in VMware). :}

    Because I don't know what nLite really does with the IE-install I'm looking for a manual solution to integrate IE7.


    When you are creatng the unattended through nlite, choose the option to ignore the minimum memory or harddrive requirements. It is in the tweaks section or similar, can't remember exactly were it is.

    Someone correct me if I am wrong.

  12. The only thing I can see from reading your above link, is that maybe Roberts way of making the USB bootable by using the bootsect /nt60 X: command, as opposed to using xp or vista's native partition tools, which will create a basic MBR, (pertaining to NTLDR for XP & Bootmgr for Vista), is copying over a custom bootloader. The boot sector from the AIK, presuming it is ripped from an ISO may be different from a regular bootsector & MBR. Other than this, I cannot see any other reason.

    I would go ahead & create a CD winpe & test that, and you may wanna' check how your bios is looking at your USB stick. I could be barking up the wrong tree here, but I hope this helps you resolve your issue.

  13. I have this happen quite a bit when I am messing around with usb sticks & just generaly testing & experimenting with pe tools etc. I find that most of the time I go ahead & make sure I re-partition & reformat the USB stick with diskpart ver 6, off of Vista (usually a WinPE CD). Reinstall winpe and it works fine after this.

    The other thing is that I have installed my USB sticks as a fixed hard drive, not a removable drive/device. This enables me to access it like any other hard drive in MMC disk manager, within windows, which ultimately lets me create partitions & manipulate itas I would any other IDE/SATA drive.

    The guide I first used for creating a bootable USB WinPE is here....http://www.svrops.com/svrops/articles/winvistape2.htm

    I have never had any problems with this, other than screwing things up myself.

  • Create New...