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
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.
Handle to current MSI
Started by
TOM_MUE
, May 28 2007 12:47
3 replies to this topic
Posted 28 May 2007 - 13:30
Maybe this will help: http://www.safedisc....-for-ipwi.shtml
Regards
-Stein Åsmul
-Stein Åsmul
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
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