[WiX-users] Clarification question about rollbacks...

2007-07-20 Thread Rory Clark
I've been reading through Phil Wilson's The Definitive Guild to the
Wndows Installer
 . I got the distinct impression, though I can't find it now, that
rollbacks cannot happen during the Install Finalize action, let alone
after Install Finalize. Various experiments would back this up even. I
can, and I currently am, returning an error code that causes the MSIExec
to stop and return an exit code after Install Finalize.

MSI (s) (5C:F8) [17:56:00:272]: Note: 1: 1708 
MSI (s) (5C:F8) [17:56:00:272]: Note: 1: 2205 2:  3: Error 
MSI (s) (5C:F8) [17:56:00:272]: Note: 1: 2228 2:  3: Error 4:
SELECT `Message` FROM `Error` WHERE `Error` = 1708 
MSI (s) (5C:F8) [17:56:00:272]: Note: 1: 2205 2:  3: Error 
MSI (s) (5C:F8) [17:56:00:272]: Note: 1: 2228 2:  3: Error 4:
SELECT `Message` FROM `Error` WHERE `Error` = 1709 
MSI (s) (5C:F8) [17:56:00:272]: Product: _Cobrand
clickserver_1.0.0.0 Installer -- Installation failed.
 
MSI (s) (5C:F8) [17:56:00:272]: Cleaning up uninstalled install
packages, if any exist
MSI (s) (5C:F8) [17:56:00:272]: MainEngineThread is returning
1603
MSI (s) (5C:6C) [17:56:00:292]: Destroying RemoteAPI object.
MSI (s) (5C:04) [17:56:00:292]: Custom Action Manager thread
ending.
=== Logging stopped: 7/20/2007  17:56:00 ===
MSI (c) (DC:E8) [17:56:00:302]: Decrementing counter to disable
shutdown. If counter >= 0, shutdown will be denied.  Counter after
decrement: -1
MSI (c) (DC:E8) [17:56:00:302]: MainEngineThread is returning
1603
=== Verbose logging stopped: 7/20/2007  17:56:00 ===

But the action doesn't roll back.









This action needs to run after the files have been written to disk and
after the "execConfigMods.action", but I don't seem to have that
granular of control. If I set the After attribute to
"execConfigMods.action", the "generateConfigurations.action" runs before
the files are written to the disc and the install exits without error.
Right now, I want the install to fail and roll back, but it is defying
me.
 
If I look at the log, all of the files actually get written to the disc
during Install Finalize and the first file copy doesn't happen until 23
lines into the action.
 
Thanks!
Rory
 
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Adding an error message popup without aborting installation

2007-07-20 Thread Man, Shirley
Hi,

I am launching a third-party installer (say, abc.exe) within my own, and
I would like to display a popup message saying "abc.exe failed to
install" if abc fails. This abc installer is launched in silent mode, so
there is no error message from it. User will continue the rest of the
installation after he clicks OK.

Basically, I want my program to install even if abc fails.

I can detect if abc is not installed properly, but I could not find a
way to insert this message popup.

Any help is appreciated.


Shirley






-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Registry value not overwritten but no error given

2007-07-20 Thread Dale Quigg
This is not a WiX/MSI problem.

I'm being "bad" and manually registering (as well as declaratively)
registering a .dll that I'm pretty sure is causing the problem.

Sorry to bother.

Dale

-Original Message-
From: Dale Quigg 
Sent: Friday, July 20, 2007 3:39 PM
To: 'wix-users@lists.sourceforge.net'
Subject: Registry value not overwritten but no error given

Hi,

I have a "leftover" (after uninstall) registry value from an old
InstallShield X Universal (Java based) install that is not getting
overwritten by my new, WiX v3 based, .msi install.

When my .msi install is complete, the registry looks like this;

REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Applicati
on\iis_smtp_adapter]
"EventMessageFile"="C:\\Program Files\\MessageGate\\lib\\event_msg.dll"
"TypesSupported"=dword:0007
(note the "lib" directory)

The verbose install log contains these entries;

MSI (s) (14:34) [13:30:55:685]: Executing op:
RegAddValue(Name=EventMessageFile,Value=C:\Program
Files\messagegate\bin\event_msg.dll,)
WriteRegistryValues: Key:
\SYSTEM\CurrentControlSet\Services\Eventlog\Application\iis_smtp_adapter
, Name: EventMessageFile, Value: C:\Program
Files\messagegate\bin\event_msg.dll
MSI (s) (14:34) [13:30:55:701]: Executing op:
RegAddValue(Name=TypesSupported,Value=#7,)
WriteRegistryValues: Key:
\SYSTEM\CurrentControlSet\Services\Eventlog\Application\iis_smtp_adapter
, Name: TypesSupported, Value: #7

I'm confused as to why there is no error (note the "bin" directory) at;

WriteRegistryValues: Key:
\SYSTEM\CurrentControlSet\Services\Eventlog\Application\iis_smtp_adapter
, Name: EventMessageFile, Value: C:\Program
Files\messagegate\bin\event_msg.dll

when it failed to correctly write the value.

If I manually create the "leftover" registry value with a .reg file, the
proper value is written correctly by my .msi install.  Also, after my
.msi install, I can manually change the registry to the correct value,
so it doesn't seem to be a locking problem.

Any tips/hints appreciated.

Thanks,
Dale


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Registry value not overwritten but no error given

2007-07-20 Thread Dale Quigg
Hi,

I have a "leftover" (after uninstall) registry value from an old
InstallShield X Universal (Java based) install that is not getting
overwritten by my new, WiX v3 based, .msi install.

When my .msi install is complete, the registry looks like this;

REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Applicati
on\iis_smtp_adapter]
"EventMessageFile"="C:\\Program Files\\MessageGate\\lib\\event_msg.dll"
"TypesSupported"=dword:0007
(note the "lib" directory)

The verbose install log contains these entries;

MSI (s) (14:34) [13:30:55:685]: Executing op:
RegAddValue(Name=EventMessageFile,Value=C:\Program
Files\messagegate\bin\event_msg.dll,)
WriteRegistryValues: Key:
\SYSTEM\CurrentControlSet\Services\Eventlog\Application\iis_smtp_adapter
, Name: EventMessageFile, Value: C:\Program
Files\messagegate\bin\event_msg.dll
MSI (s) (14:34) [13:30:55:701]: Executing op:
RegAddValue(Name=TypesSupported,Value=#7,)
WriteRegistryValues: Key:
\SYSTEM\CurrentControlSet\Services\Eventlog\Application\iis_smtp_adapter
, Name: TypesSupported, Value: #7

I'm confused as to why there is no error (note the "bin" directory) at;

WriteRegistryValues: Key:
\SYSTEM\CurrentControlSet\Services\Eventlog\Application\iis_smtp_adapter
, Name: EventMessageFile, Value: C:\Program
Files\messagegate\bin\event_msg.dll

when it failed to correctly write the value.

If I manually create the "leftover" registry value with a .reg file, the
proper value is written correctly by my .msi install.  Also, after my
.msi install, I can manually change the registry to the correct value,
so it doesn't seem to be a locking problem.

Any tips/hints appreciated.

Thanks,
Dale


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Initializing a MySQL 5 database

2007-07-20 Thread Friedrich Brunzema
Bob,

thanks for the information regarding SQL support in Wix.  Could one not use 
OleDB or one of the other database access technologies (ODBC) that use a 
connection string to get all databases covered in one go?  I can take a look at 
the source to see how hard it would be to add MySQL support to Wix (presumably 
in C++?) with the MySql client library, but I promise nothing.

Is there a good example of a creating a fragment somewhere?

thanks,

Friedrich


- Original Message 
From: Bob Arnson <[EMAIL PROTECTED]>
To: Friedrich Brunzema <[EMAIL PROTECTED]>
Cc: WixUsers 
Sent: Friday, July 20, 2007 12:53:25 PM
Subject: Re: [WiX-users] Initializing a MySQL 5 database




  

Friedrich Brunzema wrote:

  
  
  I noticed that there is some SQL support in Wix, but did not
find extensive documentation on this (or an example).  At first glance
my guess is that this only works for SQL server installations.  Does
someone have more information?

  

  




Yes, it's SQL Server-specific. We've talked about adding support for
non-MS databases, especially since both PostgreSQL and MySQL feature
installers built with WiX. But so far, nobody's volunteered.




  
  The setup is actually installing the entire MySQL database
(after reverse-engineering the MySQL setup), which also works great,
but now causes 4-5 min build times for light to compress all the
files.  I have actually separated the mysql portions into a merge
module , which basically works and reduces the build to < 1 min, but
now the custom actions break, since the id that [#mysql.exe] references
is in another file - I get a missing foreign key error message from one
of the ICE checkers.

  

  




Unless you need to share the merge module, the easiest solution is to
create a Fragment instead of a Module. Use Lit to create a .wixlib that
contains all the files. Otherwise, you need to include all the related
files in the same module.

-- 
sig://boB
http://joyofsetup.com/






  Ask a question on any topic and get answers from real people. Go to 
Yahoo! Answers and share what you know at http://ca.answers.yahoo.com-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] DifXApp UI on WinXP+

2007-07-20 Thread Aaron Averbuch
We have a Full UI MSI (UILevel 5) that uses DifXApp to install drivers
on WinXP and Vista. All works well on these OS's except that we get a
slight "splash UI" in the upper-left-hand-corner of the monitor when the
driver is actually being installed.

 

Is there a way to make DifXApp install drivers without this "splash"? It
doesn't seem to have this behavior if we run our MSI in silent mode
(UILevel 0). 

 

Thanks,

Aaron Averbuch

 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] unconditional full install on minor upgrade

2007-07-20 Thread Wilson, Phil
OnlyDetect=yes will result in the old product not being uninstalled,
correct. 

Phil Wilson 



From: Nitin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 19, 2007 10:38 PM
To: Wilson, Phil; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] unconditional full install on minor upgrade



Thanks, the PackageCodes were same. I have changed them now, and I no
longer get the Maintenance screen. However, Add remove programs contains
entries for both the versions. How can I remove the older entry?

I do have 

Does it have anything to do with the OnlyDetect="yes"  in
mailto:[EMAIL PROTECTED] On Behalf Of Wilson,
Phil
Sent: Thursday, July 12, 2007 9:53 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] unconditional full install on minor upgrade

 

The PackageCode guids - are they different? 

Phil Wilson 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nitin
Sent: Thursday, July 12, 2007 8:49 AM
To: 'Brian Simoneau'; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] unconditional full install on minor upgrade

Hi Brain,

 

I checked with Orca, my ProductsCodes are different and UpgradeCodes are
same.

Whats wrong? Anything I should check in the verbose log?

 

- Nitin

 



From: Brian Simoneau [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 11, 2007 6:42 PM
To: Nitin; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] unconditional full install on minor upgrade

 

Versions 0.3.0 and 0.4.0 must have the same UpgradeCode but different
ProductCodes.  If you are seeing maintenance mode, then they probably
have the same ProductCode.

 

-Brian Simoneau

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nitin
Sent: Wednesday, July 11, 2007 9:07 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] unconditional full install on minor upgrade

Hi,

 

I have 2 setups, one with version 0.3.0 and second with 0.4.0

 

These setups have been created using dark of a visual studio
setup project and then UI was modified.

 

It has the following tags



  

  

  

  



 



 

Both the versions have this same upgrade ID

 

Now when I install 0.4.0 over 0.3.0, it shows me "Maintenance
Form". I have tried using 0 but it doesn't work.

 

I have also added following properties

 

 

 

 

I want the 0.4.0 setup to uninstall 0.3.0 installation and do a
full installation for 0.4.0

 

- Nitin

 

 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Drivers/9X/MSI

2007-07-20 Thread Aaron Averbuch
Does anyone have a good MSI or custom action solution for installing
drivers on Win9X (given than DIFXApp doesn't support these OS's due to
the lack of Microsoft support for these OS's)? 

I'm assuming that there are older techniques that people used for these
OS's before DIFXApp came out.

 

Thanks for any help...

Aaron Averbuch

 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] How to read Version information from the Registry.

2007-07-20 Thread Naresh Krishna Kumar K

Hi,
I am trying to read the version of GPMC in the Registry which is 1.0.2. I
can check whether the GPMC is installed or not. But I want to read the
version data from the registry since my tool will run in other operating
systems and GPMC are in two different versions. Based on the version of
GPMC, I will be installing some files while running the .msi file.

>   
>  Root="HKLM" 
>   
> Key="SOFTWARE\Microsoft\MMC\SnapIns\{E12BBB5D-D59D-4E61-947A-301D25AE8C23}" 
>   Name="Version" Type="raw" 
>   />
>


Bob Arnson-6 wrote:
> 
> Naresh Krishna Kumar K wrote:
>> Hi,
>>
>> I am trying to read the version information from the registry.
>>
>>   
>>  >  Root="HKLM" 
>>  
>> Key="SOFTWARE\Microsoft\MMC\SnapIns\{E12BBB5D-D59D-4E61-947A-301D25AE8C23}" 
>>  Name="Version" Type="raw" 
>>  />
>>
>>   
> 
> Does that not work? What value does MSI read from the registry? It's not 
> clear what problem you're having.
> 
> -- 
> sig://boB
> http://joyofsetup.com/
> 
> 
> 
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-read-Version-information-from-the-Registry.-tf4116581.html#a11714117
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 2005.
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] Add Registry Value to a variable

2007-07-20 Thread Pierson Lee (Volt)
You need to do a registrysearch. Look at registrysearch in the documentation

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of "Martin 
Österreicher"
Sent: Friday, July 20, 2007 2:42 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Add Registry Value to a variable

Hello!

How can I read out a Registry Value and put it into a variable?

I would be so grateful, if you could help me!

--
Pt! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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 2005.
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] Is there string manipulation in WIX?.

2007-07-20 Thread DE�K JAHN, G�bor
On Thu, 19 Jul 2007 17:42:04 -0400, Venkatesh Malepati wrote:

Venkat,

> calculation outcome. Can anybody think that it is easy or do I need
> to write a program in c or visual basic?.

C, C++, D, Pascal, Eiffel, and a whole lot of other programming languages and 
environments, anything that can create a standard Win32 DLL (this rules out 
Visual Basic as far as I know, although I never used it and followed its 
features). And in this case, this is your luck because anything you do in an 
.msi can be very easily read back using the appropriate tools (eg. Orca, the 
standard MSI editor). Having your key manipulation in a separate DLL makes it 
slightly more difficult to break it, although only marginally, if the product 
is worth it, crackers will crack it, anyway...

Bye,
   Gábor

---
DEÁK JAHN, Gábor -- Budapest, Hungary
E-mail: [EMAIL PROTECTED]

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Creating a URL shortcut to an IIS virtual directory created by the installation

2007-07-20 Thread Bob Arnson
Duncan Cross wrote:
> ...but instead of using a static string for the URL shortcut, I want
> it to point at the virtual directory/web application that was just
> installed (since it eventually should have a configurable location
> etc). Is it possible to get the URL from an
> iis:WebApplication/iis:WebVirtualDir Id somehow?
>   

There's nothing like that today.

-- 
sig://boB
http://joyofsetup.com/



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] CustomizeDlg - "Location" text

2007-07-20 Thread Bob Arnson
Craig Ward wrote:
> I'm experiencing a slight problem with the CustomizeDlg's "Location"
> control. When installing, this dlg correctly displays the target
> directory, and (again correctly) allows me to browse for a new path.
> However, once installed, if I re-run the installation program and select
> the Change option, then the dlg displays the original/default target
> directory, and not the actual directory used for installation.
>   

I can't reproduce that: In maintenance mode, the location controls are 
hidden, per the Condition, since they can't be changed during maintenance.

-- 
sig://boB
http://joyofsetup.com/



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Getting installed version

2007-07-20 Thread Bob Arnson
LEMIRE, JOHN wrote:
> Does anyone know off the top of their head how to get the installed
> version. I'm trying to do an upgrade and I've got the upgrade code but
> I'd like the version number of what's already installed to put into some
> dialog text.
>   

There's no direct way to get it. (MSI doesn't have a "ProductLocator" 
type of functionality.) Indirectly, you can use UpgradeVersion's 
attributes to pick out particular product versions. That's feasible if 
you have only a few released versions you're upgrading from.

-- 
sig://boB
http://joyofsetup.com/



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Initializing a MySQL 5 database

2007-07-20 Thread Bob Arnson

Friedrich Brunzema wrote:
I noticed that there is some SQL support in Wix, but did not find 
extensive documentation on this (or an example).  At first glance my 
guess is that this only works for SQL server installations.  Does 
someone have more information?


Yes, it's SQL Server-specific. We've talked about adding support for 
non-MS databases, especially since both PostgreSQL and MySQL feature 
installers built with WiX. But so far, nobody's volunteered.


The setup is actually installing the entire MySQL database (after 
reverse-engineering the MySQL setup), which also works great, but now 
causes 4-5 min build times for light to compress all the files.  I 
have actually separated the mysql portions into a merge module , which 
basically works and reduces the build to < 1 min, but now the custom 
actions break, since the id that [#mysql.exe] references is in another 
file - I get a missing foreign key error message from one of the ICE 
checkers.


Unless you need to share the merge module, the easiest solution is to 
create a Fragment instead of a Module. Use Lit to create a .wixlib that 
contains all the files. Otherwise, you need to include all the related 
files in the same module.


--
sig://boB
http://joyofsetup.com/

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] How to read Version information from the Registry.

2007-07-20 Thread Bob Arnson
Naresh Krishna Kumar K wrote:
> Hi,
>
> I am trying to read the version information from the registry.
>
>   
>  Root="HKLM" 
>   
> Key="SOFTWARE\Microsoft\MMC\SnapIns\{E12BBB5D-D59D-4E61-947A-301D25AE8C23}" 
>   Name="Version" Type="raw" 
>   />
>
>   

Does that not work? What value does MSI read from the registry? It's not 
clear what problem you're having.

-- 
sig://boB
http://joyofsetup.com/



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Installing multi-instances, have anyone tried it?

2007-07-20 Thread Bob Arnson
Sebastian Brand wrote:
> WiX cannot create Transform files. Yet. Rob? :-)
>   

That's what Torch does.

-- 
sig://boB
http://joyofsetup.com/



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] error LGHT0112 : ..'UI:wixui.wxlib' error , wixui.wxlib on commandline

2007-07-20 Thread Bob Arnson
bryan rasmussen wrote:
> oh I noticed I had changed the UIRef from WixUI, which it is in the
> normal Testminimal.wxs, to wixui.wixlib, just in case that would work.
> but both versions are giving the same result.
>   

The UIRef should be to the dialog set you want to use, e.g., 
WixUI_Minimal. Which version of WiX are you using? TestMinimal no longer 
ships in current versions because it hasn't been updated to match 
changes in compiler and WixUI.

-- 
sig://boB
http://joyofsetup.com/



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Detecting previously installed compoents on major upgrade

2007-07-20 Thread Bob Arnson
Sebastian Brand wrote:
> Has this been resolved yet? How can I use a ComponentSearch if the  
> KeyPath is a registry value (which is the case quite often)?
>   

It appears that MSI doesn't support that. See the CompLocator doc: The 
only flags are for directories and files.

-- 
sig://boB
http://joyofsetup.com/



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Getting installed version

2007-07-20 Thread LEMIRE, JOHN
Does anyone know off the top of their head how to get the installed
version. I'm trying to do an upgrade and I've got the upgrade code but
I'd like the version number of what's already installed to put into some
dialog text.

Thanks very much! :-)
-john

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Creating a URL shortcut to an IIS virtual directory created by the installation

2007-07-20 Thread Duncan Cross
Hello,

I'm new to WiX. I've got as far as creating an installer which:
* Deploys files to a Program Files directory;
* Creates a new IIS virtual directory/web application on the default
web site using the installed files;
* Creates a static URL shortcut in a new Program Menu folder (using
IniFile to create a .url file).

...but instead of using a static string for the URL shortcut, I want
it to point at the virtual directory/web application that was just
installed (since it eventually should have a configurable location
etc). Is it possible to get the URL from an
iis:WebApplication/iis:WebVirtualDir Id somehow?

Thank you,
-Duncan

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Error with Torch.exe

2007-07-20 Thread Patrice Lamarche
Hello,

I'm doing some patching test and from time to time I have
this error. I'm using version : Microsoft (R) Windows Installer Xml
Transform Builder Version 3.0.3113.0

 

torch.exe : error TRCH0103 : The system cannot find the file
'C:\Documents and Settings\plamarche\Local
Settings\Temp\8narfrbb\cab_1_OnyxSetup\2'.

 

The temp folder name change each time. I disabled my on file access
scan. Anyone have clue? I tried to search in the wix user list but
webpage on sourceforge give me unable to connect to the search engine
each time.

 

Thanks in advance

 

Best regards,

 

 Patrice Lamarche 

<>-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] error LGHT0112 : ..'UI:wixui.wxlib' error , wixui.wxlib on commandline

2007-07-20 Thread bryan rasmussen
oh I noticed I had changed the UIRef from WixUI, which it is in the
normal Testminimal.wxs, to wixui.wixlib, just in case that would work.
but both versions are giving the same result.

Cheers,
Bryan Rasmussen

On 7/20/07, bryan rasmussen <[EMAIL PROTECTED]> wrote:
> Hi i am getting the following error on TestMinimal.wxs:
>
> error LGHT0112 : unresolved reference to symbol 'UI:wixui.wxlib' in
> section 'Product:12345678-1234-1234-1234-098765432113'
>
> my command line is as follows:
> light.exe -out check3.msi testminimal.wixobj wixui.wixlib
>
> wixui.wixlib and testminimal.wixobj are in the same folder as
> light.exe (I moved the textminimal) here is the example
> testminimal.wxs the only thing changed is the GUIDs
>
> 
> http://schemas.microsoft.com/wix/2003/01/wi";>
>UpgradeCode="12345678-1234-1234-1234-098765432113"
> Manufacturer="Microsoft Corporation" Language="1033" Name="WiX Common
> Dialogs Test (Minimal)" Version="1.0">
>
>  Keywords="Installer" InstallerVersion="200" Platforms="Intel"
> Languages="1033" SummaryCodepage="1252" Compressed="yes" />
>
> 
> 1
>
> 
>
> 
>   
> 
>   
>  Guid="12345678-1234-1234-1234-098765432113" DiskId="1">
>   
>  Directory="ProgramMenuFolder" Name="Example" LongName="Example
> Shortcut" Description="Shortcut to example.txt" />
>   
> 
>   
> 
>   
>   
> 
>  Description="This is a feature description; it appears in the box to
> the right of the feature tree." Level="1">
>   
> 
>   
> 
>
> the version being run is wix 2.0 the stable version
>

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] error LGHT0112 : ..'UI:wixui.wxlib' error , wixui.wxlib on commandline

2007-07-20 Thread bryan rasmussen
Hi i am getting the following error on TestMinimal.wxs:

error LGHT0112 : unresolved reference to symbol 'UI:wixui.wxlib' in
section 'Product:12345678-1234-1234-1234-098765432113'

my command line is as follows:
light.exe -out check3.msi testminimal.wixobj wixui.wixlib

wixui.wixlib and testminimal.wixobj are in the same folder as
light.exe (I moved the textminimal) here is the example
testminimal.wxs the only thing changed is the GUIDs


http://schemas.microsoft.com/wix/2003/01/wi";>
  




1




  

  

  

  

  

  
  


  

  


the version being run is wix 2.0 the stable version

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Installing multi-instances, have anyone tried it?

2007-07-20 Thread Christopher Painter
Here is an article I wrote last year using ISHNMET.
   
  http://blog.deploymentengineering.com/2006/10/multiple-instance-msis-and.html
   
  Basically ISHNMET automatically handles creating and streaming the instance 
transform but I had to roll my own custom bootstrapper to `automagically`  
handle  servicing via a `install new or service existing` pattern that could 
also handle small updates / minor upgrades.   I've not gotten around to 
implementing the ability to handle Major upgrades.

Sebastian Brand <[EMAIL PROTECTED]> wrote:
  WiX cannot create Transform files. Yet. Rob? :-)

You will need to use another tool to create the transform files. MSDN 
also has an article "Authoring Multiple Instances with Instance 
Transforms" (http://msdn2.microsoft.com/en-US/library/aa367797.aspx) 
which contains a list of what to actually include in the transforms 
and what the original .msi has to concider.

Unfortunally it's not just a switch as is in the old setup days 
(http://community.installshield.com/showthread.php?t=170406).

Best regards,
Sebastian Brand

Instyler Software - http://www.instyler.com


On Jul 20, 2007, at 9:32 AM, md5hans wrote:

>
> Hi!
>
> I want my be able to run my installion several times on the same 
> computer
> but with different input parameters. I have search the forum and 
> found a
> couple of postings were "Multiple Instances with Instance 
> Transforms" were
> suggested. Have anyony tries this? could anyone post an example? I 
> have read
> http://msdn2.microsoft.com/en-US/library/aa369528.aspx (Installing 
> Multiple
> Instances with Instance Transforms) but I did not understan how 
> this can be
> done in WIX
>
> What I want to accomplish is that the user can at install time give a
> directory path and that will control where the files shall be 
> installed. In
> some cases the user want to run the installtion again but with 
> another path
> (the same files will obviously be installed).
>
> My installation is more of an uppgrade installtion (it does not 
> install a
> .exe) but were the same files included in the upgrade is usefull 
> for more
> than one "part" of the installation that I want to uppgrade.
>
> /Hans
> -- 
> View this message in context: http://www.nabble.com/Installing- 
> multi-instances%2C-have-anyone-tried-it--tf4115509.html#a11703450
> 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 2005.
> 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 2005.
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


   
-
Building a website is a piece of cake. 
Yahoo! Small Business gives you all the tools to get online.-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] How to declare optional - but exclusive - components?

2007-07-20 Thread Crusty Applesniffer
Hello,
I'm using Wix3.0 and I wonder if there is a way to declare two 
components that can not be installed for the same feature.
I mean how can I have:
(x) Feature 1
(x) Component A
(  ) Component B

that automatically changes to :
(x) Feature 1
(  ) Component A
(x) Component B

when the user selects component B (and vice-versa)

Thank you

Crusty Applesniffer



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Windows Installer - CustomAction DLL

2007-07-20 Thread Rob Hamflett
It always succeeds because you always return ERROR_SUCCESS.  The list of 
possible return values is here:
https://msdn2.microsoft.com/en-us/library/aa368072.aspx

Also make sure you have [EMAIL PROTECTED]"check"

Rob

Naresh Krishna Kumar K wrote:
> Hi,
> 
> I am creating a Custom Action DLL using VC++. My Custom Action DLL source
> code is given below:
> 
> #pragma comment(lib, "msi.lib")
> #include "stdafx.h"
> 
> BOOL APIENTRY DllMain( HMODULE hModule,
>DWORD  ul_reason_for_call,
>LPVOID lpReserved
>)
> {
> return TRUE;
> }
> 
> 
> UINT MsiMessageBox(MSIHANDLE hInstall,TCHAR* pszMsg,DWORD dwOptions)
> {
>   if( NULL==hInstall || NULL==pszMsg )
>   {
>   return -1;
>   }   
>   PMSIHANDLE hRec = MsiCreateRecord(2);
>   MsiRecordSetString(hRec,0,pszMsg);
>   UINT uiRet =
>   MsiProcessMessage(hInstall,INSTALLMESSAGE(INSTALLMESSAGE_USER
> |dwOptions),hRec);
>   return uiRet;
> }
> 
> UINT __stdcall FirstAction(MSIHANDLE hInstall)
> {
>   
>   if(MsiMessageBox(hInstall, TEXT("Do you want to continue setup?"),
> MB_OKCANCEL | MB_ICONEXCLAMATION) == IDOK)
>   {
>   ShellExecute
> (NULL,_T("open"),_T("http://microsoft.com/downloads";),NULL,NULL,SW_SHOWNORMAL);
>   }
>   else
>   {
>   Exit the MSI.
>   }
> 
>   return ERROR_SUCCESS;
> }
> 
> The above code displays the message when installing the .msi file whether
> the user want to download any prerequisite software needed for the .msi
> file. If the user clicks Ok button, the code will take the user to the
> download page. If the user clicks cancel button, the code should exit the
> user from the msi installation. But the issue is even after clicking cancel
> button, the welcome dialog page comes up. Is there any methods or properties
> in Windows Installer which will exit the user from installing the .msi
> application.
> 
> I have created a Binary element and Custom element and CustomAction element
> in the .wxs file.
> 
> Thanks,
> Naresh Krishna Kumar. K


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] How to read Version information from the Registry.

2007-07-20 Thread Naresh Krishna Kumar K

Hi,

I am trying to read the version information from the registry.

  

   

I dont have any attributes in RegistrySearch element to read the version
information of the installed application. Is there any workaround in WIX?
Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/How-to-read-Version-information-from-the-Registry.-tf4116581.html#a11706696
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 2005.
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] Initializing a MySQL 5 database

2007-07-20 Thread Friedrich Brunzema
Hi,

I have a question about initializing a MySql (v.5) database using Wix.  Our 
application is written in C# .net, and uses a .net connector to talk to the 
database.  Right now, we have a custom action that call the MySql.exe client, 
passing in a SQL script to initialize the database.  While this works, it does 
generate an ugly DOS box flash which I would like to avoid.

I noticed that there is some SQL support in Wix, but did not find extensive 
documentation on this (or an example).  At first glance my guess is that this 
only works for SQL server installations.  Does someone have more information?

Below is this custom action we use to initialize the schema



The setup is actually installing the entire MySQL database (after 
reverse-engineering the MySQL setup), which also works great, but now causes 
4-5 min build times for light to compress all the files.  I have actually 
separated the mysql portions into a merge module , which basically works and 
reduces the build to < 1 min, but now the custom actions break, since the id 
that [#mysql.exe] references is in another file - I get a missing foreign key 
error message from one of the ICE checkers.

thanks in advance,

Friedrich





  Ask a question on any topic and get answers from real people. Go to 
Yahoo! Answers and share what you know at http://ca.answers.yahoo.com-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Windows Installer - CustomAction DLL

2007-07-20 Thread Naresh Krishna Kumar K

Hi,

I am creating a Custom Action DLL using VC++. My Custom Action DLL source
code is given below:

#pragma comment(lib, "msi.lib")
#include "stdafx.h"

BOOL APIENTRY DllMain( HMODULE hModule,
   DWORD  ul_reason_for_call,
   LPVOID lpReserved
 )
{
return TRUE;
}


UINT MsiMessageBox(MSIHANDLE hInstall,TCHAR* pszMsg,DWORD dwOptions)
{
if( NULL==hInstall || NULL==pszMsg )
{
return -1;
}   
PMSIHANDLE hRec = MsiCreateRecord(2);
MsiRecordSetString(hRec,0,pszMsg);
UINT uiRet =
MsiProcessMessage(hInstall,INSTALLMESSAGE(INSTALLMESSAGE_USER
|dwOptions),hRec);
return uiRet;
}

UINT __stdcall FirstAction(MSIHANDLE hInstall)
{

if(MsiMessageBox(hInstall, TEXT("Do you want to continue setup?"),
MB_OKCANCEL | MB_ICONEXCLAMATION) == IDOK)
{
ShellExecute
(NULL,_T("open"),_T("http://microsoft.com/downloads";),NULL,NULL,SW_SHOWNORMAL);
}
else
{
Exit the MSI.
}

return ERROR_SUCCESS;
}

The above code displays the message when installing the .msi file whether
the user want to download any prerequisite software needed for the .msi
file. If the user clicks Ok button, the code will take the user to the
download page. If the user clicks cancel button, the code should exit the
user from the msi installation. But the issue is even after clicking cancel
button, the welcome dialog page comes up. Is there any methods or properties
in Windows Installer which will exit the user from installing the .msi
application.

I have created a Binary element and Custom element and CustomAction element
in the .wxs file.

Thanks,
Naresh Krishna Kumar. K
-- 
View this message in context: 
http://www.nabble.com/Windows-Installer---CustomAction-DLL-tf4116549.html#a11706592
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 2005.
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] Extension registered but not accepted by windows

2007-07-20 Thread Brian Elmegaard
Rob Hamflett <[EMAIL PROTECTED]> writes:

> Possibly you want [!EMACSPATH] instead of ![EMACSPATH].

Thanks Rob. Actually I just needed to get rid of the exclamation
point. I don't really know how I got that. I may have seen it in some
example somewhere.

Regards,
-- 
Brian (remove the sport for mail)
http://www.et.web.mek.dtu.dk/Staff/be/be.html
http://www.rugbyklubben-speed.dk


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Populating Listbox from a custom action

2007-07-20 Thread Alexei

The problem was that I wanted the LISTBOXVALUES property set to the Value
column of the listbox, as opposed to the Text.
I realise now that it was because I wasn't actually populating the listbox
with any text - merely the value.

What I wanted to do was:
WcaAddTempRecord(hTable, hColumns, L"ListBox", 2, 4, L"LISTBOXVALUES",
entrycount++, wcData, wcDesc);
-- 
View this message in context: 
http://www.nabble.com/Populating-Listbox-from-a-custom-action-tf4104235.html#a11706106
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 2005.
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] CustomizeDlg - "Location" text

2007-07-20 Thread Craig Ward
I'm experiencing a slight problem with the CustomizeDlg's "Location"
control. When installing, this dlg correctly displays the target
directory, and (again correctly) allows me to browse for a new path.
However, once installed, if I re-run the installation program and select
the Change option, then the dlg displays the original/default target
directory, and not the actual directory used for installation.

Within CustomizeDlg, there's text:


  
  
  Installed




-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Add Registry Value to a variable

2007-07-20 Thread Martin Österreicher
Hello!

How can I read out a Registry Value and put it into a variable?

I would be so grateful, if you could help me!

-- 
Pt! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Put a global property into a variable

2007-07-20 Thread oesimartin

Does anybody know, how to put a global property into a variable???

Thanks and greetings!
-- 
View this message in context: 
http://www.nabble.com/Put-a-global-property-into-a-variable-tf4116179.html#a11705450
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 2005.
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] Disabling Cancel button in XP fails where as in Vista It works fine.

2007-07-20 Thread Subhash Badri
Hello WIX users,
My requirement:

When I start a Custom action (launching another package, which take 
considerable time) I want to remove the cancel button, coz I don't want people 
to cancel the installation during the child installation.
My Installation:

1.   A DLL to remove the cancel button
extern "C" UINT __stdcall HideCancelButton(MSIHANDLE hInstall)
{
PMSIHANDLE hRecord = MsiCreateRecord(2);
if ( !hRecord)
  return ERROR_INSTALL_FAILURE;

if (ERROR_SUCCESS != MsiRecordSetInteger(hRecord, 1, 2)
 || ERROR_SUCCESS != MsiRecordSetInteger(hRecord, 2, 0))
  return ERROR_INSTALL_FAILURE;

MsiProcessMessage(hInstall, INSTALLMESSAGE_COMMONDATA, hRecord);

return ERROR_SUCCESS;
}

2.   Declared the custom action into my WIX file as follows:


3.   Scheduled the custom action as follows:


With similar setup for Vista, the MSI works perfect but on XP, the custom 
action fails as
Action ended 23:35:40: INSTALL. Return Value 3.

Q1. Does it depend on the MSIEXEC version?, if so how can I install latest 
version of msiexec on XP?
Q2.  If anybody has faced this problem and found out the solution please let me 
know ?

Any help would be greatly appreciated.
Thanks,
Subhash


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] How can I read out a Registry Value and put it into a variable?

2007-07-20 Thread oesimartin

How can I read out a Registry Value and put it into a variable?

I would be very grateful, if you could help me!!!
-- 
View this message in context: 
http://www.nabble.com/How-can-I-read-out-a-Registry-Value-and-put-it-into-a-variable--tf4116130.html#a11705293
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 2005.
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] Preventing install on non-fixed drives

2007-07-20 Thread Anidil

Has anybody configured WIX to prevent install on non - fixed drives?
Any comments will be appreciated

TIA
Anidil
-- 
View this message in context: 
http://www.nabble.com/Preventing-install-on-non-fixed-drives-tf4116006.html#a11704953
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 2005.
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] To prevent install on non-fixed drive

2007-07-20 Thread Praveen Anidil

Any idea to configure WIX to prevent the install on a non-fixed drive?

TIA
Anidil
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Installing multi-instances, have anyone tried it?

2007-07-20 Thread md5hans

Ok, thanks!!

I will read the article, and try to understand :-). 

The application that I am working on is creating MSi-packages (using WIX)
based on some user input, do you think it will be possible to automate the
the creation of the transform files? 

Maybe I should have read the article before asking this question but... what
tool are you refering to?

Best regards Hans


WiX cannot create Transform files. Yet. Rob? :-)

You will need to use another tool to create the transform files. MSDN  
also has an article "Authoring Multiple Instances with Instance  
Transforms" (http://msdn2.microsoft.com/en-US/library/aa367797.aspx)  
which contains a list of what to actually include in the transforms  
and what the original .msi has to concider.

Unfortunally it's not just a switch as is in the old setup days  
(http://community.installshield.com/showthread.php?t=170406).

Best regards,
Sebastian Brand

Instyler Software - http://www.instyler.com



-- 
View this message in context: 
http://www.nabble.com/Installing-multi-instances%2C-have-anyone-tried-it--tf4115509.html#a11704951
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 2005.
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] Is there string manipulation in WIX?.

2007-07-20 Thread Sebastian Brand
Hello,

I know this doesn't help much, but you will at least have to write a  
vb or jscript custom action.


Best regards,
Sebastian Brand

Instyler Software - http://www.instyler.com


On Jul 19, 2007, at 11:42 PM, Venkatesh Malepati wrote:

> I could not find any topic which does string manipulation. I need  
> to get the first part of the CD Key and install only  and do some  
> calculation and then install product(s) depending upon the  
> calculation outcome. Can anybody think that it is easy or do I need  
> to write a program in c or visual basic?.
>
> Thanks in advance,
> Venkat
>
> -- 
> ---
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> 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 2005.
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] Installing multi-instances, have anyone tried it?

2007-07-20 Thread Sebastian Brand
WiX cannot create Transform files. Yet. Rob? :-)

You will need to use another tool to create the transform files. MSDN  
also has an article "Authoring Multiple Instances with Instance  
Transforms" (http://msdn2.microsoft.com/en-US/library/aa367797.aspx)  
which contains a list of what to actually include in the transforms  
and what the original .msi has to concider.

Unfortunally it's not just a switch as is in the old setup days  
(http://community.installshield.com/showthread.php?t=170406).

Best regards,
Sebastian Brand

Instyler Software - http://www.instyler.com


On Jul 20, 2007, at 9:32 AM, md5hans wrote:

>
> Hi!
>
> I want my be able to run my installion several times on the same  
> computer
> but with different input parameters. I have search the forum and  
> found a
> couple of postings were "Multiple Instances with Instance  
> Transforms" were
> suggested. Have anyony tries this? could anyone post an example? I  
> have read
> http://msdn2.microsoft.com/en-US/library/aa369528.aspx  (Installing  
> Multiple
> Instances with Instance Transforms) but I did not understan how  
> this can be
> done in WIX
>
> What I want to accomplish is that the user can at install time give a
> directory path and that will control where the files shall be  
> installed. In
> some cases the user want to run the installtion again but with  
> another path
> (the same files will obviously be installed).
>
> My installation is more of an uppgrade installtion (it does not  
> install a
> .exe) but were the same files included in the upgrade is usefull  
> for more
> than one "part" of the installation that I want to uppgrade.
>
> /Hans
> -- 
> View this message in context: http://www.nabble.com/Installing- 
> multi-instances%2C-have-anyone-tried-it--tf4115509.html#a11703450
> 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 2005.
> 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 2005.
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 to create autorun feature

2007-07-20 Thread Sebastian Brand
Hello,

Wix is not for building autorun.inf files for your distribution  
media. Wix is for the installation msi files.

Autorun.inf is just an ini file and can be created with any text  
editor. See http://msdn2.microsoft.com/en-us/library/aa969327.aspx  
for a reference of the contents of autorun files.

Best regards,
Sebastian Brand

Instyler Software - http://www.instyler.com


On Jul 19, 2007, at 1:30 PM, Praveen Anidil wrote:

> Hi all
>
> Can anyone suggest me a way to create autorun feature using WIX
>
> TIA
> Anidil
>
>
> -- 
> ---
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/ 
> ___
> 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 2005.
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] Extension registered but not accepted by windows

2007-07-20 Thread Rob Hamflett
Possibly you want [!EMACSPATH] instead of ![EMACSPATH].

Rob

Brian Elmegaard wrote:
> Hi,
> 
> I have added some extensions to the file types in my installer. I make
> them like this:
>Guid="1b773f20-6644-11da-ac2c-00904b6c2734">
>/>
> 
>   
>  Target="![EMACSPATH] -n" Argument='"%1"' />
>   
> 
>   
> 
> 
> They are stored in windows when I run the installer, but when I double
> click a file of the given type it does not open the Target, but opens
> the dialog where I should select the application to run the
> program. What can be the reason?
> 
> tia,


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Custom rollback custom action...

2007-07-20 Thread Rob Hamflett
It sounds like maybe you've forgotten to get the CA to check the return code?  
Are you specifying 
[EMAIL PROTECTED]"check" ?

Rob

Rory Clark wrote:
> I have a custom action that makes configuration changes. I want to 
> modify it so that if it fails it can rollback the install or uninstall. 
> At first, it didn't return a value, so I modified it to return 
> MsiError.InstallFailure.
>  
> That didn't work. Nope, it was installed.
>  
> So, I had it re-throw the exception it caught.
>  
> Still it was installed.
>  
> How do I make the install stop and roll back the changes?
>  
> Thanks!
> Rory
> 
> 
> 
> 
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> 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 2005.
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] How to delete a file that has created by an external program.

2007-07-20 Thread Rob Hamflett
You need to give RemoveFile the name of the file it's supposed to remove.  
Something like this:


Rob

srinivas nomu wrote:
> I am now successfully call an exe to write a license.dat file. However, 
> I have a small problem.
> 1) When I unistall how should I delete manually this file?.
> I used this code, since I have to write to this directory, I need to 
> create a directory in wix itself under Appluication data. Now when 
> Uninstall since it cannot delete the top folder "qsystems" as it will 
> have the license file. So, it cannot delete the top level folder. Since 
> there is no reference for this file that has created by the extrenal 
> program, how should I delete this file. The following code does not work.
>  
> 
> 
> 
> 
> 
>  SharedDllRefCount="no" KeyPath="no" NeverOverwrite="no" Permanent="no" 
> Transitive="no" Win64="no" Location="either"> 
> <*RemoveFile I*d='test' On='uninstall' />
> <*RemoveFolder I*d='QSI' On='uninstall' />
>  
> 
>  
>  
>  
> 
> 
> Yahoo! oneSearch: Finally, mobile search that gives answers 
> ,
>  
> not web links.
> 
> 
> Yahoo! oneSearch: Finally, mobile search that gives answers 
> ,
>  
> not web links.
> 
> 
> 
> 
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> 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 2005.
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] Detecting previously installed compoents on major upgrade

2007-07-20 Thread Sebastian Brand
Has this been resolved yet? How can I use a ComponentSearch if the  
KeyPath is a registry value (which is the case quite often)?


Best regards,
Sebastian Brand

Instyler Software - http://www.instyler.com


On Feb 23, 2007, at 2:53 AM, Rob Mensching wrote:

> Can you share out some of the .wxs code?  I’m just grasping at straws.
>
>
>
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On  
> Behalf Of Mike Poulson
> Sent: Thursday, February 22, 2007 5:20 PM
> To: Rob Mensching
> Cc: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] Detecting previously installed compoents  
> on major upgrade
>
>
>
> Okay so the component is installed.  When I run with the /l*vx  
> log.log option on msiexec I see the other properties getting  
> "Added" and "set" to the correct value (during AppSearch).
>
>
>
> But this property results in the following
>
> AppSearch: Property: SETASSOCIATION, Signature: fileassocsearch
> MSI (c) (38:34) [16:19:10:389]: Note: 1: 1314 2: 00:\ACME.File.2 
> \FriendlyTypeName\
> Info 1314. The specified path '00:\ACME.File.2\FriendlyTypeName\'  
> is unavailable.
>
>
>
> And the Property is never set.
>
>
>
> In the component that I am looking for the Key Path is the creation  
> of a regValue at Root=HKCR,  Key=ACME.File.2\FriendlyTypeName\
>
>
>
> Using WiLogUtl.exe also does NOT show the property.
>
>
>
>
>
>
> On 2/22/07, Rob Mensching <[EMAIL PROTECTED]> wrote:
>
> I don't quite parse that first sentence but if the Component wasn't  
> installed then I wouldn't expect to see the Property set.  Thus the  
> behavior you are seeing may be expected sense.
>
>
>
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On  
> Behalf Of Mike Poulson
> Sent: Thursday, February 22, 2007 4:56 PM
>
>
> To: Rob Mensching
> Cc: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] Detecting previously installed compoents  
> on major upgrade
>
>
>
> It appears that because the keypath is a reg value and cannot be  
> found it is not creating the key.
>
>
>
> All other properties in the log show something like
>
> PROPERTY CHANGE: Adding ASSOCIATION property. Its value is ...
>
>
>
> But the property I want for the ComponentSearch does not have such  
> a line in the log.
>
>
>
> On 2/22/07, Rob Mensching <[EMAIL PROTECTED]> wrote:
>
> ComponentSearch returns the KeyPath of the Component if it was  
> installed.  Otherwise, IIRC, the Property will be left blank.
>
>
>
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On  
> Behalf Of Mike Poulson
> Sent: Thursday, February 22, 2007 4:36 PM
> To: Rob Mensching
> Cc: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] Detecting previously installed compoents  
> on major upgrade
>
>
>
> The issue I found with that is it is returning the key path of a  
> HKCR value that I set in this component.  Then msiexec is returning
>
> Info 1314. The specified path '00:\' is unavailable.   
> Then the property seems to be created.
>
>
>
> My component ONLY set file association keys
>
> So my goal is to determine if the association is already set or not.
>
>
>
> Thoughts?
>
>
>
> On 2/22/07, Rob Mensching <[EMAIL PROTECTED]> wrote:
>
> ComponentSearch element?
>
>
>
> From: [EMAIL PROTECTED] [mailto:wix-users- 
> [EMAIL PROTECTED] On Behalf Of Mike Poulson
> Sent: Thursday, February 22, 2007 1:51 PM
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] Detecting previously installed compoents on  
> major upgrade
>
>
>
> Is there a way to detect what components were installed on a  
> previous install?
>
>
>
> I am doing a major upgrade and want to detect if a specific  
> component was installed before.
>
>
>
> Thanks
>
>
>
>
>
>
>
>
>
> -- 
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to  
> share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php? 
> page=join.php&p=sourceforge&CID=DEVDEV 
> ___
> 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 2005.
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] Extension registered but not accepted by windows

2007-07-20 Thread Brian Elmegaard
Hi,

I have added some extensions to the file types in my installer. I make
them like this:

  
  

  

  
  


They are stored in windows when I run the installer, but when I double
click a file of the given type it does not open the Target, but opens
the dialog where I should select the application to run the
program. What can be the reason?

tia,
-- 
Brian (remove the sport for mail)
http://www.et.web.mek.dtu.dk/Staff/be/be.html
http://www.rugbyklubben-speed.dk


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Got the msi I wanted working

2007-07-20 Thread Brian Elmegaard
"Mike Dimmick" <[EMAIL PROTECTED]> writes:

Thanks a lot for your answers.

> ICE66 says that MsiFileHash was new in Windows Installer 2.0 (there is

> table and overwrites the file anyway - but you can prevent it by setting
> Package/@InstallerVersion to 150 or higher.

I get a candle error if I set it to anythning but 1.0. Is it because I
use WiX 2?

> Product/@UpgradeCode to a GUID, then keep the same upgrade code for all
> future versions of the product.

Done.


> ICE82 - You've probably specified some action as occurring before
> ProgressDlg. Consider changing it to occur before ResumeDlg instead.

This is a bit strange. I only use the wixui.wixlib to make the UI. In
the database I have three entries 1298. Is that a bug in WiX?

MaintenanceWelcomeDlg   Installed AND NOT RESUME AND NOT Preselected1298
ResumeDlg   Installed AND (RESUME OR Preselected)   1298
WelcomeDlg  NOT Installed   1298

> some users in a multi-user environment." You should place the per-machine
> resources into a separate component from the per-user resources.

This is where I am still lost. I have all the shortcuts in components
in directory2. 
I get the warning if I have like this, I get an error if I change the
Root to HKLM. There must be something I don't understand here.

  

  

  
  
  
  


  

> ICE90 says that "[a] shortcut specified by a public property may not work if

I just changed the directory name to mixed case and got the warning removed.

Regards,
-- 
Brian (remove the sport for mail)
http://www.et.web.mek.dtu.dk/Staff/be/be.html
http://www.rugbyklubben-speed.dk


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Problems about running a msi against Vista

2007-07-20 Thread Tony Hoyle
Hao Liu wrote:

> 2.   I signed my custom actions (a setup dll and a remove dll) and the 
> msi as well. But when I run the msi, I still get the UAC prompt like:
> 

>  
> 
> Is there any way to prevent the prompt opened?
> 
No.  You can't bypass UAC in any way.  That's the point of it.

Tony


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Installing multi-instances, have anyone tried it?

2007-07-20 Thread md5hans

Hi!

I want my be able to run my installion several times on the same computer
but with different input parameters. I have search the forum and found a
couple of postings were "Multiple Instances with Instance Transforms" were
suggested. Have anyony tries this? could anyone post an example? I have read
http://msdn2.microsoft.com/en-US/library/aa369528.aspx  (Installing Multiple
Instances with Instance Transforms) but I did not understan how this can be
done in WIX

What I want to accomplish is that the user can at install time give a
directory path and that will control where the files shall be installed. In
some cases the user want to run the installtion again but with another path
(the same files will obviously be installed).

My installation is more of an uppgrade installtion (it does not install a
.exe) but were the same files included in the upgrade is usefull for more
than one "part" of the installation that I want to uppgrade.

/Hans  
-- 
View this message in context: 
http://www.nabble.com/Installing-multi-instances%2C-have-anyone-tried-it--tf4115509.html#a11703450
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 2005.
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] [WiX-devs] Problems about running a msi against Vista

2007-07-20 Thread Heath Stewart
1.   The NoImpersonate bit only affects deferred custom actions. This 
implies you're launching applications from a deferred CA. Immediate CAs 
typically after InstallFinalize are best suited for this (like displaying a web 
page or something).

2.   Signing is really only necessary for the MSI, and that provides the 
publisher in the dialog. You can't get rid of the dialog, though, for an MSI 
install. You can only prevent this from popping up for patches if you follow 
instructions in http://msdn2.microsoft.com/en-us/library/aa372388.aspx.

3.   Public properties passed from client (how you invoke your installation 
transaction) to the server must be listed in the SecureCustomProperties 
property or they will be ignored. See 
http://msdn2.microsoft.com/en-us/library/aa371571.aspx for more information.

Heath Stewart
Technical Lead
Deployment Technology Group, Microsoft
http://blogs.msdn.com/heaths

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hao Liu
Sent: Thursday, July 19, 2007 3:54 PM
To: wix-users@lists.sourceforge.net; [EMAIL PROTECTED]
Subject: [WiX-devs] Problems about running a msi against Vista

I run a msi by using msiexec 4.0 on Vista with UAC ON. And the msi have two 
custom actions (a setup dll and a remover dll). Even if my account is 
Administrator, it failed to install on Vista though it worked on XP. After I 
set the two CA with Impersonate="no" as Bob Arnson suggested, they get 
elevated, and installation and uninstalling went through well. However, there 
are the following issues:

1. When I spawn another process after installation in my setup.dll, the 
process actually run as system account context rather than current user context.
2.   I signed my custom actions (a setup dll and a remove dll) and the msi as 
well. But when I run the msi, I still get the UAC prompt like:

 A program needs your permission to continue

Product Name
Company name
Install
Version

Is there any way to prevent the prompt opened?

3. One more issue when I uninstall. I could not pass successfully a public 
parameter value pair on Vista. But it works on XP. The log is:

MSI (s) (60:84) [17:46:47:028]: Machine policy value 'AlwaysInstallElevated' is 0
MSI (s) (60:84) [17:46:47:028]: User policy value 'AlwaysInstallElevated' is 0
MSI (s) (60:84) [17:46:47:028]: Using cached product context: machine assigned 
for product: FF01F0D58705B3A4EBBC07DB4FF537FC
MSI (s) (60:84) [17:46:47:028]: Product {5D0F10FF-5078-4A3B-BECB-70BDF45F73CF} 
is admin assigned: LocalSystem owns the publish key.
MSI (s) (60:84) [17:46:47:028]: Product {5D0F10FF-5078-4A3B-BECB-70BDF45F73CF} 
is managed.
MSI (s) (60:84) [17:46:47:028]: Running product 
'{5D0F10FF-5078-4A3B-BECB-70BDF45F73CF}' with elevated privileges: Product is 
assigned.
MSI (s) (60:84) [17:46:47:028]: Machine policy value 'EnableUserControl' is 0
MSI (s) (60:84) [17:46:47:028]: PROPERTY CHANGE: Adding RestrictedUserControl 
property. Its value is '1'.
MSI (s) (60:84) [17:46:47:028]: Ignoring disallowed property REMOVEPARAMS


Thanks a lot,

Hao



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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