Announcement

Collapse
No announcement yet.

Registry Variable Failure

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Registry Variable Failure

    I want to locate the Word template directory before installing my application.

    I create a Registry Variable that looks like:

    Variable Name: %TemplateDir%
    Default Value: Not Installed
    Main Key: HKEY_CURRENT_USER
    Sub Key: Software\Microsoft\Office\9.0\Common\General
    Value Name: UserTemplates
    Set variable to TRUE if Sub Key exists: Unchecked

    I know this key exists. I know it has a value.

    I have the destination folder set to:
    %TemplateDir%\%ProductName%

    When I run the install this variable is always set to Not Installed.

    I must be missing something really simple.

    Thanks.

  • #2
    Re: Registry Variable Failure

    Hi,
    Are you sure that this registry value exists? I looked in my registry and I did not see the "UserTemplates" registry value.
    I have everything up to: "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\9.0\Co mmon\General" but nothing called "UserTemplates".
    Is there supposed to be a space in that registry value, i.e. should it be: "User Templates"?

    mark.
    MSI Factory The Next Generation Intelligent Setup Builder

    Comment


    • #3
      Re: Registry Variable Failure

      I know the value name exists. It doesn't have a space. And it does have a value.

      I am pasting this directly from Registrar (a registry editing tool):

      Keyname
      HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Co mmon\General

      Value Name:
      UserTemplates

      Value
      C:\Microsoft Office\Templates

      The reason you do not have a UserTemplates Value Name/Value is that you accepted and have not changed (or confirmed) the location of templates in Word's Tools.Options.FileLocations dialog box.

      For an installation such as yours I would be creating a second Registry Value to check and use -- but I am testing the product and just picked on I know exists in my registry to see if I can get it to do what I require before I consider moving from InstallShield to Setup Factory.

      Thanks for the reply.

      Originally posted by Mark:
      Hi,
      Are you sure that this registry value exists? I looked in my registry and I did not see the "UserTemplates" registry value.
      I have everything up to: "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\9.0\Co mmon\General" but nothing called "UserTemplates".
      Is there supposed to be a space in that registry value, i.e. should it be: "User Templates"?

      mark.


      [This message has been edited by ggallo (edited 05-07-2001).]

      Comment


      • #4
        Re: Registry Variable Failure

        May be a little late...sounds like I problem I had when pasting the path from Regedit -
        you don't want "HKEY_CURRENT_USER\" in the sub key field - its already in the main key field. As such SUF looks for:
        HKEY_CURRENT_USER\HKEY_CURRENT_USER\rest of path...

        Comment

        Working...
        X