December 30, 200421 yr Hey guys how can i make it so a text document will appear on the reboot after all the programs have installed and all so the user can read what was included and all the product keys and all
December 30, 200421 yr [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\CurrentVersion\Runonce]"TestDoc"="C:\Windows\MyDocument.txt"
December 30, 200421 yr Has to be a REG_EXPAND_SZTry that I think its what you need. Just merge the key and reboot see if it comes up.Windows Registry Editor Version 5.00;%systemdrive%\TEST.TXT[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Runonce]"Readme"=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,64,00,72,00,69,00,76,\ 00,65,00,25,00,5c,00,54,00,45,00,53,00,54,00,2e,00,54,00,58,00,54,00,00,00EDIT: This works I just run it. Edited December 30, 200421 yr by maxXPsoft
December 30, 200421 yr I updated above and it works, I used the HKEY_CURRENT_USER instead.You could add this so it makes it appear on all users by adding to the HKCU reg tweaks. Read the MSFN Guide for details. Edited December 30, 200421 yr by maxXPsoft
December 30, 200421 yr Author umm its hex so how do i change it so its %systemdrive%\docs\relnotes.txt
December 30, 200421 yr Has to be a REG_EXPAND_SZtry this tho, in a .bat fileREG ADD HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Runonce /V test /D %systemdrive%\docs\relnotes.txt
December 30, 200421 yr Instead of putting all that on a readme that a customer will just delete, we put our company logo and all relevant info like that in the oeminfo. You could do a combination of the two, a readme on the Desktop and some permanent inf in the oem info.http://unattended.msfn.org/xp/oeminfo.htm
December 30, 200421 yr @MCTIn my experience the "average punter" we supply to cannot copy & paste never mind find an oeminf file and edit it or del it! You wouldn't believe some of the "tech" queries we get. Drag and drop with the right mouse button is rocket science dont you know!
December 30, 200421 yr i understand what your saying, i was just stating that not EVERY user is a n00b & there are ways 2 get around that oeminfo
December 30, 200421 yr A simpler solution would be to put your .doc inside your $OEM$ folder:\$OEM$\$Docs\Administrator\Start Menu\Programs\Start\\$OEM$\$Docs\All Users\Start Menu\Programs\Start\\$OEM$\$Docs\Default User\Start Menu\Programs\Start\This way it would be added to the start menu BUT it would launch everytime the computer is rebooted until you delete it from the start menu.Otherwise, just launch the file as the last step of your RunOnceEx.cmd
December 30, 200421 yr umm its hex so how do i change it so its %systemdrive%\docs\relnotes.txtSame way I would change it.Save my example as a reg file. Double click to inport. Go to that key and modify it to your needs. So that becomes;Windows Registry Editor Version 5.00;%systemdrive%\docs\relnotes.txt[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Runonce]"Readme"=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,64,00,72,00,69,00,76,\ 00,65,00,25,00,5c,00,64,00,6f,00,63,00,73,00,5c,00,72,00,65,00,6c,00,6e,00,\ 6f,00,74,00,65,00,73,00,2e,00,74,00,78,00,74,00,00,00 MCT Yes for expand variables in a reg file as your first example it has to be Reg_expand. BTW, i couldn't get it to work in HKLMOr as MCT done it, just open a prompt and paste that and it adds so its simply one line and very simple. Can be added in cleanup.cmd by pasting his whole thing.NOTES for those wanting to call a file not associated. You would do that by something similar to this Notepad.exe /open %systemdrive%\docs\relnotes.diz Edited December 30, 200421 yr by maxXPsoft
Create an account or sign in to comment