Andromo - Start Making Apps - Free Signup

Announcement

Collapse

New Forum Software

If you're here, you've found the new home for our forums. There will be some bugs to iron out, so thanks for your patience...
See more
See less

User installation folder for registry settings

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • User installation folder for registry settings

    I'm trying to use the variables to generate the registry files based on installed directory. I need to set the installfolder in the registry based on where the user chooses to install the program, not just the default location. If they chose to install MyProgram in d:\someprogram\ I need the registry installfolder to read d:\someprogram\MyProgram\

  • #2
    Simply use the %AppFolder% session variable when setting the value of the registry key...

    Ulrich

    Comment


    • #3
      Thank you, I will try that.

      Comment


      • #4
        This is unexpected, I get Line=2: unexpected symbol near '%'.

        Registry.SetValue(HKEY_LOCAL_MACHINE,"SOFTWARE\\Wo w6432Node\\POL\\InstallFolder","0001", %AppFolder% "\\FF\\",REG_SZ);

        I had tried that yesterday and it did not work. I was reading this:
        http://www.indigorose.com/webhelp/vp...e_Examples.htm

        Comment


        • #5
          Please read the FAQ.

          Ulrich

          Comment

          Working...
          X