Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2005
    Posts
    6

    I need help with 7.0

    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?
    Last edited by cs200x; 09-12-2005 at 02:49 PM.

  2. #2
    Join Date
    Sep 2005
    Posts
    6

    Found work around but....

    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.

    Quote Originally Posted by cs200x
    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?

  3. #3
    Join Date
    Sep 2005
    Posts
    6

    Thanks everyone but I got it working now.

    I got it all working ok now so dont need any help

    Quote Originally Posted by cs200x
    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.

  4. #4
    Join Date
    Jan 2000
    Posts
    2,002
    Welcome to the self-help forums.


Similar Threads

  1. Press Release: Setup Factory 7.0
    By Colin in forum AutoPlay Media Studio 5.0
    Replies: 0
    Last Post: 11-16-2004, 01:57 PM
  2. Press Release: Setup Factory 7.0
    By Colin in forum TrueUpdate 1.0
    Replies: 0
    Last Post: 11-16-2004, 01:57 PM
  3. Dependency Module: Visual FoxPro 7.0 SP1
    By Darryl in forum Setup Factory 8.0 Examples
    Replies: 0
    Last Post: 09-30-2004, 09:27 AM
  4. Learning Setup Factory 7.0
    By Ted Sullivan in forum Setup Factory 7.0
    Replies: 0
    Last Post: 09-22-2004, 01:01 PM
  5. New Features in Setup Factory 7.0
    By Ted Sullivan in forum Setup Factory 7.0
    Replies: 0
    Last Post: 08-12-2004, 12:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts