Installing MSI from the Installation Source

Got a problem you cannot solve? Try here.
Gareth Owen
Posts: 149
Joined: Fri Oct 21, 2005 8:42 am
Location: UK

Installing MSI from the Installation Source

Postby Gareth Owen » Thu Nov 24, 2005 10:21 am

We have on particular application that requires the MATLAB Component Runtime, this comes in a 100MB msi.

Our application is only 7MB so I was wondering if it is possible to link to this MSI located on the installation CD rather than in the Support Files section which gets incorporated with the application install.

In this case, we have to send out a 100MB installation rather than a 7mb one.

Being picky I know, but thats what we want. :wink:

sinan
Site Admin
Posts: 1028
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Thu Nov 24, 2005 11:09 am

Absolutely. As long as you know what path the MSI lies on the CD, use the (Un)Install MSI Setup plug-in to execute that MSI, providing the full path of the file. You do not need to add that to your project as a support file if you are guaranteed that your setup will always run from the CD and the file will always be there on the CD.

Gareth Owen
Posts: 149
Joined: Fri Oct 21, 2005 8:42 am
Location: UK

Postby Gareth Owen » Fri Nov 25, 2005 3:51 am

Do we just use a relative path?
Is there a variable that contains the source directory of the installer?

Gareth Owen
Posts: 149
Joined: Fri Oct 21, 2005 8:42 am
Location: UK

Postby Gareth Owen » Fri Nov 25, 2005 9:00 am

I have found a similar issue with the Run Program function.

I have managed to get the installation to work using the uncompressed version, but it does not seem to work when using the Single ExE version which is the one we want on the CD.

I am now trying to do a basic CD autorun app, which works ok in the debug mode, which does not compress the install, but as soon as I put it in a single exe,

No running programs. :cry:

Any ideas?

sinan
Site Admin
Posts: 1028
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Fri Nov 25, 2005 10:29 am

I think you have a path problem, but thats very easy to fix. The installer SFX's path can be accessed using the global variable $SFXPATH$. This variable will be empty with uncompressed builds, since no SFX is involved.

Tip: Look in the online help index for Pre-Defined Variables to see a list of all pre-defined setup variables - they are very helpful.

Gareth Owen
Posts: 149
Joined: Fri Oct 21, 2005 8:42 am
Location: UK

Postby Gareth Owen » Mon Nov 28, 2005 6:02 am

Thanks, thats it, I did not manage to find this in the help, guess I was looking for the wrong thing :oops:


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 117 guests