Hello people,
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,
Ajawl
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Create dynamic shortcut
Started by
Ajawl
, Mar 21 2002 16:29
4 replies to this topic
Posted 21 March 2002 - 17:19
You can add records to the shortcut table using the msi database functions.
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.
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.
Ian Blake
(Currently Unemployed)
(Currently Unemployed)
Posted 22 March 2002 - 14:45
Hi Ian Blake,
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,
Ajawl
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,
Ajawl
Posted 25 March 2002 - 10:06
In outline
PMSIHANDLE hDatabase;
PMSIHANDLE hView;
char *pQuery = "INSERT INTO Shortcut "
"(Shortcut.Shortcut, Shortcut.Directory_, ...) "
"VALUES ('ShortcutKey', 'Directory, ....) "
"TEMPORARY";
hDatabase = MsiGetActiveDatabase(hMsi);
Result = MsiDatabaseOpenView(hDatabase, pQuery, &hView);
Result = MsiViewExecute(hView, 0);
MsiViewClose(hView);
see also examples adding rows to list and combo boxes.
I hope this helps
PMSIHANDLE hDatabase;
PMSIHANDLE hView;
char *pQuery = "INSERT INTO Shortcut "
"(Shortcut.Shortcut, Shortcut.Directory_, ...) "
"VALUES ('ShortcutKey', 'Directory, ....) "
"TEMPORARY";
hDatabase = MsiGetActiveDatabase(hMsi);
Result = MsiDatabaseOpenView(hDatabase, pQuery, &hView);
Result = MsiViewExecute(hView, 0);
MsiViewClose(hView);
see also examples adding rows to list and combo boxes.
I hope this helps
Ian Blake
(Currently Unemployed)
(Currently Unemployed)
Posted 25 March 2002 - 13:07
Hi Ian Blake,
Thank you for your help.
I will try to use these functions.
Best Regards,
Ajawl
Thank you for your help.
I will try to use these functions.
Best Regards,
Ajawl