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?
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)
Please log in to answer
Posted by:
bkelly
18 years ago
Posted by:
meastaugh1
18 years ago
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
Posted by:
wd40
18 years ago
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!
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
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.
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?
can't find something to specify where it must copy my fileI 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
Posted by:
wd40
18 years ago
Posted by:
meastaugh1
18 years ago
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
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!
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
Ok no prob.
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
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
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!
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
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
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
Posted by:
meastaugh1
18 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.