Re: [WiX-users] [Wix]: Copy the INI file to local temp folder before Install Files action (MSI action)

2013-08-29 Thread Phil Wilson
The short answer is that there is no reasonable way to do this. The unreasonable way is to also add the file to the Binary table, write a bunch of code that streams it from the Binary table to disk, then you read the value. Nobody here thinks that anything like that is a reasonable solution. Becaus

Re: [WiX-users] [Wix]: Copy the INI file to local temp folder before Install Files action (MSI action)

2013-08-29 Thread John Ludlow
If the file is packaged inside the MSI, how would anything copy it before the InstallFiles action? The only scenario that makes sense here (as far as I can see) is that you're in an upgrade situation, and you want to copy the version of the file you're upgrading from to the temp folder and read so

Re: [WiX-users] [Wix]: Copy the INI file to local temp folder before Install Files action (MSI action)

2013-08-29 Thread ak m
Could anyone help me on this? On Mon, Aug 26, 2013 at 10:45 AM, ak m wrote: > File is packaged in MSI. INI file contains not only Model information but > also about the port information etc... > > Basically this INI file is used for silent installation > > Anil > > > On Sat, Aug 24, 2013 at 12:

Re: [WiX-users] [Wix]: Copy the INI file to local temp folder before Install Files action (MSI action)

2013-08-25 Thread ak m
File is packaged in MSI. INI file contains not only Model information but also about the port information etc... Basically this INI file is used for silent installation Anil On Sat, Aug 24, 2013 at 12:24 AM, Phil Wilson wrote: > Exactly where is this ini file? It doesn't sound like it's actual

Re: [WiX-users] [Wix]: Copy the INI file to local temp folder before Install Files action (MSI action)

2013-08-23 Thread David Connet
t: Re: [WiX-users] [Wix]: Copy the INI file to local temp folder before Install Files action (MSI action) Write a Custom Action (CA) in the UI sequence, the CA contained the embedded resource of the INI file for you to write out. If you're doing that in a Windows .DLL file, here is one wa

Re: [WiX-users] [Wix]: Copy the INI file to local temp folder before Install Files action (MSI action)

2013-08-23 Thread Brian Payne
Write a Custom Action (CA) in the UI sequence, the CA contained the embedded resource of the INI file for you to write out. If you're doing that in a Windows .DLL file, here is one way to do it: HRSRC hRCStub; DWORD dwStubSize; HGLOBAL hGBStub; char *pStubData; FILE *fOut; char szOutFile[MAX_PATH]

Re: [WiX-users] [Wix]: Copy the INI file to local temp folder before Install Files action (MSI action)

2013-08-23 Thread Phil Wilson
Exactly where is this ini file? It doesn't sound like it's actually packaged in the MSI file. Do you actually need the ini file or just the model number out of it? There's the DiFX framework for installing drivers - that might be useful. http://msdn.microsoft.com/en-us/library/windows/hardware/f

[WiX-users] [Wix]: Copy the INI file to local temp folder before Install Files action (MSI action)

2013-08-23 Thread ak m
Dear All, when user clicks MSI, 1. Copy the INI file to local temp folder before Install Files action (MSI action) 2. Get the model information from INI 3. Install the printer driver Could any one help me on this? Thanks in Advance... Anil ---