Re: Wix MSI and Delphi



Jason Swager wrote:

MsiSetProperty(Handle, 'PIDACCEPTED', PChar(IfThen(PIDKey[0] = '1', '1', '0')));

I would avoid the IfThen function. The problem here is that Delphi may err on the type of '1' and '0'.
I think my variant with a local buffer is easier.
The exports should use the _CheckPID@4 name.

So best merge our two examples and you should be up and running.

The strange export name is an indication that Microsoft either gets sloppier in API definitinos or tries to force the programmers to use Visual Studio by creating such obstructions.
.



Relevant Pages

  • Re: The 10% ratio.
    ... This is the reason we try to avoid them. ... We'd happily dump them if Delphi came up with something close to ... Delphi source code, and I don't need to see the third-party code, but I can't avoid it. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: About VS C++
    ... I really like programming in Delphi. ... to me what .NET language that is written in? ... Delphi currently only support version 1.1 of the platform, ... I will never blend BL and UI if I can avoid it. ...
    (borland.public.delphi.non-technical)
  • Re: Alternative to Imagelib
    ... >I was thinking eliminate any third party components to avoid the ... >necessity to buy or upgrade it every new Delphi release. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Capacitors 101
    ... with the initial value just err on the side of caution and avoid a call ... I've had better luck in the past with closer ...
    (sci.electronics.repair)
  • Re: Capacitors 101
    ... I'll consider replacing the cap ... with the initial value just err on the side of caution and avoid a call ...
    (sci.electronics.repair)