Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to create two short-cuts in the Program Start-up menu to start the same program in different modes?

Posted on 2016-08-22
6
Medium Priority
?
83 Views
Last Modified: 2016-08-29
Hi experts
What I have is one program. I would like to give user an option either to (1) start the program in one mode, or to (2) start the *same* program but in a different mode.

I shall have two short-cuts in the Windows Programs menu. But how do I do it with .NET, VS2008, Installer project?

Thanks
Dominic
0
Comment
Question by:dominicwong
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 40

Accepted Solution

by:
Vadim Rapp earned 2000 total points
ID: 41766198
create first shortcut (you will probably have Project Output rather than Notepad)
create shortcut
create second shortcut
create another shortcut
specify Arguments for the first shortcut
specify parameter for the first shortcut
specify different Arguments for the second shortcut
specify parameter for the second shortcut
move 1st shortcut to Programs Menu
move first shortcut to start menu
move 2nd shortcut to Programs Menu
move second shortcut to start menu
1
 

Author Comment

by:dominicwong
ID: 41766301
It works perfectly. :)

Thanks Vadim for your prompt response and taking the screenshots for the clear illustration. I appreciate it!!

BTW, since some users are interested only the first mode while some are interested in both, is there any easy way to disable the creation of the 2nd shortcut from the Installer project?
0
 

Author Comment

by:dominicwong
ID: 41771237
Thanks Vadim
0
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 41773014
>  since some users are interested only the first mode while some are interested in both, is there any easy way to disable the creation of the 2nd shortcut from the Installer project?

This is possible with Windows Installer, but not with Setup and Deployment project in Visual Studio, which implements only a small subset of the most trivial features of Installer. The installation would include two so called "features", which would be selectable by the user (similar to how you select the features of Microsoft Office to install, if you choose custom installation); but for that you need either more capable MSI editor, or free ORCA or WiX plus intimate knowledge of MSI structure. WiX can be installed as an add-on to the same Visual Studio, but expect quite a learning curve.

Once the features are implemented (with a separate feature having the 2nd shortcut disabled by default), besides the selection by the user, you can create so called transform that enables the second feature, and deploy the installation with transform to one set of users, and without it to another.

There are also other interesting possibilities, such as installing the second feature (thus 2nd shortcut) only for the users who satisfy certain criteria, for example only those who already have another product installed. This is often used by product authors whose product includes, say , a Word macro - they install the macro only to those who have Word.
0
 

Author Comment

by:dominicwong
ID: 41775763
Thanks Vadim for your help. I appreciate it.
0
 

Author Closing Comment

by:dominicwong
ID: 41775764
I thought I'd closed it. I am closing it again.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Screencast - Getting to Know the Pipeline

610 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