cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Spinky106
Level 5

Launch a external .exe no include on my Msi Package

Hello

Sorry for my english, I m a rookie.

I want create a CD with the next tree

CD
setup.exe ( or msi create with install shield )
Source (Directory)
_____Adobe
________Français
____________Adobefrench.exe
________English
____________Adobeenglish.exe

I want my setup.exe launch the Adobefrench.exe when i Click on a Button.
I know do a button with the do action. But i dont know how i launch the exe file.

Can you help me please ?

Spinky
Labels (1)
0 Kudos
(13) Replies
james_decosta
Level 9

you need to execute a script or batch file

with the following command
$USER_INSTALL_DIR$$/$AdobeFrench.exe
(just check once ) this is how you can call an .exe or .msi
In the pre install or post reply you can call execute script or batch file
0 Kudos
sandersonpj
Level 5

Create a custom action with the type "launch an executable" and location "stored in the directory table". Set the path to the exe as "[SOURCEDIR]Source\Adobe\Francais\Adobefrench.exe" and the working folder as anything (e.g. TempFolder).
0 Kudos
Spinky106
Level 5

ok

thanks james but i don't understand what you want i make.

And sanderson, i understand your propose but i have always the message when i press the button for launch the exe.
The message say the Exe not found

Are you sure of the Syntax.
I think when you do TEMPFOLDER in the Working folder. The [SOURCEDIR] give the TEMPFOLDER. No??

Thanks for the first answer and i wait the second 😉
0 Kudos
sandersonpj
Level 5

You could try [SETUPEXEDIR] instead of [SOURCEDIR] perhaps. If you run with full logging on you'll see what properties are set up (like these two) and where they point to. Because I call exe's in the Execute sequence I have to call ResolveSource first to set up SOURCEDIR. In your case, in the User Interface sequence, you shouldn't need to, I don't believe.
0 Kudos
Spinky106
Level 5

Same problem with SETUPEXEDIR.

Can You tell me how to launch with full login for show the pointing of SOURCEDIR and SETUPEXEDIR.

I think perhaps the probleme come to the Working Directory ? No ??
0 Kudos
Spinky106
Level 5

That ok. I have find the solution

It is just the syntax

The good syntax is
[SETUPEXEDIR]\SubDir1\Subdir2\AdbeRdr810_en_US.exe

All Step for other guy search this solution

1.Create Custom action
2. Launch a Exe , Stored in directory table
3. Working Folder is anithing but TempFolder is good
4. Filename [SETUPEXEDIR]\SubDir1\Subdir2\AdbeRdr810_en_US.exe

Thank for you help

Spinky
0 Kudos
sandersonpj
Level 5

Start a command window and type:

setup.exe /v"/l*v c:\temp\mylogfile.log"

The location and name of the log file can be anything you like.
0 Kudos
SyraDidelez
Level 3

does not work for me ...
I am putting my custom action right after
InstallInitialize in the Execute installation sequence,

in the logging I see SETUPEXEDIR dir as assigned
but keep geeting errors that SETUPEXEDIR is not in the directory table.

😞
0 Kudos
Spinky106
Level 5

Verify your syntax first

And me i place the custom action after path welcome in the user interface.
Test it perhaps you have no placed in the good place

Spinky
0 Kudos
SyraDidelez
Level 3

nope, still nothing, also not in the user interface sequence

my syntax:

Filename & CommandLine is [SETUPEXEDIR]\extrakit\setup.exe
Working Directory is TempFolder
0 Kudos
Spinky106
Level 5

sorry

I have the same example and it s ok.

But i know it s not ok with vista but on XP it s ok

Good luck
0 Kudos
tcberry
Level 2

For Vista, you have to add SETUPEXEDIR to the list of properties in the 'SecureCustomProperties' property.
0 Kudos
Marcus_Chuang
Level 4

Hi Spinky106:
I have similar problem with you and luckily I found your post. Your solution is really helpful to me. But I have additional problem about this topic. First, let me tell you my problem. Please reference this article.
http://community.installshield.com/showthread.php?t=183774

I have some kind of idea handling this problem. The following is my steps:
1. Created a setup.exe (Basic MSI project type).
2. Follow your solutions and insert my new custom action after InstallWelcome action.
http://community.installshield.com/showthread.php?t=174108&page=2

So far, everything is ok. But, I have some special requirements.

1. I hope setup.exe does not show any windows (including Preparing to Install and Welcome windows) and directly enter setup_x86.exe or setup_x64.exe. That is, the task of main installation thread (setup.exe) is: Judge the end user's platform and invoke the suitable child thread (one of setup_x86.exe and setup_x64.exe).

2. When finishing installing setup_x86.exe or setup_x64.exe, the child thread exits and the main thread continues executing. But there is no need for me to let main thread continues executing. Because the whole installation is finished. But my current situation is the setup.exe would run other its original custom actions.

So, how could I solve these problems? Just give me a clue and that will be helpful to me. Thanks
0 Kudos