Avatar of sujan17
sujan17 asked on

Creating a shortcut and passing arguments to another file.

Hi Guys,

I want to create a MSI project with an executable. MSI should do the following

1. Create a shortcut on the desktop and the target should  be able to pass a argument to a different executable.

Is this possible?

The target should look like below.

C:\work\DDS\bin\Debug\DDS.exe XTR

I need to pass XTR and try to run that executable.

Please help me.


Thanks
MS
InstallationC#

Avatar of undefined
Last Comment
sujan17

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Vadim Rapp

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ramana_forums

I am planning to use shortcut.exe file and then create a batch file and execute it using setup wizard.

Is this possible?

I want to know can we run .bat files from setup wizard?
Vadim Rapp

ramana_forums, sorry, but the right way is to open your own question.
ASKER
sujan17

I have created a console application that creates a shorcut to a desktop. I have created MSI and while I am trying to run the MSI it creates a .exe file in c drive. and If I click the .exe then it creates the shortcut. but I doesn't want user to click the .exe and the create a shortcut.

Could you please help me.

I
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Vadim Rapp

change your application so it does not create the shortcut, and instead create the shortcut my MSI.
ASKER
sujan17

Objective of my project is  to create a shortcut in the programs menu and when the user clicks it should redirect to DDS.exe with a variable. For this I have a developed an application ()both console and windows forms which creates a shortcut with that parameter. Now I want to create a MSI for this project when this MSI runs I want to see shortcut created in programs menu.

Could you please help me.