[WiX-users] Admin install + saving variables

2007-10-21 Thread RussGreen

I've built my WiX project using mondo and adding in a custom dialog and admin
UI sequence.

My custom dialog collects 2 paths 2 files on the users system. A database
and text file on the users network. These files are required by the
application and stored in the registry.

A version of the custom dialog is also in my adminUI.  What I want to do is
to be able to run and admin install and input the paths to these 2 files
(this works) but then when I run the MSI created during the admin install
the values still use the default values for a new install and not the values
input during the administrative installation.

I think I might need to create an MSI transform.mst during the admin install
to achieve this

How can I do this?  

Russ
-- 
View this message in context: 
http://www.nabble.com/Admin-install-%2B-saving-variables-tf4666295.html#a13329695
Sent from the wix-users mailing list archive at Nabble.com.


-
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] Command line parameters

2007-10-21 Thread RussGreen

I have 2 public properties in my MSI file.  Each property is set a default
value as well has a registrysearch to find a value..

e.g.

Property Id=MDBFULLPATH Value=C:\Program
Files\eProject\database\eProject - empty.mdb
  RegistrySearch Id=MDBPathRegistry Type=raw Root=HKLM
Key=Software\eProject Name=DataSource /
/Property

What I want to be able to do is pass in a value for this property from the
command line but that only works when RegistrySearch is commented out.

If the RegistrySeach returns a value then that should be used,
else the command line value should be used,
else the defautl Value should be used as a last resort.

Is this possible?

Russ
-- 
View this message in context: 
http://www.nabble.com/Command-line-parameters-tf4666532.html#a13330344
Sent from the wix-users mailing list archive at Nabble.com.


-
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


Re: [WiX-users] Command line parameters

2007-10-21 Thread Peter Marcu
You could use 3 different properties. One for the command line, one for the 
registrysearch, and one for the default. Then have two set property custom 
actions conditioned on whether or not the command line property is set or if 
the registrysearch property is set. If they are, then you would set the default 
property to that value using the custom action. You can order them in the order 
you need to in order to get the precedence you want. Then just use the default 
property everywhere else.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of RussGreen
Sent: Sunday, October 21, 2007 8:56 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Command line parameters


I have 2 public properties in my MSI file.  Each property is set a default
value as well has a registrysearch to find a value..

e.g.

Property Id=MDBFULLPATH Value=C:\Program
Files\eProject\database\eProject - empty.mdb
  RegistrySearch Id=MDBPathRegistry Type=raw Root=HKLM
Key=Software\eProject Name=DataSource /
/Property

What I want to be able to do is pass in a value for this property from the
command line but that only works when RegistrySearch is commented out.

If the RegistrySeach returns a value then that should be used,
else the command line value should be used,
else the defautl Value should be used as a last resort.

Is this possible?

Russ
--
View this message in context: 
http://www.nabble.com/Command-line-parameters-tf4666532.html#a13330344
Sent from the wix-users mailing list archive at Nabble.com.


-
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

-
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


Re: [WiX-users] Admin install + saving variables

2007-10-21 Thread Richard

In article [EMAIL PROTECTED],
RussGreen [EMAIL PROTECTED]  writes:

 A version of the custom dialog is also in my adminUI.  What I want to do is
 to be able to run and admin install and input the paths to these 2 files
 (this works) but then when I run the MSI created during the admin install
 the values still use the default values for a new install and not the values
 input during the administrative installation.

The administrative image will persist property changes, but if you
have custom actions or other code that re-initializes the properties
when you run the install, then the persisted values will be lost.

 I think I might need to create an MSI transform.mst during the admin install
 to achieve this

No, you don't need to do this.  Windows Installer does something like
that for you (exactly what it does is undocumented as you're not
supposed to care about the method used to implement the property
persistence).
-- 
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/

-
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


Re: [WiX-users] Command line parameters

2007-10-21 Thread Richard

In article [EMAIL PROTECTED],
RussGreen [EMAIL PROTECTED]  writes:

 What I want to be able to do is pass in a value for this property from the
 command line but that only works when RegistrySearch is commented out.

As Peter Marcu suggested, use a different property for the value
retrieved from the registry so that you can differentiate when the
value was set from the command-line and when the value needs to come
from the registry.
-- 
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/

-
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


Re: [WiX-users] Command line parameters

2007-10-21 Thread RussGreen

Ah so simple
-- 
View this message in context: 
http://www.nabble.com/Command-line-parameters-tf4666532.html#a13332073
Sent from the wix-users mailing list archive at Nabble.com.


-
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


Re: [WiX-users] For a commerical install - Wix 3.0 Vs Wix 2.0

2007-10-21 Thread Peter Marcu
WiX 3.0 is fairly stable at this point. Very few new features are being added 
and it is being used by some fairly large and complex installs already. It is 
also is more feature rich than 2.0, as well as having many bugs fixes that 
didn't make it into 2.0. As long as you are willing to update your wix binaries 
if something changes and update your sources to match the change (WixCop should 
help you with that), I would go with 3.0.

To summarize: There are many commercial installs out there already on WiX 3.0 
and it is fairly stable at this point.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Sunday, October 21, 2007 12:14 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] For a commerical install - Wix 3.0 Vs Wix 2.0

I am trying to figure out if Wix 2.0 is better then Wix 3.0 for a client's 
commerical product installation that I am trying to migrate out of 
InstallShield 9.0.  Even though 2.0 is the stable version, I have had some 
problems with the latest downloads 2.0.5325.0, e.g. missing .wixobj files etc.  
I can't even build the source downloads.  The make.bat calls NMAKE, not NANT.

Rather than upgrading InstallShield from 9 to the latest, I have been 
experimenting with Wix, as I have not been to impressed with InstallShield.  I 
current use the the basic install format, using C++ as opposed to 
InstallScript for CA's.

Thank you:
Aris Green

-
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

-
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] Wix CA

2007-10-21 Thread Harini Gurusamy

 I am using WIX 2.0. I am trying to call an executable as part of my install. 
The EXE file is one of the installed files.

But after the install , the EXE is never getting executed. Any pointers ??


My code snippet looks like

InstallExecuteSequence
  Custom Action='LaunchFile' After='InstallFiles'NOT Installed/Custom
/InstallExecuteSequence

CustomAction Id =LaunchFile Property=QtExecCmdLine 
Value='[Sourcedir]foo.exe' Return=check /

**I tried InstallFinalize , still doesn't work


Thanks
Harini

-
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


Re: [WiX-users] Wix CA

2007-10-21 Thread Harini Gurusamy
Thanks for the quick help..

I tried this approach of using FileKey and doesn't work. Do I need the second 
step even if I am using execommand ??
Whats missing here


InstallExecuteSequence
  Custom Action='LaunchFile' After='InstallFinalize'NOT Installed/Custom
/InstallExecuteSequence


 CustomAction Id='LaunchFile'  return='check' FileKey='foo.exe'  ExeCommand='' 
/ 

From: John Vottero [ma I   ilto:[EMAIL PROTECTED]
Sent: Sunday, October 21, 2007 7:03 PM
To: Harini Gurusamy; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] Wix CA

It's a two step process, you have to set the property with the command you want 
to execute and then you have to execute the command.  Your custom action sets 
the property.  I'm not sure if the [SourceDir] reference will work or not, you 
can just use the file ID with a #, like this:

CustomAction
Id=SetLoadDB
Property=LoadDB

Value=quot;[#JAMSDBAEXE]quot; LOAD/UI=[UILevel]/

After that, you need to execute the command like this:

CustomAction
Id=LoadDB
BinaryKey=wixca
DllEntry=CAQuietExec
Execute=deferred
Impersonate=yes
Return=check/
Binary Id=wixca 
SourceFile=..\ExternalReferences\wixca.dll/


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harini Gurusamy
Sent: Sunday, October 21, 2007 8:47 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Wix CA


 I am using WIX 2.0. I am trying to call an executable as part of my install. 
The EXE file is one of the installed files.

But after the install , the EXE is never getting executed. Any pointers ??


My code snippet looks like

InstallExecuteSequence
  Custom Action='LaunchFile' After='InstallFiles'NOT Installed/Custom
/InstallExecuteSequence

CustomAction Id =LaunchFile Property=QtExecCmdLine 
Value='[Sourcedir]foo.exe' Return=check /

**I tried InstallFinalize , still doesn't work


Thanks
Harini

-
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


Re: [WiX-users] Wix CA

2007-10-21 Thread John Vottero
What's missing is:

 

CustomAction 

Id=LaunchFile 

BinaryKey=wixca 

DllEntry=CAQuietExec 

Execute=deferred 

Impersonate=yes 

Return=check/

Binary Id=wixca
SourceFile=..\ExternalReferences\wixca.dll/

 

And the scheduling of that CA.

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Harini
Gurusamy
Sent: Sunday, October 21, 2007 10:18 PM
To: John Vottero; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Wix CA

 

Thanks for the quick help..

 

I tried this approach of using FileKey and doesn't work. Do I need the
second step even if I am using execommand ??

Whats missing here

 

 

InstallExecuteSequence

  Custom Action='LaunchFile' After='InstallFinalize'NOT
Installed/Custom

/InstallExecuteSequence

 

 

 CustomAction Id='LaunchFile'  return='check' FileKey='foo.exe'
ExeCommand='' / 

 

From: John Vottero [ma I   ilto:[EMAIL PROTECTED] 
Sent: Sunday, October 21, 2007 7:03 PM
To: Harini Gurusamy; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] Wix CA

 

It's a two step process, you have to set the property with the command
you want to execute and then you have to execute the command.  Your
custom action sets the property.  I'm not sure if the [SourceDir]
reference will work or not, you can just use the file ID with a #, like
this:

 

CustomAction 

Id=SetLoadDB 

Property=LoadDB

 
Value=quot;[#JAMSDBAEXE]quot; LOAD/UI=[UILevel]/

 

After that, you need to execute the command like this:

 

CustomAction 

Id=LoadDB 

BinaryKey=wixca 

DllEntry=CAQuietExec 

Execute=deferred 

Impersonate=yes 

Return=check/

Binary Id=wixca
SourceFile=..\ExternalReferences\wixca.dll/

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Harini
Gurusamy
Sent: Sunday, October 21, 2007 8:47 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Wix CA

 

 

 I am using WIX 2.0. I am trying to call an executable as part of my
install. The EXE file is one of the installed files.

 

But after the install , the EXE is never getting executed. Any pointers
??

 

 

My code snippet looks like

 

InstallExecuteSequence

  Custom Action='LaunchFile' After='InstallFiles'NOT
Installed/Custom

/InstallExecuteSequence

 

CustomAction Id =LaunchFile Property=QtExecCmdLine
Value='[Sourcedir]foo.exe' Return=check /

 

**I tried InstallFinalize , still doesn't work

 

 

Thanks

Harini

 

-
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] FileSearch not working for minor version?

2007-10-21 Thread Nitin
Hi,

 

I am having trouble with detecting if a file is installed, I am using the
following code, however it seems that WIX sets the property even if
MinVersion is 7.10.3191.0



Property Id=KB907417INSTALLED

  DirectorySearch Id=OfficeFolder Path=[XLSPROGPATH] Depth=1

FileSearch Id=OtkloadrFile Name=Otkloadr.dll
MinVersion=7.10.5077.0 /

  /DirectorySearch

/Property

 

Something wrong at my end?

 

Thanks,

Nitin

-
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] Problem in WIX

2007-10-21 Thread Deepak Krishna
I need help in the following scenarios in wix.

1.   How to use two binary file in a single custom Action in WIX?

2.   How to pass a binary file as a input parameter to a vbscript custom 
Action which will be invoked by another binary file?

3.   How to delete unwanted files after the installation is over?

4.   How to use DriverDeleteFiles option in the Component Tag?

5.   How to execute custom action 'msicleanuponsuccess' for cleaning any 
component which is not a driver ?

Regards
Deepak Krishna

-
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


Re: [WiX-users] Wix CA

2007-10-21 Thread Harini Gurusamy
Still My catsign.exe is not executed. I tried 
(SourceFile=c:\windows\system32\catsign.exe ) also


InstallExecuteSequence
  Custom Action='Launchfile' After='InstallFinalize'NOT Installed/Custom
/InstallExecuteSequence


CustomAction Id =Launchfile Return=check FileKey=catsign.exe 
ExeCommand= /


CustomAction Id=LaunchFile BinaryKey=wixca DllEntry=CAQuietExec
Execute=deferred
Impersonate=yes
Return=check/
Binary Id=wixca SourceFile=catsign.exe/

From: John Vottero [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 21, 2007 9:22 PM
To: Harini Gurusamy; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] Wix CA

What's missing is:

CustomAction
Id=LaunchFile
BinaryKey=wixca
DllEntry=CAQuietExec
Execute=deferred
Impersonate=yes
Return=check/
Binary Id=wixca 
SourceFile=..\ExternalReferences\wixca.dll/

And the scheduling of that CA.


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harini Gurusamy
Sent: Sunday, October 21, 2007 10:18 PM
To: John Vottero; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Wix CA

Thanks for the quick help..

I tried this approach of using FileKey and doesn't work. Do I need the second 
step even if I am using execommand ??
Whats missing here


InstallExecuteSequence
  Custom Action='LaunchFile' After='InstallFinalize'NOT Installed/Custom
/InstallExecuteSequence


 CustomAction Id='LaunchFile'  return='check' FileKey='foo.exe'  ExeCommand='' 
/ 

From: John Vottero [ma I   ilto:[EMAIL PROTECTED]
Sent: Sunday, October 21, 2007 7:03 PM
To: Harini Gurusamy; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] Wix CA

It's a two step process, you have to set the property with the command you want 
to execute and then you have to execute the command.  Your custom action sets 
the property.  I'm not sure if the [SourceDir] reference will work or not, you 
can just use the file ID with a #, like this:

CustomAction
Id=SetLoadDB
Property=LoadDB

Value=quot;[#JAMSDBAEXE]quot; LOAD/UI=[UILevel]/

After that, you need to execute the command like this:

CustomAction
Id=LoadDB
BinaryKey=wixca
DllEntry=CAQuietExec
Execute=deferred
Impersonate=yes
Return=check/
Binary Id=wixca 
SourceFile=..\ExternalReferences\wixca.dll/


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harini Gurusamy
Sent: Sunday, October 21, 2007 8:47 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Wix CA


 I am using WIX 2.0. I am trying to call an executable as part of my install. 
The EXE file is one of the installed files.

But after the install , the EXE is never getting executed. Any pointers ??


My code snippet looks like

InstallExecuteSequence
  Custom Action='LaunchFile' After='InstallFiles'NOT Installed/Custom
/InstallExecuteSequence

CustomAction Id =LaunchFile Property=QtExecCmdLine 
Value='[Sourcedir]foo.exe' Return=check /

**I tried InstallFinalize , still doesn't work


Thanks
Harini

-
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