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

Größe einer MSI-Installation feststellen


2 replies to this topic

Dattel

Dattel
  • Members
  • 10 posts

Posted 14 January 2004 - 16:08

Hallo zusammen,

ich hoffe, ich bin hier nicht ganz falsch mit meiner Frage. Ich möchte programmiertechnisch feststellen (c++) wie viel Platz eine MSI-Installation benötigt. Dabei bin ich bei "MsiGetFeatureCost" hängengeblieben. Soweit funktioniert das alles wunderbar.

Es gibt nur ein Problem. Sobald ich das MSI-File installiere und danach die Größe berechnen will, erkennt MSI-Installer, dass das Feature schon installiert ist und gibt mir Größe 0 zurück. was kann ich dagegen tun??????



PeKaWe

PeKaWe
  • Full Members
  • 98 posts

Posted 06 May 2004 - 17:19

Hi,

was hast Du MsiGetFeatureCost als iState übergeben?

Kannst Du mir mal den kompletten Aufruf mailen?

Gruß,
Peter
Ciao for Now[br]PeKaWe

Dattel

Dattel
  • Members
  • 10 posts

Posted 06 May 2004 - 18:04

hmm ich hab eigentlich alle mal ausprobiert... aber ich denke mal primär interessiert INSTALLSTATE_LOCAL.

iState
[in] Specifies the installation state. This parameter can be one of the following values. Value Meaning

INSTALLSTATE_UNKNOWN The product or feature is unrecognized.
INSTALLSTATE_ABSENT The product or feature is uninstalled.
INSTALLSTATE_LOCAL The product or feature is installed on the local drive.
INSTALLSTATE_SOURCE The product or feature is installed to run from source, CD, or network.
INSTALLSTATE_DEFAULT The product or feature will be installed to use the default location: local or source.

Quelle: http://msdn.microsof...featurecost.asp

den Aufruf sollte dann net wirklich schwer sein.... nur das resultat ist halt nicht das, was ich haben will