cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
pman626
Level 2

What is the working directory variable for the root of install disc ??

I am trying to setup a basic msi project.

I want the installer to run a file from the disc during installation.

for example, my disc layout looks like this:

setup.exe
next.exe

both files are in the root of the installation disc.

I want to make the installer run next.exe towards the end of the install.
so i set a custom action to run an exe.
What do I type for the Working Directory?

When i type SourceDir as the working directory, setup does not run next.exe, as if it doesn't recognize the variable.
Labels (1)
0 Kudos
(1) Reply
Not applicable

Hello, pman626

You can add CA which run installscript code, here is the installscript code:

MsiGetProperty(hMSI, "SETUPEXEDIR", svPropertyValue, nvBufferSize);
LaunchAppAndWait( svPropertyValue ^ "next.exe", "", WAIT);

Hope this helps!

Kevin
0 Kudos