Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2014
    Posts
    3

    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. #2
    Join Date
    Apr 2005
    Location
    Tabo„o da Serra
    Posts
    3,608
    Simply use the %AppFolder% session variable when setting the value of the registry key...

    Ulrich

  3. #3
    Join Date
    Jul 2014
    Posts
    3
    Thank you, I will try that.

  4. #4
    Join Date
    Jul 2014
    Posts
    3
    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

  5. #5
    Join Date
    Apr 2005
    Location
    Tabo„o da Serra
    Posts
    3,608
    Please read the FAQ.

    Ulrich

Posting Permissions

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