Jump to content

Need Help With Answer File


Recommended Posts

HI frnds..

i m currently installing vista x64 ultimate edition on my pc. But i m not able to install appz during 1st logon command. i have checked the unattended installation logs after installation, but it shows no errors ! but there arent any applications installed within setup :unsure: . plz let me know if i m doing anything wrong. here is my answer file.

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="auditSystem">
<component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<AuditComputerName>
<Name>Heaven</Name>
</AuditComputerName>
</component>
</settings>
<settings pass="windowsPE">
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Display>
<ColorDepth>32</ColorDepth>
<HorizontalResolution>1280</HorizontalResolution>
<RefreshRate>60</RefreshRate>
<VerticalResolution>1024</VerticalResolution>
</Display>
<UserData>
<ProductKey>
<WillShowUI>OnError</WillShowUI>
<Key></Key>
</ProductKey>
<AcceptEula>true</AcceptEula>
<FullName>Amit</FullName>
<Organization>Heaven</Organization>
</UserData>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-Security-Licensing-SLC-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SkipAutoActivation>true</SkipAutoActivation>
</component>
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<AutoLogon>
<Enabled>true</Enabled>
<LogonCount>1</LogonCount>
<Username>Administrator</Username>
</AutoLogon>
<Display>
<ColorDepth>32</ColorDepth>
<DPI>96</DPI>
<HorizontalResolution>1280</HorizontalResolution>
<RefreshRate>60</RefreshRate>
<VerticalResolution>1024</VerticalResolution>
</Display>
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<Description>Setting Variables</Description>
<CommandLine>cmd /c "FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\amit.txt SETX AppsRoot %i:\ -m"</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>3</Order>
<Description>Installing Adobe Reader 8.0</Description>
<CommandLine>cmd /c %AppsRoot%Install\AdobeReader.exe</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>4</Order>
<Description>Installing Yahoo Messenger 810413</Description>
<CommandLine>cmd /c %AppsRoot%Install\ymsgr810_413_us_2.exe /s</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>5</Order>
<Description>Installing SPTD 1.50 Driver For DaemonTools</Description>
<CommandLine>cmd /c %AppsRoot%Install\SPTD150x64.exe add /q</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>6</Order>
<Description>Installing NotePad++ 4.02</Description>
<CommandLine>cmd /c %AppsRoot%Install\NOTEPAD402.EXE /S</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>7</Order>
<Description>Installing Nero 7.9.6.0 lite</Description>
<CommandLine>cmd /c %AppsRoot%Install\Nero7960.exe /VERYSILENT /USER="Amit" /COMPANY="Heaven" /SERIAL="1C81-A0K5-19E5-MAAM-400F-3C0E-JBMK"</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>8</Order>
<Description>Installing Java Runtime Environment 6 Update 1</Description>
<CommandLine>cmd /c %AppsRoot%Install\jre6u1.exe</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>10</Order>
<Description>Installing Firefox Profile</Description>
<CommandLine>cmd /c %AppsRoot%Install\FirefoxProfile.exe</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>9</Order>
<Description>Installing Firefox 2.0.0.6</Description>
<CommandLine>cmd /c %AppsRoot%Install\Firefox.exe -ms</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>2</Order>
<Description>Tweaking System</Description>
<CommandLine>cmd /c REGEDIT /S %AppsRoot%Install\MyTweaks.reg</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>11</Order>
<Description>cmd /c %AppsRoot%Install\DTPro4100215Free.exe /s</Description>
<CommandLine>Installing DaemonTools Pro 4.10 x86</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>12</Order>
<Description>Patching DaemonTools Pro</Description>
<CommandLine>cmd /c %AppsRoot%Install\cryptapi.exe</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>13</Order>
<Description>Preparing Bootskin</Description>
<CommandLine>cmd /c BCDEDIT /SET QuietBoot ON</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>14</Order>
<Description>Installing Microsoft Office 2007 Enterprise</Description>
<CommandLine>cmd /c %AppsRoot%Install\Office07\setup.exe /adminfile officemanual.MSP</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>15</Order>
<Description>Activating Windows Vista and Rebooting</Description>
<CommandLine>cmd /c %AppsRoot%Install\crack\uni.bat</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>
<OEMInformation>
<HelpCustomized>false</HelpCustomized>
<Manufacturer>Amit Aghara</Manufacturer>
<Model>Intel C2D Extreme Edition</Model>
<SupportURL>www.project-os.org</SupportURL>
</OEMInformation>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<NetworkLocation>Home</NetworkLocation>
<ProtectYourPC>1</ProtectYourPC>
<SkipMachineOOBE>true</SkipMachineOOBE>
<SkipUserOOBE>true</SkipUserOOBE>
</OOBE>
<VisualEffects>
<FontSmoothing>ClearType</FontSmoothing>
</VisualEffects>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:k:/vistax64myedition/sources/install.wim#Vista x64 Personal Edition" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

Regards

AMIT

Link to comment
Share on other sites


amit

you're not setting your variable

<CommandLine>cmd /c "FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\amit.txt SETX AppsRoot %i:\ -m"</CommandLine>

translates to

cmd /c "FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\amit.txt SETX AppsRoot %i:\ -m"

%i:\ -m" whats the -m for, I don't think it belongs there

EDIT: maybe thats something with Setx which is totally unecessary just use

"FOR %d IN (c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:) DO IF EXIST %d\amit.txt SET Appsroot=%d\"
Edited by maxXPsoft
Link to comment
Share on other sites

Thnx Max :), i m not good with batch scripts. thnx for correcting variables path. i will check it , and will post my reply here. This time i have just tested setup with installing apps in "audituser" mode. it worked fine though :).

Link to comment
Share on other sites

thats just a cmd with SynchronousCommand, if it was in a batch file then you will need double % in all places on the variable %%d

at the time when this is executing hit shift F10 and type SET and you should see your variable applied as Appsroot=D:\ or whatever drive you have the txt on

I've added to my VistaUA because of your Auditsys/user xmls but am still debugging trying to figure out exactly what can do and can't

Link to comment
Share on other sites

EDIT: maybe thats something with Setx which is totally unecessary just use

Well, that's not right completly - if you try following my Guide. I don't wanna say, that this is the only working way. But it seems to be, that amit tried to follow my Guide and so he has to use setx. But amit did not follow the Guide exactly:

Setx.exe with -m option sets the AppsRoot variable to the system (machines) environment. That means it will be written into the registry. But the environment will be loaded once only; at the very beginning of a session (pass). So if you set AppsRoot variable in auditUser pass for example, than you can't use it in this same auditUser pass. This is the reason why I set AppsRoot variable during specialize pass and than use it in auditUser pass.

Set instead sets the AppsRoot varialbe for the actual cmd only. That means after cmd /c command it's gone again. So you can't use it for the second, third etc. cmd /c command. This is/was my experience when figuring out the apps installation.

just use

"FOR %d IN (c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:) DO IF EXIST %d\amit.txt SET Appsroot=%d\"

AFAIK, that will only work, if you put this command AND all the apps installer calls into the same batch. :unsure:

I need to mention, that I'm not the "king of batch programming", too, so I might be wrong here partly.

But the way I've described works, if you do it exactly like described inside the guide. But amit did not, cause he used setx command in the same pass like the call for apps installations.

Regards,

Martin

Edited by FireGeier
Link to comment
Share on other sites

But the way I've described works, if you do it exactly like described inside the guide. But amit did not, cause he used setx command in the same pass like the call for apps installations.

Regards,

Martin

ahh I see, you know your method better than me, and I don't use setx

lookin back now when I use that set I leave the batch open while it does SetDriversRoot.cmd

Link to comment
Share on other sites

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...