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

Handle to current MSI


3 replies to this topic

TOM_MUE

TOM_MUE
  • Full Members
  • 3 posts

Posted 28 May 2007 - 12:47

Hi @all,

i use the Visual Studio 2005 setup template to create a msi(setup)-project. additional to my setup-project i create a DLL for my custom setup actions. in this dll i added a class in managed code which has inherited from Installer. Also i have override the method Install. This run fine and without errors.

Now my question: I want to set and get the properties of my MSI-file programmatically. I have found the API-methods

- MsiSetProperty

- MsiGetProperty

My problem is the correct handle for the MSI. From where do i get this handle?

Many thanks for all answers!

best regards TOM_MUE

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 28 May 2007 - 13:30

Maybe this will help: http://www.safedisc....-for-ipwi.shtml
Regards
-Stein Åsmul

TOM_MUE

TOM_MUE
  • Full Members
  • 3 posts

Posted 28 May 2007 - 13:51

Hi Glytzhkof,

thanks for your answere! but this is a sample for unmanaged C++ code. my goal is calling the method MsiGetProperty from managed C# code.

what I do not know, from where i get the handle of the msi.

bye TOM

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 20 June 2007 - 09:20

http://installsite.o...ifaq/a/1044.htm
Regards
-Stein Åsmul