/build/static/layout/Breadcrumb_cap_w.png

Create a MSI which only copy files

Hi guys,

I need to create a MSI which is only copying files to an installation folder as part as a second package for an apps.

I'm not really sure how to do that. Anyone can help?

They originally use a batch file which does that:

set TTWINPATH="C:\ProgramData\Turbosoft\TTWin4"

copy /Y ttwin.ini %TTWINPATH%
copy /Y ttwin.tcf %TTWINPATH%
copy /Y *.cmd %TTWINPATH%

copy /Y *.twc %TTWINPATH%
copy /Y *.key %TTWINPATH%
copy /Y *.clr %TTWINPATH%
copy /Y *.cmp %TTWINPATH%

And I need to do that but using a msi.

Regards,


0 Comments   [ + ] Show comments

Answers (9)

Posted by: dnmech 12 years ago
Senior Purple Belt
3

1. Take a blank MSI.

2. Crate the folder structure as required.

3. Drag and drop your files in the msi. Compress the files to create an internal .cab file

4. Install the msi and your work will be done.

Posted by: henrik80 12 years ago
Second Degree Blue Belt
2

If what you want to do is to use the MSI to run the batch file. You should add the batch file to the msi and then run it as a custom action.


Comments:
  • See this link for help on running batch file with Custom Actionhttp://www.itninja.com/question/how-do-i-create-a-custom-action-to-call-a-batch-file-1 - henrik80 12 years ago
  • We will use a batch files finally.. there is no point to create a msi to copy files which doesn't exist yet. but thanks! I keep that in my notepad! :) - jmpouliot 12 years ago
Posted by: kopuz 12 years ago
Orange Senior Belt
1

Using the method of creating a MSI to run a batch file through custom action is adding on a great deal of time to accomplish your goal.  I would just use the batch file and skip the MSI all together.


Comments:
  • Just read that someone else had responded with mostly the same opinion. However, I need to say doing a snapshot for this is even adding on more totally unnecessary work. - kopuz 12 years ago
Posted by: Trinity 12 years ago
Brown Belt
1

Advanced Installer as the Freeware will achieve what you are trying to accomplish.

http://www.advancedinstaller.com/

Posted by: jmpouliot 12 years ago
Second Degree Blue Belt
0

Thanks for the reply guys.

But here is the issue that I forgot to say. I only have the ini files, tcf, cmd and twc. all the others are not there yet and they asked me to do that to plan the future.

I use adminstudio. I am just wondering if it is possible to do that without including the files into the project / msi? just use a msi to copy the file in from the current folder (using %~dp0) or a specific location?

Posted by: piyushnasa 12 years ago
Red Belt
0

Yeah, that is what I mentioned as well, you can just add the files directly as well..

Posted by: Aaron Cool 12 years ago
Red Belt
0

Have you tried using AppDeploy Repackagerhttp://www.kace.com/products/freetools/appdeploy-repackager 

Posted by: piyushnasa 12 years ago
Red Belt
0

Do a setup capture using any packaging tool like AdminStudio or WISE package studio. Run this batch file which you have or manually do these tasks. and take a snapshot. You will get a project file. Complie it and you will get an MSI.

You can also add these manually in Installshield or WISE Package Studio project file without taking a snapshot.


Comments:
  • The snapshot seems unnecessarily complicated to just copy files. IN AdminStudio, it's pretty easy to just add files, which create their own components if they're executable. There'd be a lot of cleanup to do if you snapshot it. - Arminius 12 years ago
  • I have been using snapshot and there is no nonsense stuff which is captured. IF you are using the right tool, then the capture is quite clean. - piyushnasa 12 years ago
Posted by: andemats 12 years ago
2nd Degree Black Belt
0

Why even bother with snapshot?

Create your own MSI installer with "Windows Installer Editor" (Wise). Add files, registrys, shortcuts, CA's and so on and compile..

The above request only seems to be one ini file and a number of .twc files, so should be fairly easy if you've worked with a packaging tool before.

 
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