jamesas Posted December 30, 2004 Share Posted December 30, 2004 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 Link to comment Share on other sites More sharing options...
MCT Posted December 30, 2004 Share Posted December 30, 2004 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\CurrentVersion\Runonce]"TestDoc"="C:\Windows\MyDocument.txt" Link to comment Share on other sites More sharing options...
jamesas Posted December 30, 2004 Author Share Posted December 30, 2004 is it allowed to have %systemdrive% in there Link to comment Share on other sites More sharing options...
maxXPsoft Posted December 30, 2004 Share Posted December 30, 2004 (edited) 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, 2004 by maxXPsoft Link to comment Share on other sites More sharing options...
maxXPsoft Posted December 30, 2004 Share Posted December 30, 2004 (edited) 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, 2004 by maxXPsoft Link to comment Share on other sites More sharing options...
jamesas Posted December 30, 2004 Author Share Posted December 30, 2004 umm its hex so how do i change it so its %systemdrive%\docs\relnotes.txt Link to comment Share on other sites More sharing options...
MCT Posted December 30, 2004 Share Posted December 30, 2004 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 Link to comment Share on other sites More sharing options...
DLF Posted December 30, 2004 Share Posted December 30, 2004 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 Link to comment Share on other sites More sharing options...
MCT Posted December 30, 2004 Share Posted December 30, 2004 they can delete that too tho dlf they just need 2 know how lol Link to comment Share on other sites More sharing options...
DLF Posted December 30, 2004 Share Posted December 30, 2004 @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! Link to comment Share on other sites More sharing options...
MCT Posted December 30, 2004 Share Posted December 30, 2004 i understand what your saying, i was just stating that not EVERY user is a n00b & there are ways 2 get around that oeminfo Link to comment Share on other sites More sharing options...
Incroyable HULK Posted December 30, 2004 Share Posted December 30, 2004 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 Link to comment Share on other sites More sharing options...
maxXPsoft Posted December 30, 2004 Share Posted December 30, 2004 (edited) 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, 2004 by maxXPsoft 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