Create dynamic shortcut
Posted 21 March 2002 - 16:29
I need to set the shortcut's name according to a property's value. This property's value will be set according to the options choosen by the user during the UISequence.
Does anybody have any idea?
Thank you very much,
Posted 21 March 2002 - 17:19
You need to be aware that you will need to add the same record when the msi is run again to update or remove the installaion.
Posted 22 March 2002 - 14:45
I am not used to use the msi database function.
Please, which kind of msi database function should I use?
Thank you for your attention,
Posted 25 March 2002 - 10:06
char *pQuery = "INSERT INTO Shortcut "
"(Shortcut.Shortcut, Shortcut.Directory_, ...) "
"VALUES ('ShortcutKey', 'Directory, ....) "
hDatabase = MsiGetActiveDatabase(hMsi);
Result = MsiDatabaseOpenView(hDatabase, pQuery, &hView);
Result = MsiViewExecute(hView, 0);
see also examples adding rows to list and combo boxes.
I hope this helps
Posted 25 March 2002 - 13:07
Thank you for your help.
I will try to use these functions.