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

Windows Installer V3-V2 bug?


6 replies to this topic

luke_s

luke_s
  • Full Members
  • 532 posts

Posted 03 April 2006 - 00:19

I have a problem where from a type 1 custom action (DLL function), I run a
process (CreateProcess) which in turn launches another process and calls a
function from a DLL. The DLL function calls the windows API functions -
"AdjustTokenPrivilges" and "GetFileSecurity".

When we use Windows Installer V3 everything works correctly, but when the
machine has Windows Installer V2.6, the "AdjustTokenPrivileges" function
fails with error code 1300, and then continuing on, the "GetFileSecurity"
function fails with error 1314.

I have run quite a bit of debugging on this code and I have found that the
privileges assigned to the process are exactly the same for both versions.
(I originally thought that this was the problem).

The only difference I have found (using "GetTokenInformation") is that for
Windows Installer V3, all of the privileges are NOT enabled are lableled
specifically as "disabled".

From the information i have found, this looks like a change introduced with
the Windows Installer V3 package.

Has anyone seen this before or has anyone got any ideas on what could be
causing this?

luke_s

luke_s
  • Full Members
  • 532 posts

Posted 20 April 2006 - 05:21

Does anyone know where i can raise this with the MSI developers??

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 20 April 2006 - 11:31

You could open a support incident with Microsoft or post this in a monitored newsgroup if you have a MSDN subscription (which entitles you to newsgroup support from Microsoft)

luke_s

luke_s
  • Full Members
  • 532 posts

Posted 26 April 2006 - 02:32

I have already posted this issue twice to the MSDN newsgroups and recieved no reply :-( But thanks for the reply anyway!

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 26 April 2006 - 07:21

Do you have a MSDN subscription? If yes: did you register your e-mail address (that you are using for posting in the newsgroup) with MSDN to get guaranteed replies?

luke_s

luke_s
  • Full Members
  • 532 posts

Posted 26 April 2006 - 07:34

Ahh ok no I havent done that, and yes I have an MSDN account. Thanks Stefan!

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 26 April 2006 - 07:59

See here for details - a little known but useful benefit for MSDN subscribers:
http://msdn.microsof...groups/managed/