/build/static/layout/Breadcrumb_cap_w.png

Custom Action Run EXE

I have build an MSI with Visual Studio Installer and done some minor editing to it with ORCA. But for the life of me I can't manage to get it to let me lauch a program. I think its more that Microsoft's website its confusing the daylight out of me or possibly that I've been looking at this screen way too long today.

So my question is, could someone walkme through the process of launching an executable that is included in the package?

jay

0 Comments   [ + ] Show comments

Answers (4)

Posted by: CleverITS 19 years ago
Senior Yellow Belt
1
ok.
assuming You want this exe to run asynchronous:
I will explain it in Table view... (orca...)

1) Create a Custom Action (Execute Deferred, Async, NoWait (type 3282)
CustomAction Table
Action: CA_myexe
Type: 3282
Source <key_in_filetable> e.g. cmd.exe
Target:


2) create a Record in InstallExecuteSequence, if neccesary, create a Condition if You want to run the exe only when Installing but not when uninstalling.
the Sequencenumber: take the Sequencenumber from "InstallFinalize" e.g. 3585 and decrement 5 --> 3580

InstallExecuteSequence Table
Action: CA_myexe
Condition: <You_must_set_if_You_want>
Sequence: <SeqNR (Installfinalize -5)>


that's it...

Wolfgang Zerzawy
CleverITS
www.cleverits.com
Posted by: CleverITS 19 years ago
Senior Yellow Belt
0
Yes,
but please be a little bit more specivic ;-)
what to run (.exe)
which commandlineparameters to pass (/x)
where to run (UI, InstallExecute ...)
when to run (before Files action before registry....)

cu
Wolfgang Zerzawy
CleverITS
www.cleverits.com
Posted by: CrossWired 19 years ago
Senior Yellow Belt
0
The file to run will be installed with part of the package, I need it to run this EXE with no arguments, just execute it. It will be installed in the TARGET_DIR, and needs to run after everything has installed.
Posted by: CrossWired 19 years ago
Senior Yellow Belt
0
Okay, first off thank you so much for getting me this far, but now I have one more related question, my program runs on install with no command line parameters works great, can I also set it up to run on UnInstall with a parameter?
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ