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.
Windows Installer V3-V2 bug?
Started by
luke_s
, Apr 03 2006 00:19
6 replies to this topic
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?
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?
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)
Stefan Krüger
InstallSite.org twitter facebook
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!
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?
Stefan Krüger
InstallSite.org twitter facebook
Posted 26 April 2006 - 07:34
Ahh ok no I havent done that, and yes I have an MSDN account. Thanks Stefan!
Posted 26 April 2006 - 07:59
See here for details - a little known but useful benefit for MSDN subscribers:
http://msdn.microsof...groups/managed/
http://msdn.microsof...groups/managed/
Stefan Krüger
InstallSite.org twitter facebook