L.C. Posted November 21, 2009 Report Posted November 21, 2009 Alright, so I would like to create a batch file that inserts...30 00 01 41 70 70 4E 61 6D 65 00 43 6F 6E 74 69 6E 75 75 6D 00 01 45 78 65 00 22 44 3A 5C 47 61 6D 65 73 5C 43 6F 6E 74 69 6E 75 75 6D 5C 43 6F 6E 74 69 6E 75 75 6D 2E 65 78 65 22 00 01 53 74 61 72 74 44 69 72 00 22 44 3A 5C 47 61 6D 65 73 5C 43 6F 6E 74 69 6E 75 75 6D 5C 22 00 01 69 63 6F 6E 00 00 01 55 73 65 72 43 61 74 65 67 6F 72 79 00 00 08 00...after the first 12 pairs of shortcuts.vdf (beginning of file).00 73 68 6F 72 74 63 75 74 73 00 00 The material that I want to insert is the following in text:0..AppName.Continuum..Exe."D:\Games\Continuum\Continuum.exe"..StartDir."D:\Games\Continuum\"..icon...UserCategory.... However I want the values of Exe and StarDir to be automatically determined before being inserted into shortcuts.vdf. What I want to do in my custom Continuum040Setup.exe is that after being installed, a batch file would be executed that would insert some preconfigurations for Continuum via registry, and automatically locate the path of Steam and navigate to \config\ and modify shortcuts.vdf. What this would do is (1) preconfigure Continuum and (2) automatically add a Continuum shortcut to your Steam Games listing. I need help figuring out step number one, which is getting a batch file to insert x into file y after bytes z.Step two would be writing the code in the batch to determine Steam's install location (and if it does not exist, then end).Step three would be dynamically adjusting the bytes-to-insert for the appropriate location to Continuum. BlueT Network AdministratorSSCV Network AdministratorJackpot SVS System Operatorhttp://www.hlrse.net/Qwerty/randomsubsbar.jpghttp://www.hlrse.net/Qwerty/BlueToastWebhosting.gif
JoWie Posted November 21, 2009 Report Posted November 21, 2009 I think a windows batch file would be the wrong tool for this. NSIS could do this, although its scripting language takes a while to get used to.
Recommended Posts