PDA

View Full Version : How to prevent install shortcuts to start menu dynamicly?



Simon_Yang
05-27-2009, 02:16 PM
I have a MIS baisc project which has two shortcuts. I want to let user choose install shortcuts or not in installation GUI while installing. I knew I can remove the shortcuts from database of MSI file in runtime to reach this goal. However, it will destory the original msi file and a little complex.

Is there anyone knows how to prevent install shortcuts in a easier way?

Thanks a lot!

Christoph
05-28-2009, 08:20 AM
you can create a separate component that contains all your shortcuts and put a condition on that component.

That condition contains the result of the checkbox that asks whether to install the shortcuts or not.

Simon_Yang
05-28-2009, 12:39 PM
Thanks,

I found a way that give action "CreateShortCuts" a condition.

Is that OK?

Christoph
05-29-2009, 02:27 AM
that is also a possibility.
If this works for your scenario... you can do this but this means that no shortcuts will be created as long as this condition is not met.

With my solution... you place the condition on the component

You're call... ;)