Jump to content

Yzöwl

Patron
  • Posts

    4,113
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

Everything posted by Yzöwl

  1. Examples: CMDLINES.TXT Using $OEM$\DefUser.cmd[Commands] "DefUser.cmd" Or using $OEM$\$1\Install\DefUser.cmd[Commands] "%SystemDrive%\Install\DefUser.cmd" WINNT.SIF Using $OEM$\$1\Install\DefUser.cmd[GUIRunOnce] command8="%SystemDrive%\Install\DefUser.cmd"
  2. As an alternative, you could use REG.EXE in a Windows NT Command Script: DefUser.cmd @Echo off Setlocal Set "KEY=HKU\Default" Pushd %AllUsersProfile%\.. Reg load %KEY% "Default User\NTUSER.DAT">Nul Reg add "%KEY%\Control Panel\Desktop" /v AutoEndTasks /d "0" /f>Nul Reg add "%KEY%\Control Panel\Desktop" /v HungAppTimeout /d "1500" /f>Nul Reg add "%KEY%\Control Panel\Desktop" /v MenuShowDelay /d "100" /f>Nul Reg add "%KEY%\Control Panel\Desktop" /v WaitToKillAppTimeout /d "3000" /f>Nul Reg unload %KEY%>Nul Endlocal Goto :Eof
  3. It will do, because it's not what was suggested for you to use. All your commands seem to be starting their lines with a double quote before the word start, remove them and try again! <Edit> Sorry for the post IcemanND beat me to it! I've edited your post however to place your code in between tags </Edit>
  4. It depends on your interpretation of XP's shell; if you mean without third party utilities then yes it can be retrieved.
  5. As well as the information provided by Idontwantspam, all these have been solved previously on these forums. Did you use the search facility?
  6. This is a new project which may be worth looking at. Many of the other Open Source Projects I have used previously seem to have stopped active development.
  7. Well I suppose that if your happy with it then thats fine, but I would never remove the entire tree under those paths!
  8. Just copy and paste the following into a new cmd file, select multiple files and drag and drop them onto it: @echo off & setlocal for %%# in (%*) do call set var=%%~nx# %%var%% echo:%var% pause & goto :eofLet me know if this is what you wanted!
  9. These and many other answers can be found in the unattended guide and within these forums. You need to spend plenty of time reading and learning and when you've done that do it again. Please also note that there are forum areas dedicated to some of the individual areas of which you speak.
  10. You don't use those registry branches, try changing them to User Shell Folders instead and then ensure that the key data is of type REG_EXPAND_SZ.
  11. Now aren't I glad I gave you a longer but easier to understand solution... Lines 1 & 2 turn off echoing to the console and ensure that all variables are locally set. Lines 3, 4 & 5 is my way of setting the key you gave for the registry data we're looking for. It is considered good practice when coding to maintain maximum character line lengths, in this case 80 characters; so I've split it across 3 lines for this reason. The For loop is where it gets interesting... I took your reg query command and put it inside the parentheses. because your output produced more than one line I needed to capture only the line containing your version data so I sent the result of the reg query through a find command to pick up the line containing REG_ the output of the data is TAB delimited (delims=<TAB>) into distinct columns. the data you wanted was in the third column (tokens=3) Basically any data in third column of that key will be set to the local variable %rel% All we do then is a simple `if result of query is not our data then perform this task` line. For that line, i.e. your installation, you could see if you can use silent switches too, this would remove any end-user interaction!
  12. Try something like this: @Echo Off Setlocal Set "key=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData" Set "key=%key%\S-1-5-18\Products\2C478CE6059FE7B45A7B1B60D6B647AA" Set "key=%key%\InstallProperties" For /f "tokens=3 delims= " %%# In ( 'Reg query %key% /v DisplayVersion^|Find "REG_" 2^>Nul') Do Set "rel=%%#" If Not [%rel%]==[7.4.0.91] Start "" /wait C:\apps\QuickTime740Installer.exe Endlocal Goto :EofWhere delims=<TAB>"
  13. If you gave us the actual folder name I could do a little better with it. There shouldn't really be a reason why you cannot run it under %userprofile% at logon!
  14. Welcome to the MSFN Forums. You'll be surprised how quickly it'll be before you think you know it all!
  15. Welcome to the MSFN Forums, we hope you find your membership here worthwhile. Short and too the point, if only all posts were
  16. RogueSpear has their own Off-Site Forum, RyanVM has his own Off-Site Forum, nLite has it's own On-Site Forum and this site even has it's own Forum for creating Unattended Windows installations. I'd strongly suggest you direct your question to the appropriate place. Topic Closed!
  17. Delete it, it's not required!
  18. Welcome to the MSFN Forums. Becoming the best was the easy part, staying there needs good membership, thank you for joining!
  19. Welcome to the MSFN Forums. Becoming the best was the easy part, staying there needs good membership, thank you for joining!
  20. Welcome to the MSFN Forums. Becoming the best was the easy part, staying there needs good membership, thank you for joining!
  21. Welcome to the MSFN Forums. Becoming the best was the easy part, staying there needs good membership, thank you for joining!
  22. Yzöwl

    Hello

    Welcome to the MSFN Forums. Becoming the best was the easy part, staying there needs good membership, thank you for joining!
  23. Welcome to the MSFN Forums. Becoming the best was the easy part, staying there needs good membership, thank you for joining!
×
×
  • Create New...