Results 1 to 10 of 10

Thread: Updating Registry during Installation

  1. #1

    Thread Starter
    Addicted Member MrPresident2k's Avatar
    Join Date
    May 2002
    Location
    INDIA
    Posts
    167

    Using PDW or Install Shield

    Hi,

    I think this is possible if u r using Install Shield to create the package. I don't think it is possible with package and deployment wizard in Visual Studio. btw which 1 are u using?

    Pres

  2. #2
    Hyperactive Member ashay's Avatar
    Join Date
    Feb 2002
    Location
    Mumbai,India
    Posts
    278
    hi,

    for testing purposes i am using Pack and Dep tool.....but mostly for the final setup i think we will be going for InstallShield......

    one more thing i noticed in VC++ project there is one file called .rgs which takes care of all the registry entries.....

    is there anything similar to it in VB????

    regds,
    ashay

  3. #3
    Addicted Member thedoc1's Avatar
    Join Date
    Jan 2002
    Location
    Scenic Tonawanda, NY
    Posts
    143

    Try registering lines...

    The only thing I can think of to help you is to register the item while in the installation with a short vb program at the end of the installation.

    C:\windows\system\regsvr32 /u - unregister
    C:\windows\system\regsvr32 - register
    Thanks

    Doc

  4. #4

    Thread Starter
    Addicted Member MrPresident2k's Avatar
    Join Date
    May 2002
    Location
    INDIA
    Posts
    167

    I don't think so

    Hi,

    I think as far as I know, there is nothing in VB for this as u said that there is 1 in VC. But installshield is the best option for this.

    Pres.

  5. #5
    Hyperactive Member ashay's Avatar
    Join Date
    Feb 2002
    Location
    Mumbai,India
    Posts
    278
    hi,

    okies.....thanx anywaz.........


    regds,
    ashay

  6. #6
    Hyperactive Member D12Bit's Avatar
    Join Date
    Oct 2000
    Location
    Guatemala
    Posts
    373
    Actually...
    with the Deployment & Package Wizard you can include a .reg file...
    I do it a lot...you just need to add it in the screen where it asks for custom added files...and when it spots a .reg file will ask you two things...

    -Do you want the .reg file to be extracted and leave it in the target computer?
    and...
    -Do you want to apply the .reg file to the registry during setup?

    so...you can make your own .reg file and the Setup will take care of the rest

    Hope that this helps
    "Who Dares Wins" - "Quien se Arriesga Gana"
    Mail me at:

  7. #7

    Thread Starter
    Addicted Member MrPresident2k's Avatar
    Join Date
    May 2002
    Location
    INDIA
    Posts
    167

    Thanks D12Bit

    Thanks D12Bit

    That was too informative.

    Pres.

  8. #8
    Hyperactive Member ashay's Avatar
    Join Date
    Feb 2002
    Location
    Mumbai,India
    Posts
    278
    hi,

    thanx all for the help.........that was very useful

    regds,
    ashay

  9. #9
    New Member
    Join Date
    Apr 2002
    Location
    delhi
    Posts
    5

    i think this will help u out

    hi,
    through install shield u can do it.
    there r certain commands 4 tht
    this will retrieve the value from registry
    RegDBGetKeyValueEx (szKey, szName, nvType, svValue, nvSize);
    this will set the value from registry
    RegDBSetKeyValueEx (szKey, szName, nType, szValue, nSize);
    this is for information bout application
    RegDBSetAppInfo (szName, nType, szValue, nSize);
    RegDBSetKeyValueEx (szKey, szName, nType, szValue, nSize);

    by setting this value in install shield u can do certain changes
    best of luck
    bye
    Rishi Bhutani
    rishi

  10. #10
    Hyperactive Member ashay's Avatar
    Join Date
    Feb 2002
    Location
    Mumbai,India
    Posts
    278
    hi,

    i am creating a setup using P&D and also want to update the registry during Setup......

    The .reg file is as foll:
    __________________________________________________
    Regedit4

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Toolbar]
    "{D731E9A8-A012-424F-8F1B-DE0A3C6573D9}"=hex:

    __________________________________________________

    This .reg file when run manually works fine....but when i try to add it to the setup.......it gives me an error

    The file "C:\wn.reg" is not recognised as a valid registry file.

    ___________________________________

    but when i run this Wn.reg file,it works fine and also updates the registry.

    any idea wat cud be wrong

    regds,
    ashay

Posting Permissions

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



Click Here to Expand Forum to Full Width