Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

a problem about automatically installing


5 replies to this topic

BlueTulip

BlueTulip
  • Members
  • 11 posts

Posted 04 August 2006 - 06:52

We have a large of MSI files, those are very simple MSI files developed
ourself, and they used for Updating our server.
So I found some ways here to install MSI files and they
work very well, but now I want to specify a path, so all
msi will be installed in this folder. but they always
installed the default folder defined in MSI database,
so may i have a way to install them easy and to
a specify folder.
BTW, maybe i need where i can specify some parameter when installing
and end user doese't need know,.
thanks

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 04 August 2006 - 18:14

First you need to find out which property the package uses for the installation folder, often INSTALLDIR or TARGETDIR. Then you can set this on the msiexcec command line when you launch the setup:
msiexec.exe /I your.msi INISTALLDIR="C:\your dir"

BlueTulip

BlueTulip
  • Members
  • 11 posts

Posted 07 August 2006 - 02:30

Thanks, a very good suggestion:)
In fact i've open a MSI database, and i can open Directory table,
I can find some useful information there, and there are TargetDir,
InstallDir column, but the description in SDK about these three
column, I am not sure i can catch the meaning of them,
perhaps my experience is no so rich about this.

I wanner know how this table be orgnized, and how to use this
table(Directory),
Even more whether I I can got more information from the MSI database.

and your suggestion is work well, and i found anther way,
use MsiInstallProduct directly, also work.



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 07 August 2006 - 09:00

There's a series of articles about the Directory table in Rob Mensching's Blog:
http://blogs.msdn.co.../21/431294.aspx
http://blogs.msdn.co.../28/433241.aspx
http://blogs.msdn.co.../04/435572.aspx
http://blogs.msdn.co.../12/437912.aspx
http://blogs.msdn.co.../04/489346.aspx

BlueTulip

BlueTulip
  • Members
  • 11 posts

Posted 08 August 2006 - 02:00

thanks i will read these articles carefully,

BTW, to develop MSI project, whether C++ is the only or best choice?

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 08 August 2006 - 15:57

QUOTE
BTW, to develop MSI project, whether C++ is the only or best choice?

I'm sorry, I don't understand this question.