Re: [WiX-users] Simple CopyFile example

2008-03-10 Thread Paul McCloskey
Thanks for the reply. That's a great point about modify/repair.

 

Thanks,

Paul

 



From: Bob Arnson [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 08, 2008 8:27 PM
To: Paul McCloskey
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Simple CopyFile example

 

Paul McCloskey wrote: 

Does anyone have a simple CopyFile example they can share? One of our
MSIs needs to copy a file from its current directory (CD) to the
INSTALLDIR.


That will cause failures if the user doesn't have the CD in the drive
during a modify/repair. A safer way is to use a separate uncompressed
Media element to have loose files stored on the root of the CD.



-- 
sig://boB
http://joyofsetup.com/
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Simple CopyFile example

2008-03-07 Thread Paul McCloskey
Hi all,

 

Does anyone have a simple CopyFile example they can share? One of our
MSIs needs to copy a file from its current directory (CD) to the
INSTALLDIR. 

 

Thanks,

Paul

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Help on MsiGetProperty()

2008-01-30 Thread Paul McCloskey
The value of MyProperty is stored in szValueBuf. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Anidil
Sent: Wednesday, January 30, 2008 6:03 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Help on MsiGetProperty()


I've created a wrapper custom action dll with MsiGetProperty().From what
i
see from MSDN,MsiGetProperty uses MyProperty as shown below;which is
used
by the custom action. Can anyone help me understand this part?  Where
should
i get value for MyProperty? 

Snip from MSDN site on MsiGetProperty:

UINT __stdcall MyCustomAction(MSIHANDLE hInstall)
{
TCHAR* szValueBuf = NULL;
DWORD cchValueBuf = 0;
UINT uiStat =  MsiGetProperty(hInstall, TEXT(MyProperty),
TEXT(),
cchValueBuf);
if (ERROR_MORE_DATA == uiStat)
{
++cchValueBuf; // on output does not include terminating null,
so
add 1
szValueBuf = new TCHAR[cchValueBuf];
if (szValueBuf)
{
uiStat = MsiGetProperty(hInstall, TEXT(MyProperty),
szValueBuf, cchValueBuf);
}
}
if (ERROR_SUCCESS != uiStat)
{
if (szValueBuf != NULL) 
delete [] szValueBuf;
return ERROR_INSTALL_FAILURE;
}

// custom action uses MyProperty
// ...

delete [] szValueBuf;

return ERROR_SUCCESS;
}
  
Thanks  
Anidil
-- 
View this message in context:
http://www.nabble.com/Help-on-MsiGetProperty%28%29-tp15179290p15179290.h
tml
Sent from the wix-users mailing list archive at Nabble.com.



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Bootstrapper and MsiInstallProduct

2008-01-22 Thread Paul McCloskey
Are you waiting for the perquisite executables to completely finish
installing before trying to call MsiInstallProduct? There can be only
one executing MSI at a time.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Krause,
Henning
Sent: Tuesday, January 22, 2008 4:36 PM
To: Ben Greenberg
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Bootstrapper and MsiInstallProduct

Hello,

I already call MsiEnableLog(~0, logfile, 3);

But no log is created. The method fails instantly.

Kind regards,
Henning

 -Original Message-
 From: Ben Greenberg [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, January 22, 2008 10:23 PM
 To: Krause, Henning
 Cc: wix-users@lists.sourceforge.net
 Subject: Re: [WiX-users] Bootstrapper and MsiInstallProduct
 
 Perhaps you can try shelling out and running msiexec.exe with logging
 enabled.  Even if it still doesn't work, you may have a more
 descriptive
 error message.
 
 bg
 
 
 Krause, Henning wrote:
  Hello,
 
  I'm writing a setup-bootstrapper which installs some required
 software
  before the actual MSI is executed. The MSI is installed via
  MsiInstallProduct.
 
  This works just fine if no external process is called prior to the
 call
  to MsiInstallProduct.
 
  But if I launch any executable prior to the call, MsiInstallProduct
  fails with E_FAIL (0x80004005).
 
  I've googled for this combination but found nothing.
 
  Anyone got a clue?
 
  Kind regards,
  Henning
 
 
-
 
  This SF.net email is sponsored by: Microsoft
  Defy all challenges. Microsoft(R) Visual Studio 2008.
  http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
  ___
  WiX-users mailing list
  WiX-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wix-users
 



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Sourcedir

2007-12-14 Thread Paul McCloskey
Thanks for the reply. Since we're using WIX for MSI authoring and
examining a bootstrapper architectchure, we've been experimenting with
Office 2007. It's the biggest WIX authored bootstrapper driven install
we could think of. Specifically I'm interested in exactly how they can
through Group Policy assign a single MSI to a machine which then appears
to copy or install the installation media to the client machine, and
finishes by launching the setup.exe on the local machine. Getting a
handle on how Microsoft is doing this will greatly help us offer Group
Policy deployment scenarios to our customers.

Probably way too much detail, but to get back to the original question
of the SourceDir property, I've only been able to reliably detect Group
Policy deployment and launch the custom action to trigger the
bootstrapper which never actually launches anything because I haven't
found a reliable way to find where the network MSI is running from. 

Any ideas are welcome.



-Original Message-
From: Richard [mailto:[EMAIL PROTECTED] On Behalf Of
Richard
Sent: Friday, December 14, 2007 12:16 PM
To: Paul McCloskey
Subject: Re: [WiX-users] Sourcedir 


In article
[EMAIL PROTECTED],
Paul McCloskey [EMAIL PROTECTED]  writes:

 We're exploring using a bootstrapper type install architecture for our
 suite of products.

If there's no rush, I would wait for the next release of Windows
Installer which will integrate bootstrappers for just the GPO
deployment scenario you're talking about.

Otherwise, the sequence of things will always be wrong because the
bootstrapper should run before your product MSI runs.
-- 
The Direct3D Graphics Pipeline -- DirectX 9 draft available for
download
  http://www.xmission.com/~legalize/book/download/index.html

Legalize Adulthood! http://blogs.xmission.com/legalize/

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Sourcedir

2007-12-13 Thread Paul McCloskey
Hello,

 

I'm trying to find a reliable way to get the path to the running MSI.
Once I have the path, I'd like to spawn an executable that is relative
to the MSI in a custom action. I'd like to try and do this as early as
possible in the execute sequence. I've tried using SOURCEDIR to mixed
results, and I've tried using C++ functions like GetModuleFileName, and
I've tried using the CURRENTDIRECTORY property. What is complicating my
approach is that this has to happen during Group Policy assignment so
most of these functions return C:\Windows\system32, which is where the
main msiexec is running from. 

 

Any ideas?

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Running an executable in the binary table

2007-10-09 Thread Paul McCloskey
Thanks for the help and example snippet Chris, the explanation makes
perfect sense and works like a charm. I tried going the dark route, but
our IS generated MSI files make dark throw exceptions. 

 

Paul

 



From: Christopher Painter [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 08, 2007 10:00 PM
To: Paul McCloskey; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Running an executable in the binary table

 

A type 3074 is just a Type 2 EXE CA stored in the binary table with the
msidbCustomActionTypeInScript + msidbCustomActionTypeNoImpersonate
attributes set.  This means it's a deferred CA that runs as System
Context and must be sequenced between InstallInitialize and
InstallFinalize.

 

You could dark an InstallShield built MSI to get some XML to look at or
you could dig through sparse schema documentation or you could use a
tool like WiXAware to help you out.   That's what I did ( I'm sorry...
I'm a pretty smart guy but life is too short to be writing installs
using a text editor IMO ).   A sample CA snippet would look like:

 

Binary Id=Notepad.exe SourceFile=C:\windows\notepad.exe

/Binary

CustomAction Id=CustomAction1 Return=check HideTarget=no
Execute=deferred Impersonate=no TerminalServerAware=no
ExeCommand= BinaryKey=Notepad.exe

/CustomAction

InstallExecuteSequence

Custom Action=CustomAction1 After=InstallInitialize /

/InstallExecuteSequence



Paul McCloskey [EMAIL PROTECTED] wrote:

Hello,

 

I'm trying to convert an existing Installshield project to Wix
3.0. I'm having trouble getting my head around recreating a custom
action. The IS project runs an executable in the binary table as a type
3074 custom action, is there an equivalent in WIX?

 

Thanks.



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a
browser.
Download your FREE copy of Splunk now 
http://get.splunk.com/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

 

  



Tonight's top picks. What will you watch tonight? Preview the hottest
shows
http://us.rd.yahoo.com/tv/mail/tagline/tonightspicks/evt=48220/*http:/t
v.yahoo.com/%20%0d%0a  on Yahoo! TV. 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Running an executable in the binary table

2007-10-08 Thread Paul McCloskey
Hello,

 

I'm trying to convert an existing Installshield project to Wix 3.0. I'm
having trouble getting my head around recreating a custom action. The IS
project runs an executable in the binary table as a type 3074 custom
action, is there an equivalent in WIX?

 

Thanks.

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users