View Full Version : I need help with 7.0
cs200x
09-12-2005, 02:47 PM
I use old version of setup factory 6.0 to setup a driving registry engine but in 7.0 i am not sure how to do same thing.
Ok like this was from old installer.
Variable name:
%BodiesTextures%
value
%GamePathLocation%\Client\avatardata\bodies\textur es
in 7.0 i need to do something like this to set a registry path up.
OnePath = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\game\\The test", "InstallDir", true);
twoPath = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\game\\testpath", "GameDir", true)
Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\ware\\Patch\\Data", "InstallDir",OnePath,REG_SZ);
Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\ware\\Patch\\Data", "GameDir",Game,twoPath,REG_SZ);
I need to set twoPath with onePath in one line to the registry so how would I do this in 7.0?
cs200x
09-12-2005, 06:55 PM
I found a work around but now how do I make a %VarName% go with each one for installing my files? the setup i got is like so.
TestPath1 = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\TestKey\\TestSubKey", "InstallDir", true);
foundTest1 = Folder.Find(TestPath1, "Client*", true, ShowSearchProgress);
if (foundTest1) then
Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\Testkey\\Testsubkey\\Testsubkey2", "GameDir",foundTest1[1],REG_SZ);
end
foundTest2 = Folder.Find(found[1], ".castanet*", true, ShowSearchProgress);
if (foundTest2) then
Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\Testkey\\Testsubkey\\Testsubkey2", ".castanetDir",foundTest2[1],REG_SZ);
end
this is just a test I setup and it does set the right path for me now but I need to know how to give each one a %VarName%.
Sorry only been at this for less then a day with 7.0 so still new at it. :)
I use old version of setup factory 6.0 to setup a driving registry engine but in 7.0 i am not sure how to do same thing.
Ok like this was from old installer.
Variable name:
%BodiesTextures%
value
%GamePathLocation%\Client\avatardata\bodies\textur es
in 7.0 i need to do something like this to set a registry path up.
OnePath = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\game\\The test", "InstallDir", true);
twoPath = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\game\\testpath", "GameDir", true)
Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\ware\\Patch\\Data", "InstallDir",OnePath,REG_SZ);
Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\ware\\Patch\\Data", "GameDir",Game,twoPath,REG_SZ);
I need to set twoPath with onePath in one line to the registry so how would I do this in 7.0?
cs200x
09-13-2005, 06:50 AM
I got it all working ok now so dont need any help :)
I found a work around but now how do I make a %VarName% go with each one for installing my files? the setup i got is like so.
TestPath1 = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\TestKey\\TestSubKey", "InstallDir", true);
foundTest1 = Folder.Find(TestPath1, "Client*", true, ShowSearchProgress);
if (foundTest1) then
Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\Testkey\\Testsubkey\\Testsubkey2", "GameDir",foundTest1[1],REG_SZ);
end
foundTest2 = Folder.Find(found[1], ".castanet*", true, ShowSearchProgress);
if (foundTest2) then
Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\Testkey\\Testsubkey\\Testsubkey2", ".castanetDir",foundTest2[1],REG_SZ);
end
this is just a test I setup and it does set the right path for me now but I need to know how to give each one a %VarName%.
Sorry only been at this for less then a day with 7.0 so still new at it. :)
Brett
09-13-2005, 08:13 AM
Welcome to the self-help forums.
;)
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.