Jump to content

Recommended Posts

Posted

Can I have multiple entries for certain categories- for example

[GuiUnattended]
AdminPassword="blahblah"
AutoLogon=Yes
AutoLogonCount=2
EncryptedAdminPassword=No
OEMDuplicatorstring="XP Build 3.2"
OEMSkipRegional=1
OemSkipWelcome=1

and then further down in the file, have

[Guiunattended]
TimeZone=35

Reason being, I have a boot cd which users choose their location. I can have a command which based on user input, will added guiunattnded/timezone to the end of the sysprep.inf file, therefore eliminating certain registry keys I program.


Posted

What are you using to get the user input and add the entry to sysprep? Can't it handle RW to an ini file? Worst case would be to build the setup and test it.

Posted

I was just using a batch script based on user input

echo [Guiunattended] >> sysprep.inf

echo TimeZone=35 >> sysprep.inf

or something similar

Posted

I guess it would depend on how setup reads the file, so you'd probably have to test that. Or you could switch to something like a powershell perl or vbscript script to run your processing. Then you could use a hash or dictionary object to read in the section contents like this powershell example.

get-content sysprep.inf | foreach-object {$infData = @{}}
{$infData[$_.split('=')[0]] = $_.split('=')[1]}

and then access the key using $infData.key1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...