Solved

Create shortcut dynamically using checkbox value in SetupCompleteSuccess dialog

Posted on 2008-10-29
17
2,016 Views
Last Modified: 2013-11-14
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.
0
Comment
Question by:howardsd
  • 11
  • 6
17 Comments
 
LVL 40

Accepted Solution

by:
Vadim Rapp earned 250 total points
ID: 22834479
(assuming this is MSI project, not Installscript)


Create new component; in the component, add the shortcut; specify condition based on the property linked to the checkbox.

To make the checkbox non-enabled, open Property Manager and make sure that the property linked to the checkbox has empty value - rather than 0.
0
 

Author Comment

by:howardsd
ID: 22834751
I'm getting a red exclamation point next to the new components whenever I create it.

Going through your above process does not create the shortcut.  I've got to assume because of the the exclamation.

0
 

Author Comment

by:howardsd
ID: 22834815
^disregard.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 22834910
> 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?
0
 

Author Comment

by:howardsd
ID: 22834977
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!
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 22835003
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.
0
 

Author Comment

by:howardsd
ID: 22835010
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?
0
 

Author Comment

by:howardsd
ID: 22835030
ORCA?

The property of the my checkbox is 'CREATESHORTCUT'

The condition of my component is 'CREATESHORTCUT'.
0
 

Author Comment

by:howardsd
ID: 22835236
What should the Value be set to in the checkbox's control's properties during run time?
0
 

Author Comment

by:howardsd
ID: 22835498
It does seem like a timing issue.  I added another checkbox to the InstallWelcome dialog and added the same CREATESHORTCUT property.

Worked perfectly.
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 22835724
> 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.
0
 

Author Comment

by:howardsd
ID: 22836284
Got it working.

Not exactly how I'd like, but def good enough.
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 22840162
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.
0
 

Author Comment

by:howardsd
ID: 22842343
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.
0
 

Author Comment

by:howardsd
ID: 22842351
OK, it looks like I modified the grade.  Can you verify?
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 22842397
I don't see the grade now, but it's not terribly important. This was more of educational nature about EE. Thanks anyway.
0
 

Author Comment

by:howardsd
ID: 22842433
^Good to know for the future.

Thanks again for your help!
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have been scripting applications way too long and can never remember how to create an ISS file.  So I decided to write this article to act as my own knowledge base for future reference, and hope you will also benefit. An ISS file is a response …
Monitor input from a computer is usually nothing special.  In this instance it prevented anyone from using the computer.  This was a preconfiguration that didn't work.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question