Jump to content











Photo

Tutorial for xpsetuplancher


  • Please log in to reply
8 replies to this topic

#1 carfan

carfan

    Frequent Member

  • Advanced user
  • 196 posts
  •  
    United States

Posted 19 July 2007 - 12:18 AM

I've been using this program for a long time. It's always worked great. The only problem I have ever had is when the basic setup information has run it's course and the computer is ready to hand the process over to the rest of the WinXP setup program sometimes with certain builds the computer won't automatically reboot. If this happens , just eject your NativeEX or LiveEX boot cd (if you haven't build your cd to included the "boot from cd option", power down your computer and then back up. The WinXP setup program will take over and finish the install process. As you can see from below - you can pick gui or unattended types of installs. I usually copy the i386 folder from the WinXP setup disk to the hard drive.
File copy processes during the setup are much faster from the hard drive than from a cd drive. That's up to you though. I build a LIveEX disk with a few disk management programs, driver utilites, and file explorers to handle hard disk and driver handling if what I am doing is repairing a pc thats lost or had corrupted its operating system. You can add the WinXp i386 folder to the boot disk if your regular boot disk biuld isn't over 140 megs. The I386 folder from a WinXp sp2 rtm disk is about 560 megs. If your using a boot dvd it doesnt matter what size you other boot disk is. If you have the luxury of having a machine with 2 cd roms or dvds it's no big deal. Put your boot disk in one and the source disk in the other. I always use a boot disk with network support so I have even copied the source folder from anothers machines cd rom. Any question or comments - let me know, I'll try to help

foot note:
When entering WinXP key in manually - tab to the next field - won't automatically go to the next field by itself.

Thanks
enjoy

I can't take credit for inventing this program - just using it in a winbuidler boot disk environment.

Windows XP Setup Launcher
Version 1.8



Overview:
The options presented allow Windows XP setup to be preconfigured before installation. Options selected can be saved as Setup Answer files (also known as unattended answer files) which are compatible with other programs which can create/modify such files (eg. Setup Manager)

However, Windows XP Setup Launcher only allows to modify a subset of all possible options which can be included in Setup Answer files and any unsupported options will be ignored while opening answer files created by other programs.

Windows XP Setup can be run fully automated without any user intervention or in controlled modes where the options specified may appear as defaults and the user can/cannot modify them or selected pages in setup may be completely hidden from user. For more details on unattended modes see User Interaction Options.

Supported Operating Systems for Setup:

Windows® XP Professional
Windows® XP Home Edition


--------------------------------------------------------------------------------

General Tab:

1. Name and Organisation
Type the name and organisation you want to use. If you leave this information blank in user controlled mode, you will be prompted to enter it during setup. Name cannot be left blank in fully automated setup mode.

2. Network Settings

Computer Name - Type a name for the computer (15 characters maximum) which must be unique on the network. This option cannot be left blank in fully automated setup.


Workgroup – The computer may belong to a workgroup or a domain. The workgroup name can be entered here. If required, the computer can be later joined to a domain after setup finishes. Workgroup is required for fully automated setup.

3. Administrator Password
You can specify a password for the administrator account (127 characters maximum) for the computer. This option is not mandatory for fully automated setup but you may be prompted to enter it when installing some versions of Windows XP Professional.

** Administrator password is not encrypted when saved in answer file**

4. Time Zone
Select a time zone for your computer. If you do not select a specific time zone setting, Pacific Time (US & Canada); Tijuana will be used as default.

5. Product Key
Type the product key for your copy of Windows, you need a separate product key for each copy of Windows you install. If the program is started from within a Windows version installed with a product key, it would be automatically displayed in the boxes. However, the product key may or may not be usable with the Windows version you’re installing.

A product key can also be extracted from an installed copy of Windows. Right-click on the key icon and select “Find Product Key…”. Specify the Windows folder of the target Windows installation and the product key will be displayed.



The product key cannot be left blank in fully automated setup mode.


--------------------------------------------------------------------------------

Advanced Tab:

Advanced Tab gives you additional options to control your Windows setup. However, none of the options in advanced ta datory for fully automated setup.


6. Display Settings
Windows will be setup with the display settings you specify.

7. Installation Target

Folder – You can specify the name of the Windows folder or enter asterix(*) to let setup generate a unique folder name for the installation.

Partition – Select the partition you want Windows to be installed on. If the partition is not a primary partition, Windows will copy some system files to the active primary partition. This option cannot be saved in answer file. To automatically have a partition selected during program startup, see Command Line Options


8. Windows Components
You can select entries for installing the components of Microsoft Windows XP. The components include Accessories, Games, Communication utilities, Common programs and Services. For a full description of each individual component, see Windows Help.

9. User interaction
Select the type of user interaction you want.

User controlled – The options specified will appear as defaults and the user can change any of them during setup.

Fully automated – You are not prompted for any answers during Setup.
The following entries are mandatory for fully automated setup:

Name
Computer Name
Workgroup
Product Key


Hidden pages – Setup does not display the user interface if you specify all the answers relating to a particular Setup page. If you specify only subsets of the answers on a page, the page appears with the provided answers. The user can modify any of the answers on the displayed page.

Read only – Displays read-only answers in Setup if the Windows Setup pages containing these answers appear to the user.


GUI attended – Only automates the text-mode portion of setup, the GUI-mode section of Setup is attended. The user must answer all questions in the GUI-mode portion of Setup before Setup finishes.

10. Miscellaneous

Auto Activate Windows – Specifies whether Setup attempts to activate the installation of Windows XP automatically through an existing Internet connection.
Auto Logon Administrator – Configures the computer to log on once with the Administrator account.
Classic Start Menu – Specifies whether to use the classic Windows Start menu instead of the Windows XP Start menu, and displays icons for My Computer and My Documents on the Windows desktop.
Classic Theme – Specifies whether to use the classic Windows visual style instead of the default Windows XP visual style.
Download Updates – Specifies whether to connect to the Windows Update site to download updates during setup.
Enable Hibernation – Specifies whether to enable the hibernation option in the Power Options control panel.
Skip Welcome Page – Enables unattended Setup to skip the Welcome page in GUI-mode Setup.
Wait for Reboot – Specifies whether the computer waits 15 seconds after GUI-mode Setup finishes. This setting has no effect when running from Windows PE.

Command Line Options:


/s:setup files path – Specify Setup files path. Eg:

SETUPXP.exe /s:f:\winxp
SETUPXP.exe /s:\\backupserver\winxp_pro


/p:target partition – Specify target partition. Eg:

SETUPXP.exe /p:d:\
SETUPXP.exe /p:d:


/unattend:answer file path – Specify answer file to load. Eg:

SETUPXP.exe /unattend:d:\unattend.txt
SETUPXP.exe /unattend:d:\winnt.sif
SETUPXP.exe /unattend:\\backupserver\winxp_pro\mysettings.txt


/x – Start setup. Eg:

SETUPXP.exe /s:f:\winxp /unattend:d:\unattend.txt /x

#2 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 19 July 2007 - 10:12 AM

Very complete tutorial, using it already! :yahoo:

#3 carfan

carfan

    Frequent Member

  • Advanced user
  • 196 posts
  •  
    United States

Posted 19 July 2007 - 11:43 AM

Very complete tutorial, using it already! :yahoo:


i have a couple of antispyware and antivirus scripts that i use also. the reason i havent uploaded them is that i place the files in a sfx file that uncompresses to %temp% so they can be updated from the internet before use and can be updated before the build process. i know this goes against your request to encoded all of the files in the script. if i did encode then i could update the definitions before build without have to change the script. is it ok to share like i have them?

thanks
carfan

#4 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 19 July 2007 - 12:35 PM

That sounds really good, but did you know that it's also possible to update files from the script itself? :)

I'm working on a new adaware.script that will show you how it's done - users have the option to click and update definitions file whenever they wish.

You can encode/decode files while running the script - just like the sfx but with more control..

Here's my code snippet for adaware:

[update]

WebGetIfNotExist,"http://download.lavasoft.com/public/defs.zip","%scriptdir%\defs.zip"

If,NotExistFile,%scriptdir%\defs.zip,Run,%ScriptFile%,Exit_Download

ShellExecute,Hide,"%tools%\7za.exe","e #$q%scriptdir%\defs.zip#$q","%ScriptDir%\"

FileDelete,"%scriptdir%\defs.zip"

Encode,%ScriptFile%,Folder,"%scriptdir%\defs.ref"

FileDelete,"%scriptdir%\defs.ref"

Message,"Updated Ad-Aware SE!",Information



[Exit_Download]

Message,"The definitions file was not downloaded!",Error

Halt,"defs.ref was not downloaded"

:yahoo:

#5 Moon Goon

Moon Goon

    Frequent Member

  • Advanced user
  • 270 posts

Posted 19 July 2007 - 01:09 PM

Nice description of XPSetupLaunchers features. I'd also include that fact that you must MANUALLY TAB through the XP serial number. First time users get confused when the XP serial number doesn't continue onto the next set of numbers/letters.

What a pain.. X8XB2 TAB 4WEW3 TAB .. sigh :yahoo:

#6 carfan

carfan

    Frequent Member

  • Advanced user
  • 196 posts
  •  
    United States

Posted 19 July 2007 - 04:01 PM

Nice description of XPSetupLaunchers features. I'd also include that fact that you must MANUALLY TAB through the XP serial number. First time users get confused when the XP serial number doesn't continue onto the next set of numbers/letters.

What a pain.. X8XB2 TAB 4WEW3 TAB .. sigh :yahoo:


Good point. I'm used to that and didnt put it in my notes. I'll try to append the tutorual.

Carfan

#7 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4203 posts

Posted 19 July 2007 - 06:07 PM

Good Tutorial! Thanks!

#8 carfan

carfan

    Frequent Member

  • Advanced user
  • 196 posts
  •  
    United States

Posted 19 July 2007 - 08:26 PM

That sounds really good, but did you know that it's also possible to update files from the script itself? :)

I'm working on a new adaware.script that will show you how it's done - users have the option to click and update definitions file whenever they wish.

You can encode/decode files while running the script - just like the sfx but with more control..

Here's my code snippet for adaware:

[update]

WebGetIfNotExist,"http://download.lavasoft.com/public/defs.zip","%scriptdir%\defs.zip"

If,NotExistFile,%scriptdir%\defs.zip,Run,%ScriptFile%,Exit_Download

ShellExecute,Hide,"%tools%\7za.exe","e #$q%scriptdir%\defs.zip#$q","%ScriptDir%\"

FileDelete,"%scriptdir%\defs.zip"

Encode,%ScriptFile%,Folder,"%scriptdir%\defs.ref"

FileDelete,"%scriptdir%\defs.ref"

Message,"Updated Ad-Aware SE!",Information



[Exit_Download]

Message,"The definitions file was not downloaded!",Error

Halt,"defs.ref was not downloaded"

:yahoo:


I've seen something similar before. I guess my problem is I'm not sure if I know some the download addresses for my programs. But --- I'm VERY interested to see if I can adapt this to my scripts. I'll wait to see your finished adaware script and maybe get some help from you.

Thanks
Carfan

#9 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 20 July 2007 - 09:06 AM

I'm a bit stuck with adaware - it's been a bit short on time lately but you are welcome to pick it up and complete the missing steps (copy definitions file to Application data), look here: http://blog.boot-lan...ork/2007-07-19/

:yahoo:




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users