Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2005
    Posts
    3

    how to change shortcut name?

    how could i change my Shortcut name?

    some of my code:

    Dialog.Message("",System.GetDefaultLangID().Primar y); -- 9
    if System.GetDefaultLangID().Primary == 9 then
    tbl_FL = SetupData.GetFileList(); --FileList
    for x, tbl_Prop in tbl_FL do
    if tbl_Prop.FileName == "MyExec.exe" then
    Dialog.Message("",tbl_Prop.ShortcutDescription); -- "not english shortcut"
    tbl_Prop.ShortcutDescription = "english shortcut";
    Dialog.Message("",tbl_Prop.ShortcutDescription); -- "english shortcut"
    end; --if
    end; --for
    end; --if
    ----------------------------------
    This code executes On Pre Insall

    but in the end it installs "not english shortcut".
    What am i doing wrong? Help me please!
    Last edited by mefas; 09-20-2005 at 05:14 AM.

  2. #2
    Join Date
    Aug 2005
    Posts
    3
    Anybody?...

  3. #3
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    What shortcut? I do not see a shortcut action in your script. The only way to have control over shortcuts is to create them yourself using actions.

    Adam Kapilik

  4. #4
    Join Date
    Mar 2005
    Location
    WA 'wait a while' - Australia
    Posts
    872
    Accessing-changing the setupdata.filelist table contents does not allow you
    to make any 'real' changes during install, as far as I am aware.

    explore the Shell.CreateShortcut action.
    below link may help:

    http://www.indigorose.com/forums/sho...sted+Shortcuts

    the above link shows how to get the assigned shortcut folder path etc.

    you could use an if... then statement to control which shortcuts
    you would like to create, something similar to below perhaps:

    if langid == 9 then
    Shell.CreateShortcut(...'english shortcut' description parameter....)
    else
    Shell.CreateShortcut(...'other language' shortcut description parameter....)
    end

    hth

  5. #5
    Join Date
    Aug 2005
    Posts
    3
    thanks

Similar Threads

  1. HOWTO: Create a Shortcut to an Internet URL
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-29-2002, 02:07 PM
  2. HOWTO: Uninstall a Shortcut Created with Actions
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-25-2002, 09:50 AM
  3. HOWTO: Create a Shortcut on the Desktop
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-19-2002, 02:56 PM
  4. Shortcut to change screen resolution?
    By chipzoller in forum AutoPlay Menu Studio 3.0
    Replies: 8
    Last Post: 02-12-2002, 10:53 AM
  5. How I can change path of the default shortcut folder?
    By koptelov in forum Setup Factory 5.0
    Replies: 1
    Last Post: 02-26-2001, 03:35 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