my application involves optional component shortcuts supersede shortcuts provided default install. can't figure out how make install default shortcuts if optional not installed - or need give them both same name , hope best? needs work through custom installation tree regular buttons.
see way works is, if selected on install, start menu shortcuts main application have instead point one, open main 1 on own when needs to.
i'm using installshield 2011 professional.
edit: clarify - have 3 components: main, main's shortcut, , addon shortcut. don't know how check if addon 1 has been/is being installed in way can put in condition main's shortcut. surely there's variable it? documentation spartan.
if i'm understanding question correctly, main.exe gets shortcut unless middleman.exe getting installed. in case middleman.exe gets shortcut.
this odd problem in existance of component changes definition of component. still, can done. way create component middleman.exe , define it's shortcut. create component main.exe , don't define it's shortcut.
then write custom action runs in execute sequence in immeadiate execution runs after file costing. have check see if middleman.exe not installed , not being installed. if true, have write temporary row shortcut table define shortcut main.exe.
from there can let msi handle rest without need deferred custom actions handle servicing shortcut.
still, can't wondering if couldn't simplified changing design of application. trying dependency injection @ exe level , easier accomplish @ dll level. in otherwords:
main.exe shortcut optional dll
the main.exe called behave differently when optional.dll present.
Comments
Post a Comment