howardsd
asked on
Create shortcut dynamically using checkbox value in SetupCompleteSuccess dialog
I'm attempting to allow my user's to a add a desktop shortcut for my exe using a checkbox that's displayed on my SetupCompleteSuccess dialog.
If the checkbox is clicked, the shortcut should be added. If left unchecked, the shortcut should be skipped.
I can't seem to determine how this is performed, or if it's even possible. Can I use a AskText function?
Also, how can I ensure that a checkbox starts unchecked? I've set the Value property of the checkbox to 0 at design time, but the checkbox always displays as checked.
If the checkbox is clicked, the shortcut should be added. If left unchecked, the shortcut should be skipped.
I can't seem to determine how this is performed, or if it's even possible. Can I use a AskText function?
Also, how can I ensure that a checkbox starts unchecked? I've set the Value property of the checkbox to 0 at design time, but the checkbox always displays as checked.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
^disregard.
> I'm getting a red exclamation point next to the new components whenever I create it.
I got it too :-) Had to directly edit the table featurecomponent to fix; curious, did you do the same?
I got it too :-) Had to directly edit the table featurecomponent to fix; curious, did you do the same?
ASKER
I actually added the component through the Setup Design so it was associated with the existing feature, which added the component successfully.
I'm still not getting the shortcut, but might be because of something else. I'll let you know how it goes.
Thanks!
I'm still not getting the shortcut, but might be because of something else. I'll let you know how it goes.
Thanks!
for me it also added the shortcut successfully - from the standpoint of installshield; however, when built, the component was not in the MSI. Open MSI with ORCA and verify if it's there.
The condition of the component, btw, should be just bare property's name.
The condition of the component, btw, should be just bare property's name.
ASKER
Still not getting the shortcut.
Can it be a timing thing, since the condition is not being set till the SetCompleteSuccess dialog? Like maybe all the possible shortcuts have already been created by the time that dialog is initiated?
Can it be a timing thing, since the condition is not being set till the SetCompleteSuccess dialog? Like maybe all the possible shortcuts have already been created by the time that dialog is initiated?
ASKER
ORCA?
The property of the my checkbox is 'CREATESHORTCUT'
The condition of my component is 'CREATESHORTCUT'.
The property of the my checkbox is 'CREATESHORTCUT'
The condition of my component is 'CREATESHORTCUT'.
ASKER
What should the Value be set to in the checkbox's control's properties during run time?
ASKER
It does seem like a timing issue. I added another checkbox to the InstallWelcome dialog and added the same CREATESHORTCUT property.
Worked perfectly.
Worked perfectly.
> What should the Value be set to in the checkbox's control's properties during run time?
in property manager, the property CREATESHORTCUT should be empty, then the checkbox shows up unchecked. If the userchecks it, the property gets some value, the condition becomesnon-empty and gets installed. What value - does not matter.
in property manager, the property CREATESHORTCUT should be empty, then the checkbox shows up unchecked. If the userchecks it, the property gets some value, the condition becomesnon-empty and gets installed. What value - does not matter.
ASKER
Got it working.
Not exactly how I'd like, but def good enough.
Not exactly how I'd like, but def good enough.
Just as a friendly suggestion: by awarding B after volunteer expert was actively helping you on every step of your problem, just because Installshield did not have functionality you'd expect, you are lowering your chances to get help in the future. Especially in the area where there's not much competition between experts.
ASKER
I'm not sure I selected any grade during the acceptance process.
Is there any option to modify the grade level? I'd have no problem changing it.
Is there any option to modify the grade level? I'd have no problem changing it.
ASKER
OK, it looks like I modified the grade. Can you verify?
I don't see the grade now, but it's not terribly important. This was more of educational nature about EE. Thanks anyway.
ASKER
^Good to know for the future.
Thanks again for your help!
Thanks again for your help!
ASKER
Going through your above process does not create the shortcut. I've got to assume because of the the exclamation.