Jump to content

Raoul90

Member
  • Posts

    281
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Netherlands

Posts posted by Raoul90

  1. I just mount my particular install.wim and drop all the installation files in same folder as setupcomplete.cmd.

    @echo off

    SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

    REG ADD %KEY% /V TITLE /D "Applicaties & Updates" /F

    REG ADD %KEY%\1/VE /D "Register-instellingen" /f

    REG ADD %KEY%\1 /V 1 /D "%SYSTEMROOT%\Setup\SCRIPTS\RegisterSettings.exe" /f

    REG ADD %KEY%\2/VE /D "DirectX Redist April 2011" /f

    REG ADD %KEY%\2 /V 1 /D "%SYSTEMROOT%\Setup\SCRIPTS\DirectX9.29.1974April2011.exe" /f

    REG ADD %KEY%\3/VE /D "MSE v2.0.657.0" /f

    REG ADD %KEY%\3 /V 1 /D "%SYSTEMROOT%\Setup\SCRIPTS\MSE-2.0.657.0-NL-Win7-X64.exe" /f

    REG ADD %KEY%\4/VE /D "Windows 7 Instellingen" /f

    REG ADD %KEY%\4 /V 1 /D "%SYSTEMROOT%\Setup\SCRIPTS\Install.CMD" /f

    REG ADD %KEY%\5/VE /D "Windows 7 Gadgets" /f

    REG ADD %KEY%\5 /V 1 /D "%SYSTEMROOT%\Setup\SCRIPTS\Gadgets.exe" /f

    REG ADD %KEY%\6/VE /D "WinRAR v4.00" /f

    REG ADD %KEY%\6 /V 1 /D "%SYSTEMROOT%\Setup\SCRIPTS\WinRAR_4.00_Final.exe" /f

    REG ADD %KEY%\7/VE /D "7Zip v9.22" /f

    REG ADD %KEY%\7 /V 1 /D "%SYSTEMROOT%\Setup\SCRIPTS\7z922-x64.exe" /f

    REG ADD %KEY%\8/VE /D "Java v1.6.0.25" /f

    REG ADD %KEY%\8 /V 1 /D "%SYSTEMROOT%\Setup\SCRIPTS\JAVA-1.6.0.25.exe" /f

    REG ADD %KEY%\9/VE /D "VLC v1.1.9" /f

    REG ADD %KEY%\9 /V 1 /D "%SYSTEMROOT%\Setup\SCRIPTS\vlcmp119_silent.exe" /f

    REG ADD %KEY%\10/VE /D "Adobe Plug-Ins" /f

    REG ADD %KEY%\10 /V 1 /D "%SYSTEMROOT%\Setup\SCRIPTS\flashshock.exe" /f

    REG ADD %KEY%\11/VE /D "Adobe Reader X" /f

    REG ADD %KEY%\11 /V 1 /D "%SYSTEMROOT%\Setup\SCRIPTS\AcroRdrX_NL.exe" /f

    Exit

  2. Hi,

    I want to disable the PCA Service.

    The service handles these screens:

    program-compatibility.png

    And in my FirstLogon script there are a couple of programs that make that screen popup. So I want to disable the service during Windows 7 Setup, if possible?

    The regkey:

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PcaSvc]

    "Start"=dword:00000004

    I allready had this ones in one of my autounattend.xml files, but I cant find it anymore, I know its possible without creating a .reg and them importing it, should be possible to do it directly from command prompt.

    Thanks in advance!

    edit:

    Think I found it:

        <settings pass="specialize">
    <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">
    <RunSynchronous>
    <RunSynchronousCommand wcm:action="add">
    <Order>1</Order>
    <Path>cmd /c "cmdow @ /HID & reg add HKLM\SYSTEM\CurrentControlSet\Services\PcaSvc /v Start /t REG_DWORD /d 4 /f</Path>
    </RunSynchronousCommand>
    </RunSynchronous>
    </component>

  3. Yes, I have found a working solution:

    SetupComplete.cmd:

    @echo off
    SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
    REG ADD %KEY% /V TITLE /D "Post Installation" /F
    REG ADD %KEY%\1/VE /D "Enkele Updates" /f
    REG ADD %KEY%\1 /V 1 /D "%SYSTEMROOT%\Setup\SCRIPTS\OptionalUpdates.exe" /f
    REG ADD %KEY%\2/VE /D "DirectX Februari 2010 Redist" /f
    REG ADD %KEY%\2 /V 1 /D "%SYSTEMROOT%\Setup\SCRIPTS\directx_feb2010_redist.exe" /f
    REG ADD %KEY%\3/VE /D "Silverlight 4.0.5.0" /f
    REG ADD %KEY%\3 /V 1 /D "%SYSTEMROOT%\Setup\SCRIPTS\Silverlight4050.exe" /f
    REG ADD %KEY%\4/VE /D "Register Settings" /f
    REG ADD %KEY%\4 /V 1 /D "%SYSTEMROOT%\Setup\SCRIPTS\RegisterSettings_reghack.exe" /f
    REG ADD %KEY%\5/VE /D "MSSE 1.0.1961.0" /f
    REG ADD %KEY%\5 /V 1 /D "%SYSTEMROOT%\Setup\SCRIPTS\MSSE-NL-v1.0.1961.0-X64-UP2DATE.exe" /f
    REG ADD %KEY%\6/VE /D "Windows 7 Settings" /f
    REG ADD %KEY%\6 /V 1 /D "%SYSTEMROOT%\Setup\SCRIPTS\Install.CMD" /f
    Exit

  4. BTW why this happens:

    START /WAIT is a cmd upon itself to do correctly

    cmd /C START /WAIT

    and they will close

    Ah, right! :D

    So this will work right?

                <FirstLogonCommands>
    <SynchronousCommand wcm:action="add">
    <CommandLine>cmd /C start /wait %systemdrive%\APPSX64\MSSE-NL-v1.0.1961.0-X64-UP2DATE.exe</CommandLine>
    <Description>MSSE</Description>
    <Order>1</Order>
    </SynchronousCommand>
    <SynchronousCommand wcm:action="add">
    <CommandLine>cmd /C REGEDIT /S %systemdrive%\APPSX64\RegisterSettings.reg</CommandLine>
    <Description>RegisterTweaks</Description>
    <Order>2</Order>
    </SynchronousCommand>
    </FirstLogonCommands>

  5. don't have the : in it. change like this. I haven't used that in long time so had to go back to my Unattendxp application.

    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\sources\install.wim SET MEDIA=%%d

    Hmm OK, will give that a try.

    BTW why this happens:

    why.png

    At firstlogon? And it doesnt continue until I shut those cmd prompts manually.

    FirstLogon.cmd looks like this:

    @echo off
    START /WAIT %systemdrive%\APPSX64\MSSE-NL-v1.0.1961.0-X64-UP2DATE.exe
    REGEDIT /S %systemdrive%\APPSX64\RegisterSettings.reg
    RD /S /Q %systemdrive%\APPSX64
    EXIT

  6. It is working now! :)

    But I still want to install from DVD:

                <FirstLogonCommands>
    <SynchronousCommand wcm:action="add">
    <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\sources\install.wim set MEDIA=%%i"</CommandLine>
    <Description>Setting Path Variable</Description>
    <Order>1</Order>
    <RequiresUserInput>false</RequiresUserInput>
    </SynchronousCommand>
    <SynchronousCommand wcm:action="add">
    <CommandLine>cmd /c REGEDIT /S %MEDIA%\APPSX64\RegisterSettings.reg</CommandLine>
    <Description>Register Tweaks</Description>
    <Order>2</Order>
    <RequiresUserInput>false</RequiresUserInput>
    </SynchronousCommand>
    <SynchronousCommand wcm:action="add">
    <CommandLine>cmd /c start %MEDIA%\APPSX64\MSSE-NL-v1.0.1961.0-X64-UP2DATE.exe</CommandLine>
    <Description>MSSE-NL-v1.0.1961.0_64bit</Description>
    <Order>3</Order>
    <RequiresUserInput>false</RequiresUserInput>
    </SynchronousCommand>
    </FirstLogonCommands>

    Wont work tho.

  7. Allright, I did another tests and as expected it aint working again. :no:

    do you only have 1 image file in your wim file also what what image are you installing with autounattend.xml i,e ultimate or is it enterprise. enterprise fair enough only one image but windows 7 x86 has 5 and x64 has 4.

    I only use Professional 32 and Professional 64bit.

    you may only be installing professional but which is install.wim Image Index: 4 in x86 and Image Index: 3 in x64 but when you are modding the image it looks like image number 1 you are mounting which is starter or have you removed all other images.

    Yes I removed all other images, since I dont need them.

    Only other thing i can think of are you unmounting the wim file but didn't use commit.

    I did use comit, and also I tried the $OEM$ folder, both time the APPSX64 folder was present at %SYSTEMDRIVE%, I try to call the .cmd in the APPSX64 folder from autounattend.xml file:

            <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">
    <FirstLogonCommands>
    <SynchronousCommand wcm:action="add">
    <CommandLine>cmd /C start /wait %systemdrive%\APPSX64\FirstLog.cmd</CommandLine>
    <Description>FirstLogonScript</Description>
    <Order>1</Order>
    </SynchronousCommand>
    </FirstLogonCommands>

    But it the autounattend file doesnt call the .cmd.

    I attached my X64 autounattended.

    autounattend.xml

  8. Allright, I did another tests and as expected it aint working again. :no:

    do you only have 1 image file in your wim file also what what image are you installing with autounattend.xml i,e ultimate or is it enterprise. enterprise fair enough only one image but windows 7 x86 has 5 and x64 has 4.

    I only use Professional 32 and Professional 64bit.

    you may only be installing professional but which is install.wim Image Index: 4 in x86 and Image Index: 3 in x64 but when you are modding the image it looks like image number 1 you are mounting which is starter or have you removed all other images.

    Yes I removed all other images, since I dont need them.

  9. APPSX86 directory is present after installation? But if you say I should use $OEM$ then I will give that a try..

    Yes, $1 represents the system volume (the one Windows is installed to), which is of course usually C: on a clean install unless you've changed the drive letter with autounattend. That means that during installation (near the end, after the WIM has been laid down onto the disk) the contents of $OEM$\$1 will be copied to the system volume as their folder names - so for example, you would see this folder post-install as %systemdrive%\APPSX86.

    Yeah, lol I know about the $OEM$ folders and structures, same as with XP.

    But what I meant was, I mounted the image, and copied the appsx86 folder to the %MOUNT% folder, which is the same as %systemdrive% after install, since the appsx86 was present @ %SYSTEMDRIVE% after installation.

    edit:

    wim.png

    The APPSX64 folder was between those when I mounted wim and copied folder! :)

  10. Allright, I have time to test again, so I will basically test this now:

    X86:

    @echo off
    REGEDIT /S %systemdrive%\APPSX86\RegisterSettings.reg
    Start /Wait %systemdrive%\APPSX86\MSSE-NL-v1.0.1961.0-X86-UP2DATE.exe
    RD /S /Q %systemdrive%\APPSX86
    EXIT

    X64:

    @echo off
    REGEDIT /S %systemdrive%\APPSX64\RegisterSettings.reg
    Start /Wait %systemdrive%\APPSX64\MSSE-NL-v1.0.1961.0-X64-UP2DATE.exe
    RD /S /Q %systemdrive%\APPSX64
    EXIT

    Called from FirstLogonCommands in autounattend.xml:

                <FirstLogonCommands>
    <SynchronousCommand wcm:action="add">
    <CommandLine>cmd /C start /wait %systemdrive%\APPSX86\FirstLog.cmd</CommandLine>
    <Description>FirstLogonScript</Description>
    <Order>1</Order>
    </SynchronousCommand>
    </FirstLogonCommands>

                <FirstLogonCommands>
    <SynchronousCommand wcm:action="add">
    <CommandLine>cmd /C start /wait %systemdrive%\APPSX64\FirstLog.cmd</CommandLine>
    <Description>FirstLogonScript</Description>
    <Order>1</Order>
    </SynchronousCommand>
    </FirstLogonCommands>

    Hope it works! :)

×
×
  • Create New...