Link to home
Start Free TrialLog in
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
ASKER CERTIFIED SOLUTION
Avatar of Vadim Rapp
Vadim Rapp
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ramana_forums
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?
ramana_forums, sorry, but the right way is to open your own question.
Avatar of sujan17

ASKER

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
change your application so it does not create the shortcut, and instead create the shortcut my MSI.
Avatar of sujan17

ASKER

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.