fragbert Posted March 13, 2009 Share Posted March 13, 2009 (edited) Ok, so I gave up on FirstLogonCommands because running setupcomplete.cmd in \scripts does the same thing. However what I really need to finalize my unattended setup is to be able to launch an app installer AFTER the computer autologin's as administrator to the desktop. How can I do this? Edited March 13, 2009 by fragbert Link to comment Share on other sites More sharing options...
IcemanND Posted March 14, 2009 Share Posted March 14, 2009 self deleting file in startup folder would be one option. Link to comment Share on other sites More sharing options...
fragbert Posted March 14, 2009 Author Share Posted March 14, 2009 self deleting file in startup folder would be one option.The only option?Would runonceex still work? Link to comment Share on other sites More sharing options...
OcTroN Posted March 16, 2009 Share Posted March 16, 2009 (edited) Yes it will !That's the way I do it tho In your xml:<FirstLogonCommands> <SynchronousCommand wcm:action="add"> <Order>1</Order> <CommandLine>c:\install\cmd\end.cmd</CommandLine> </SynchronousCommand> </FirstLogonCommands>end.cmd@ECHO OFF%windir%\system32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f%windir%\system32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /v "Preload" /t REG_SZ /d "c:\install.cmd" /fstart %systemdrive%\install\Vista.exeEXITHaven't give me any problem for some months now [Edit] Noticed you want to use RunOnceEx where I use RunOnce, guess it won't give you any problems but I'm not 100% sure .. Edited March 16, 2009 by OcTroN Link to comment Share on other sites More sharing options...
fragbert Posted March 17, 2009 Author Share Posted March 17, 2009 Yes it will !That's the way I do it tho In your xml:<FirstLogonCommands> <SynchronousCommand wcm:action="add"> <Order>1</Order> <CommandLine>c:\install\cmd\end.cmd</CommandLine> </SynchronousCommand> </FirstLogonCommands>end.cmd@ECHO OFF%windir%\system32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f%windir%\system32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /v "Preload" /t REG_SZ /d "c:\install.cmd" /fstart %systemdrive%\install\Vista.exeEXITHaven't give me any problem for some months now [Edit] Noticed you want to use RunOnceEx where I use RunOnce, guess it won't give you any problems but I'm not 100% sure .. OK this is still not what I want - but getting closer. This will launch a process after the "black screen" no-mans-land phase where SetupComplete.cmd executes - but still launches before the desktop is created for the first time. I have a VERY stingy app that will only install properly AFTER the initial desktop creation is complete and are logged in as Administrator.So, I tried copying a cmd that launches the install from the startup folder as suggested above - the cmd wont copy to the administrator startup folder!?!? Access is denied? What gives? I even copied that cmd to the mounted WIM and saved and it never showed up. What is so ungodly hard about setting up an unattened Vista install that ends with launching an app install via the administrator startup folder? Link to comment Share on other sites More sharing options...
OcTroN Posted March 17, 2009 Share Posted March 17, 2009 (edited) Ah I see. Maybe you can try some unofficial way like I do:start %systemdrive%\install\Vista.exe is a one line AutoIt script that waits for the Introductionscreen to popup, after that it gives a shutdown -r -t 0 command. I don't remember why I made it this way (some years ago now) but it is needed in my installs tho.If no one is posting a official Microsoft solution you might want to try that, offcourse the shutdown thing has to be changed to start your .cmdLet's hope someone has the knowledge to post a official solution haha Edited March 17, 2009 by OcTroN Link to comment Share on other sites More sharing options...
Rico.JohnnY Posted March 26, 2009 Share Posted March 26, 2009 Try googling Elevation PowerToys for Windows Vista, it contains two files, which are elevate.cmd and elevate.vbs, then place them under $OEM$\$$\System32, after that,add an entry into FirstLogonCommandsREG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v desktoprun /d "elevate.cmd %CDROM%\blah.exe" /fThat's what i do. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now