Raoul90 Posted April 12, 2010 Author Share Posted April 12, 2010 (edited) The FirstLogonCommands setting specifies commands to run the first time a user logs on to the computer. These commands run only once.Valid Configuration PassesoobeSystem Configuration Pass you have it in specializeOMG, you gotta be kiddin me, will change it, lol. Edited April 12, 2010 by Raoul90 Link to comment Share on other sites More sharing options...
Raoul90 Posted April 15, 2010 Author Share Posted April 15, 2010 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. Link to comment Share on other sites More sharing options...
maxXPsoft Posted April 15, 2010 Share Posted April 15, 2010 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 Link to comment Share on other sites More sharing options...
Raoul90 Posted April 15, 2010 Author Share Posted April 15, 2010 (edited) 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=%%dHmm OK, will give that a try.BTW why this happens:At firstlogon? And it doesnt continue until I shut those cmd prompts manually.FirstLogon.cmd looks like this:@echo offSTART /WAIT %systemdrive%\APPSX64\MSSE-NL-v1.0.1961.0-X64-UP2DATE.exeREGEDIT /S %systemdrive%\APPSX64\RegisterSettings.regRD /S /Q %systemdrive%\APPSX64EXIT Edited April 15, 2010 by Raoul90 Link to comment Share on other sites More sharing options...
maxXPsoft Posted April 16, 2010 Share Posted April 16, 2010 BTW why this happens:START /WAIT is a cmd upon itself to do correctlycmd /C START /WAITand they will close Link to comment Share on other sites More sharing options...
Yesnovato Posted April 16, 2010 Share Posted April 16, 2010 Hello Raoul90Try it@echo offfor %%i 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 %%i:\Appx86 set CDROM=%%i:set APPx86PATH=%CDROM%\APPx86cd %APPx86PATH%Start /wait %APPx86PATH%\yourapplication.exeExit or shutdown /r Link to comment Share on other sites More sharing options...
Raoul90 Posted April 17, 2010 Author Share Posted April 17, 2010 (edited) BTW why this happens:START /WAIT is a cmd upon itself to do correctlycmd /C START /WAITand they will closeAh, right! 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> Edited April 17, 2010 by Raoul90 Link to comment Share on other sites More sharing options...
boubouch Posted April 27, 2010 Share Posted April 27, 2010 (edited) Hello.I have the same issue with my Unattended installation and I can't find the solution.I want tho make the same thing has you try here : launch an application or a script at the first logon session.Did you find the solution ? Can you put it here plz ?.Thx. Edited April 27, 2010 by boubouch Link to comment Share on other sites More sharing options...
Raoul90 Posted April 27, 2010 Author Share Posted April 27, 2010 Yes, I have found a working solution:SetupComplete.cmd:@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Post Installation" /FREG ADD %KEY%\1/VE /D "Enkele Updates" /fREG ADD %KEY%\1 /V 1 /D "%SYSTEMROOT%\Setup\SCRIPTS\OptionalUpdates.exe" /fREG ADD %KEY%\2/VE /D "DirectX Februari 2010 Redist" /fREG ADD %KEY%\2 /V 1 /D "%SYSTEMROOT%\Setup\SCRIPTS\directx_feb2010_redist.exe" /fREG ADD %KEY%\3/VE /D "Silverlight 4.0.5.0" /fREG ADD %KEY%\3 /V 1 /D "%SYSTEMROOT%\Setup\SCRIPTS\Silverlight4050.exe" /fREG ADD %KEY%\4/VE /D "Register Settings" /fREG ADD %KEY%\4 /V 1 /D "%SYSTEMROOT%\Setup\SCRIPTS\RegisterSettings_reghack.exe" /fREG ADD %KEY%\5/VE /D "MSSE 1.0.1961.0" /fREG ADD %KEY%\5 /V 1 /D "%SYSTEMROOT%\Setup\SCRIPTS\MSSE-NL-v1.0.1961.0-X64-UP2DATE.exe" /fREG ADD %KEY%\6/VE /D "Windows 7 Settings" /fREG ADD %KEY%\6 /V 1 /D "%SYSTEMROOT%\Setup\SCRIPTS\Install.CMD" /fExit Link to comment Share on other sites More sharing options...
boubouch Posted April 28, 2010 Share Posted April 28, 2010 Thank you for your response ^^I will try this solution in my installation.A lot of thanks to you Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now