[wix-users] Custom Action

Richard D. Brown II rdbrownii at comcast.net
Tue Dec 20 07:05:51 PST 2016


The licensing software I'm using needs the main exe assembly so it can
perform some licensing validations.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of
Brian Enderle
Sent: Tuesday, December 20, 2016 9:05 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Custom Action

What exactly is it you need from the EXE for verification?  There may be a
way to do it without accessing the CAB.

Brian

If you can't explain it simply, you don't understand it well enough.  -
Albert Einstein

On Tue, Dec 20, 2016 at 7:12 AM, Richard D. Brown II <rdbrownii at comcast.net>
wrote:

> Does anyone know how to access the cab embedded in an msi?
>
> From: Joel Budreau [mailto:joel.budreau at gmail.com]
> Sent: Monday, December 19, 2016 7:30 PM
> To: Richard D. Brown II <rdbrownii at comcast.net>
> Subject: Re: [wix-users] Custom Action
>
> Sorry, I'm not sure how to access the file if the cabs are embedded in 
> the MSI itself. We tend to package those files into the Binary table, 
> and extract them from there using MsiRecordReadStream - 
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.
> com/Extract-Binary-file-from-MSI-C-td7582039.html
>
>
> On Mon, Dec 19, 2016 at 4:11 PM, Richard D. Brown II < 
> rdbrownii at comcast.net <mailto:rdbrownii at comcast.net> > wrote:
> Thanks. What I couldn't figure out how to do is get a reference or 
> path to the msi's embedded cab file so I can use DTF's classes to 
> extract the file I need.  Any suggestions?
>
>
>
>
> On Mon, Dec 19, 2016 at 7:07 PM -0500, "Joel Budreau" < 
> joel.budreau at gmail.com <mailto:joel.budreau at gmail.com> > wrote:
> Extracting files from a Cabinet - https://msdn.microsoft.com/en- 
> us/library/ff797927(v=vs.85).aspx
>
> On Mon, Dec 19, 2016 at 3:58 PM, Richard D. Brown II < 
> rdbrownii at comcast.net <mailto:rdbrownii at comcast.net> > wrote:
> Hi All,
>
> Is there a way to access the contents of the .cab file from within an 
> installer's custom action (written in C#)?  I need to get the main 
> .exe being installed for licensing verification.  This needs to happen 
> before anything gets installed on the client.  I have an alternate 
> solution of including the exe as an embedded resource in the custom 
> action dll, but it's not an ideal solution.  For one, it's already 
> embedded in the cab file within the msi and it could be easily missed 
> when updating the application and the install.
>
> I'd appreciate any help (hopefully with a code sample showing how to 
> do it) you can give.
>
> Thanks. RickB
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant 
> http://www.firegiant.com/
>
>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant 
> http://www.firegiant.com/
>

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant
http://www.firegiant.com/




More information about the wix-users mailing list