Jump to content

First run


Recommended Posts


Has to be a REG_EXPAND_SZ

Try 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,00

EDIT: This works I just run it.

Edited by maxXPsoft
Link to comment
Share on other sites

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 by maxXPsoft
Link to comment
Share on other sites

@MCT

In 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! :no:

Link to comment
Share on other sites

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

umm its hex so how do i change it so its %systemdrive%\docs\relnotes.txt

Same 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

:whistle: 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 HKLM

Or 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 by maxXPsoft
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...