PDA

View Full Version : how to change shortcut name?


mefas
09-20-2005, 06:03 AM
how could i change my Shortcut name?

some of my code:

Dialog.Message("",System.GetDefaultLangID().Primary); -- 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!

mefas
09-29-2005, 07:28 AM
Anybody?...

Adam
09-29-2005, 09:07 AM
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

Eagle
09-29-2005, 11:31 AM
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/showthread.php?t=10066&highlight=Nested+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

mefas
09-30-2005, 05:23 AM
thanks :yes