/build/static/layout/Breadcrumb_cap_w.png

Adding a file to MSI with MST? Possible?

Is it possible to add a file to a MST for an automated installation?

For exemple, I'd like to add the configuration file for Quicktime or the one for Flash Player, and integrate it with my setup.

It would be nice if it's possible to integrate it, and the installer just copy it to somewhere i specify in the mst.

Anyone ever tried this?

0 Comments   [ + ] Show comments

Answers (17)

Posted by: rakeshpunjabi 18 years ago
Senior Yellow Belt
0
yes it is possible to do so.
Posted by: wd40 18 years ago
Orange Senior Belt
0
How?
Do you have a tutorial somewhere on the web?

Thanks!
Posted by: bkelly 18 years ago
Red Belt
0
What MSI authoring tool are you using? With most it is as easy as saying create new MST, providing the path to your MSI and making any changes you wish - when you save the changes are in the MST (new files, registry entires, shortcuts- whatever you want).
Posted by: meastaugh1 18 years ago
Senior Purple Belt
0
If you were using Orca, File and Media are the tables. If you're adding an external file (as opposed to internal, or in a compressed cab) you need to add 8192 to the file attribute. When I'm adding files with a transform, I usually add another media set, where I can specify the last file sequence. Have a look at the MSDN pages for File and Media tables.
Posted by: wd40 18 years ago
Orange Senior Belt
0
Yes I am using Orca. Currently we don't have any other tool. I'll check for those table. Do you have any exemple of that?
In my context, I would like to installe silently a program, then add the configuration file do the setup and place in in the program file folder.

Thanks!
Posted by: wd40 18 years ago
Orange Senior Belt
0
Ok here is my update. I did a CAB file with the file i wanted inside it.

I added a line in the media table wehre i specify the filename of the cab file, and the sequential number i got from the "file table"

For now, i think I'm ok. Tried my setup, still no error.

My problem is still there tough. My file from the CAB isnt copied in the setup process. I read in MSDN (Including a Cabinet File in an Installation) and can't find something to specify where it must copy my file.

I looked also under the media in file table MSDN pages and couldn't find something for that too.

Thanks for all!
Posted by: meastaugh1 18 years ago
Senior Purple Belt
0
Is it just a single file you're adding? If so, why not try just adding the file uncompressed, to begin with at least, to get it working.

can't find something to specify where it must copy my file I believe the target directory is determined by the component's directory.

If you are using a compressed source, have you set the File's attribute. I think it's 8192 for uncompressed and 16384 for compressed.

Any ICE validation errors or warnings in relation to your changes?
Posted by: wd40 18 years ago
Orange Senior Belt
0
Yeah that might be easier for now since I need some more proacticing in this. So my filename is "QuickTime.qtp", that file must be located in %ALLUSERSPROFILE%\Application Data\Apple Computer\QuickTime

I think I'll start from scratch again and just try to make it work for now.
Posted by: wd40 18 years ago
Orange Senior Belt
0
Do i have to specify my file in the media table?

Did you ever achieved it?
Posted by: meastaugh1 18 years ago
Senior Purple Belt
0
my filename is "QuickTime.qtp", that file must be located in %ALLUSERSPROFILE%\Application Data\Apple Computer\QuickTime

I believe this directory is called QUICKTIMECOMMONAPPDATAFOLDER in the MSI.

Do i have to specify my file in the media table?
I haven't done it for Quicktime, but you don't specify the file in the media table.

For example, the last sequence number used by media 1 is 479, so the next media entry is 480.
eg DiskID=2, LastSequence=480.

Then you'll need to create a new component in the component and featurecomponents table, and a new file entry with the attribute 8192 and sequence 480.
Posted by: wd40 18 years ago
Orange Senior Belt
0
First of all. THANK YOU FOR HELPING ME!

I'm pretty sure I am close to get it.

Here is what I added in my MST:

COMPONENT TABLE

QuickTimePrefs {D64B4E0F-0878-4FEB-85C2-37B60FCBEB0C} INSTALLDIR 0

FEATURECOMPONENTS TABLE

QuickTimeInternet QuickTimePrefs

FILE TABLE

QuickTime.qtp QuickTimePrefs QUICKT~1.QTP|QuickTime.qtp 9716 1 1033 8192 480


Now in the component table from what I understand that "INSTALLDIR" is suposed to be the location where it takes the file I want to add. That file is located in the same directory, with the MSI's.

Another problem, how I can specify to the setup to copy my file where I want to?

Thanks for all!
Posted by: meastaugh1 18 years ago
Senior Purple Belt
0
Ok no prob.

Now in the component table from what I understand that "INSTALLDIR" is suposed to be the location where it takes the file I want to add. That file is located in the same directory, with the MSI's.
I'm pretty sure the component directory is where the files are installed to. I believe that source files are by default taken from the root directory of the MSI. As I understand it, INSTALLDIR will default to C:\Program Files\Quicktime.

Try changing INSTALLDIR to QUICKTIMECOMMONAPPDATAFOLDER in the component table.
and change QuickTimeInternet to QuickTimeEssentials in the featurecomponents table
Posted by: wd40 18 years ago
Orange Senior Belt
0
Hello, I've been trying to get that working for now about a week.

Thanks for all your help. The best I've done so far is to copy my file to the C:. I don't know why it copy there, I just can't see where it takes his value for that.

An old coworker give me the name of an apps that might help me a lot. Windows Installer Wrapper Wizard.

I think I'm gonna script the installation process and then add some extra stuff like reg file and file i want to copy.

Thanks again for your help!
Posted by: meastaugh1 18 years ago
Senior Purple Belt
0
Ok fair enough, but for info I've just had to add the quicktime.qtp file to the package myself. I did it successfully as follows:

New featurecomponent: QuickTimeEssentials QuickTime.qtp
New component: QuickTime.qtp QUICKTIMECOMMONAPPDATAFOLDER 0 QuickTime.qtp
New file: QuickTime.qtp QuickTime.qtp QUICKT~1.QTP|QuickTime.qtp 606 8192 480
New media: 2 480

Then had to create a folder structure from the location of the source MSI and stick the QTP file in here: CommonAppData\Apple Computer\Quicktime
Posted by: wd40 18 years ago
Orange Senior Belt
0
Wow thank you!

I am sorry but english isnt my main language. So IF I understand you you did create subfolder at the root of the MSI like this?

Root
(MSI file)
|-CommonAppData
|--Apple Computer
|---Quicktime
(QuickTime.qtp)

Thanks!
Posted by: meastaugh1 18 years ago
Senior Purple Belt
0
That's right! At first, I placed the qtp file in the root, but the application event log error indicates where the installer service is looking for the file.
Posted by: wd40 18 years ago
Orange Senior Belt
0
Yup, that's the error i got too yesterday.

Thanks!
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