Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2007
    Posts
    12

    File association problem

    I'm trying something -
    if chktxt then
    Registry.SetValue(HKEY_CLASSES_ROOT, ".txt", "", "MyApp", REG_SZ);
    Registry.SetValue(HKEY_CLASSES_ROOT, "MyApp\\\\shell\\\\open\\\\command", "", SessionVar.Expand("%AppFolder%\\\\MyApp.exe\\"%1\\ ""), REG_SZ);
    (<-- error on above line)
    end

    but I get an error:
    ')' expected near '%'

    I was not sure about the 'MyApp' part though, so I assumed it might be a mistake - (since it mentions 'KQXEditor' as the application)

    I copied it directly from the knowledgebase article here (changing only the MyApp part):
    http://support.indigorose.com/v3/ind...id=357&nav=0,8

    any ideas on how to resolve this?
    Last edited by augustwind; 02-24-2007 at 10:55 PM.

  2. #2
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728
    Quote Originally Posted by augustwind View Post
    I'm trying something -
    if chktxt then
    Registry.SetValue(HKEY_CLASSES_ROOT, ".txt", "", "MyApp", REG_SZ);
    Registry.SetValue(HKEY_CLASSES_ROOT, "MyApp\\\\shell\\\\open\\\\command", "", SessionVar.Expand("%AppFolder%\\\\MyApp.exe\\"%1\\""), REG_SZ);
    (<-- error on above line)
    end

    but I get an error:
    ')' expected near '%'

    I was not sure about the 'MyApp' part though, so I assumed it might be a mistake - (since it mentions 'KQXEditor' as the application)

    I copied it directly from the knowledgebase article here (changing only the MyApp part):
    http://support.indigorose.com/v3/ind...id=357&nav=0,8

    any ideas on how to resolve this?
    You have two quotes in the middle of your path that aren't escaped properly.

    If you want to include a quote in a string, you need to escape it using \" so that line should be like this:

    Code:
    SessionVar.Expand("%AppFolder%\\\\MyApp.exe\\\"%1\""), REG_SZ);
    I've color-coded the two escape sequences you need so they're easier to see.
    Last edited by Lorne; 02-26-2007 at 09:53 AM.
    --[[ Indigo Rose Software Developer ]]

  3. #3
    Join Date
    Feb 2007
    Posts
    12

    File Association Problem

    [QUOTE=augustwind;96632]
    I copied it directly from the knowledgebase article here (changing only the MyApp part):
    http://support.indigorose.com/v3/ind...id=357&nav=0,8
    QUOTE]


    Thanks - since that's what you pointed out, I'm assuming the other stuff looks all right - -
    However, since I copied it directly from that KB article - you might want to update it to reflect this...
    I'll give it a shot this evening

Similar Threads

  1. Best way to share custom buttons with the group?
    By mwreyf1 in forum AutoPlay Media Studio 6.0
    Replies: 10
    Last Post: 04-28-2010, 01:29 PM
  2. PROBLEM: Setup Requests Disk 2 in a Single File Setup
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-09-2002, 02:04 PM
  3. INFO: Tips for Debugging Action Lists in AutoPlay Media Studio 4.0
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 08:38 AM
  4. Replies: 0
    Last Post: 08-17-2000, 02:29 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