Re: "SystemParametersInfo()" problem



Where are you invoking the custom action from? I'm thinking it may be from
the MSI Service process, and some of the security changes being made could
mean that you're asking about another desktop's screen saver, not the one
belonging to the interactive user.

(Oddly enough (to me at least) the SPI_GETSCREENSAVERRUNNING call says that
you can only ask about winsta0. )
--
Phil Wilson [MVP Windows Installer]
----
"Larry" <Larry@xxxxxxxxxxxxx> wrote in message
news:8A918CCD-4F2E-46A1-935D-2B799D6B800E@xxxxxxxxxxxxxxxx
> Hi there,
>
> We have an MSI application that invokes "SystemParametersInfo()" from the
> WinAPI using a custom MSI action though MSI probably has nothing to do
> with
> the problem (likely a pure WinAPI problem). Recently the function failed
> while running under a German version of Win2003 Server Standard edition
> (build #3790) with SP 1 installed. The function unexpectedly returns FALSE
> for failure but a call to "GetLastError()" returns zero (0) indicating no
> error. We've been calling this function successfully for 3 years on a
> variety
> of different Windows platforms including other German versions of Win2003.
> The exact call is as follows:
>
> BOOL PreviouslyEnabled;
> if (!SystemParametersInfo(SPI_GETSCREENSAVEACTIVE, 0,
> &PreviouslyEnabled, 0))
> {
> // "GetLastError()" now returns zero!
> }
>
> We instructed our customer to run "msinfo32.exe" (shipped with Windows)
> and
> save the data to a file so we can get more info which is now en route to
> us.
> The problem is probably obscure so you may not have encountered it before.
> Can you shed any light on the situation and is there anything else we
> should
> request from our customer to help diagnose the problem. Thank you.


.



Relevant Pages

  • MSDE2000 setup problems
    ... Loading extended custom action library sqlcax.dll ... MSI: Executing op: ...
    (microsoft.public.sqlserver.setup)
  • MSDE 2000 setup problems
    ... Loading extended custom action library sqlcax.dll ... MSI: Executing op: ...
    (microsoft.public.sqlserver.setup)
  • Re: Creating MSI for installing .NET security policies
    ... The poblem with that is that doing .NET code inside an MSI via a custom ... ..NET custom actions, only script and native DLLs. ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ...
    (microsoft.public.dotnet.security)
  • Re: .msi packages
    ... I am trying to create a custom .msi package for Kerberos for Windows ... I was able to properly edit the .msi through orca, and it installs ...
    (comp.protocols.kerberos)
  • Re: .NET Deployment: Minimum Customer Effort
    ... to simply deploy a custom your custom .NET security policy as ... MVP Security ... > configuration, installation of .msi file using MMC, etc. ... > agree to the permissions demanded by our code? ...
    (microsoft.public.dotnet.security)