Re: [WiX-users] Parsing properties

2008-07-01 Thread Nitin Chaudhari
String manipulation is not supported in WIX, you will have to write a
C++/.net/vbs custom action to get substring.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Frédéric
Viollet
Sent: Tuesday, July 01, 2008 3:41 PM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Parsing properties

Hi everyone,

Let's say that I have a registry key HKLM\Software\MyProduct with a String
value TheDir = c:\program files\My product\module

I can easily get the value by using a RegistrySearch:

Property Id=MYPROP
 RegistrySearch Id=MYPROP Type=directory Root=HKLM 
Key=Software\MyProduct Name=TheDir / /Property


Here's the question: :)
Is there a way to extract a substring from the retrieved value i.e. The
value in the registry is c:\program files\My product\module, and I would
like to set MYPROP to c:\program files\My product (get rid of the trailing
module)

Thanks for your help.

Fred



DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Is msi being executed with Runas?

2008-03-26 Thread Nitin Chaudhari
How can i determine if my setup program was invoked using runas option?

In most of the cases, my setup is given to a user who does not have
admin rights, so an administrator does a runas to install the program,
which means all HKCU settings go to that admin and not to the user.

If it is possible to determine if the process was executed with runas
then I will be able to handle the situation better.

Is there a standard way to handle such scenarios?

Thanks,
Nitin

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


[WiX-users] executing CA with logged on user not runas user

2008-03-11 Thread Nitin Chaudhari
Hi,

In my scenario, most of the time the user who wants to install does
not have administrator priviledges, so an Administrator does a runas
and executes the setup for the user, when setup completes it launches
excel.exe, however the username for this process is administrator and
not the original logged in user.

Could this be a security risk? Any idea how to launch it as logged in
user? I tried the impersonate property, but it doesnt help.

Thanks in advance,
Nitin.

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


[WiX-users] FilePath manipulation in WIX

2007-10-19 Thread Nitin Chaudhari
Hi,

 

I can do a registrysearch and obtain a path like : D:\Program
Files\Microsoft Office\OFFICE11\ADDINS\OTKLOADR.DLL

 

Once I have this path I want to split it in directory (D:\Program
Files\Microsoft Office\OFFICE11\ADDINS) and file (OTKLOADR.DLL) and then use
it in directorysearch and filesearch to finally see if the given dll has the
required version.

 

Any idea how to do this.

 

Thanks,

Nitin.


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.
-
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] How to add newline in Condition message

2007-10-18 Thread Nitin Chaudhari
I got the answer you have to write it like this

Condition Message=You do not have#xD;#xA;Admin Rights

#xD;#xA; represents CRLF

Thanks,
Nitin

-Original Message-
From: Stefan Pavlik [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 18, 2007 11:09 AM
To: Nitin Chaudhari
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] How to add newline in Condition message

Hi

WiX does not directly support this.

But you can create the Public Property from Custom Action (e.g.
CRLF) and this property will contain the new line sequence \r\n.
After that you can write your message in the following way:


Condition Message=Not Admin [CRLF] don't have 2.0(NOT
Priviledged) AND MsiNetAssemblySupport lt;= 2.0.50727/Condition


BTW: It would be nice if WiX could generate such PublicProperty
during creation of MSI package...

regards

Stefan



Nitin Chaudhari wrote:
 Hi,
 
  
 
 I tried the following, but it doesn't work
 
  
 
 Condition Message=Not Admin \n\r don't have 2.0(NOT Priviledged) AND
 MsiNetAssemblySupport lt;= 2.0.50727/Condition
 
  
 
 How to display message in multiple lines.
 
  
 
 Thanks,
 
 Nitin
 
  
 
 DISCLAIMER == This e-mail may contain privileged and
 confidential information which is the property of Persistent Systems
 Ltd. It is intended only for the use of the individual or entity to
 which it is addressed. If you are not the intended recipient, you are
 not authorized to read, retain, copy, print, distribute or use this
 message. If you have received this communication in error, please notify
 the sender and delete all copies of this message. Persistent Systems
 Ltd. does not accept any liability for virus infected mails.
 
 
 
 
 -
 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

-- 
Stefan Pavlik | [EMAIL PROTECTED]
Whitestein Technologies s.r.o. | www.whitestein.com
Panenska 28 | 811 03 Bratislava | Slovak Republic
Main +421 2 5443-5502 | Direct +421 2 5930-0735


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.

-
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] RegistrySearch with empty registrykeys

2007-10-18 Thread Nitin Chaudhari
Hi,

 

I want to check if a Key exists, it may or may not have any values or
subkeys in it, so I tried the following

 

RegistrySearch Id=ExcelExistsRegistry Type=raw Root=HKLM
Key=SOFTWARE\Microsoft\Office\Excel\

 

I am including the Name attribute since I don't want to check for anything..
I just want to confirm that the path SOFTWARE\Microsoft\Office\Excel\
exists, how can I do that?

 

I tried Name=(Default) it does not work

 

Thanks,

Nitin.

 


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.
-
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] Dialog disappearing instantly

2007-10-17 Thread Nitin Chaudhari
Hi,

 

I have the following in UI sequence

 

Show Dialog=PrereqCheck After=CostFinalize![CDATA[Installed= AND
NOT RESUME]]/Show

Show Dialog=Installing After=PrereqCheck![CDATA[Installed= AND NOT
RESUME]]/Show

 

Now the problem is I can see the PrereqCheck dialog, but it instantly
disappears and the Installing dialog is shown. Is there any way I can block
the Installing dialog and force the user to do some action in PrereqCheck
dialog?

 

Thanks,

Nitin


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.
-
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] How to add newline in Condition message

2007-10-17 Thread Nitin Chaudhari
Hi,

 

I tried the following, but it doesn't work

 

Condition Message=Not Admin \n\r don't have 2.0(NOT Priviledged) AND
MsiNetAssemblySupport lt;= 2.0.50727/Condition

 

How to display message in multiple lines.

 

Thanks,

Nitin

 


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.
-
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] NOT PRIVILEDGED Condition

2007-10-16 Thread Nitin Chaudhari
Hi,

 

I created a default Limited user account in windows XP and my wxs has
Condition Message=You need to be Administrator to install this
add-in.NOT PRIVILEDGED/Condition

Inspite of this, when I start installing, it does not prompt, and then when
my the msi tried to access HKCR it throws error

 

Msiexec log is as follows :

 

MSI (s) (20:60) [18:00:52:378]: Skipping AppSearch action: already done on
client side

Action ended 18:00:52: AppSearch. Return value 0.

MSI (s) (20:60) [18:00:52:378]: Doing action: LaunchConditions

MSI (s) (20:60) [18:00:52:378]: Note: 1: 2205 2:  3: ActionText 

Action start 18:00:52: LaunchConditions.

Action ended 18:00:52: LaunchConditions. Return value 1.

MSI (s) (20:60) [18:00:52:378]: Doing action: FindRelatedProducts

 

Am I missing something here?

 

- Nitin


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.

-
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] error dialog issue

2007-05-30 Thread Nitin Chaudhari
By sync i ment, how can I execute tasks by order.
Can I ensure that dialog in InstallUISequence is shown only after some
custom actions in InstallExecuteSequence are executed.

Thanks,
Nitin

On 5/30/07, Bob Arnson [EMAIL PROTECTED] wrote:
 Nitin Chaudhari wrote:
  Although the Pushbutton is place at X=278 and the form is of width
  370, it still appears center of the dialog (screenshot attached). How
  can I place it at the co-ordinates I want?

 You can't; MSI automatically shows and hides the buttons you define and
 redistributes the visible buttons. See Error Dialog in the MSI SDK doc.

  Also, the installation starts with the Installing dialog (from
  InstallUISequence) and then I get this error dialog
  (CA_ErrExcelNotInstalled from InstallExecuteSequence).
 
  How can I sync these two?

 Not sure what you mean. Sync how?

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




-
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


[WiX-users] error dialog issue

2007-05-29 Thread Nitin Chaudhari

Hi,

My Error Dialog is as follows:

 Dialog Id =ErrorDialog Width=370  Height= 100 Title=
[ProductName] ErrorDialog =yes

   Control Type =Text  Width= 123 Height= 17 X =20 Y
=10 Id =text1

 Text ![CDATA[{\VSI_Arial16.0_1_0}Install Unsucessful! ]]/ Text

   /Control 

   Control Type =Text  Width= 299 Height= 9 X =10 Y
=30 Id =text2 Text=The [ProductName] could not be installed. 

   /Control 

   Control Id =ErrorText  Type= Text X= 10 Y =42 Width
=351 Height =22 Disabled=yes TabSkip=no 

 Text ![CDATA[{\VSI_MS_Sans_Serif13.0_0_0} ]]/ Text

   /Control 

   Control Id =O  Type= PushButton X= 278 Y =70 Width
=50 Height =21 TabSkip=yes 

 Text ![CDATA[{\VSI_MS_Sans_Serif13.0_0_0}Finish ]]/ Text

 Publish Event =EndDialog  Value= ErrorOk![CDATA[]]/Publish 

   /Control 

 /Dialog 

Although the Pushbutton is place at X=278 and the form is of width
370, it still appears center of the dialog (screenshot attached). How
can I place it at the co-ordinates I want?

Also, the installation starts with the Installing dialog (from
InstallUISequence) and then I get this error dialog
(CA_ErrExcelNotInstalled from InstallExecuteSequence).

How can I sync these two? Now the situation is that I have 2 msiexec
process running on my machine, and when I click Finish – for error
dialog, 1 msiexec proc ends, but the other stays, and sometimes I get
a msg saying that an installation is in progress.


I want to execute the custom actions and then if they don't return
error, I want to start with the installing dialog.

I don't want to use launch conditions coz I read somewhere that they
cause issues sometimes.

Installexecutesequence and install UI sequence tags are as follows:

InstallExecuteSequence 

 RemoveExistingProducts After =InstallInitialize  /

 Custom Action =CA_ErrNetfx20NotInstalled Before=AppSearch
![CDATA[NOT NETFX20INSTALLED AND NOT Installed ]]/Custom

 Custom Action =CA_ErrExcelNotInstalled
After=CA_ErrNetfx20NotInstalled ![CDATA[NOT EXCELINSTALLED AND NOT
Installed ]]/Custom

 Custom Action =ERRCA_CANCELNEWERVERSION
After=FindRelatedProducts ![CDATA[NEWERPRODUCTFOUND AND NOT
Installed ]]/Custom

 Custom Action =DIRCA_TARGETDIR After=ValidateProductID
![CDATA[TARGETDIR= ]]/Custom

 Custom Action =_31B4161E_1E1D_4118_A9E2_86C9C0C0552F  After=
MsiUnpublishAssemblies![CDATA[$C__33E085E0E309407B9EFDF83DFCE86522=2
]]/Custom

   /InstallExecuteSequence 



 InstallUISequence 

   Custom Action =ERRCA_UIANDADVERTISED Before=AppSearch
![CDATA[ProductState=1]]/ Custom

   Custom Action =VSDCA_FolderForm_AllUsers
After=IsolateComponents ![CDATA[Installed= AND NOT RESUME AND
ALLUSERS=1 ]]/Custom

   Show Dialog =UserExitForm OnExit=cancel  /

   Custom Action =DIRCA_TARGETDIR After=ValidateProductID
![CDATA[TARGETDIR= ]]/Custom

   Show Dialog =Complete OnExit=success /

   Show Dialog =Installing After=CostFinalize
![CDATA[Installed= AND NOT RESUME ]]/Show

   Custom Action =GEN_XLS_PATH After=CostFinalize  /

 /InstallUISequence 


Thanks,
Nitin
attachment: image001.jpg-
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


[WiX-users] changing setup at runtime

2007-04-20 Thread Nitin Chaudhari

Hi,

I need to add some information to my setup at runtime. So that every user
who downloads the setup, get a unique setup. Basically I need to embedded a
GUID in the setup, and when it runs, I want to write this guid to registry
or some file. Any pointers on how to achieve this.

I heard about changing resources in the setup at runtime... or maybe
updating property in MSI. I can either put this guid in the bootstrapper (
setup.exe) or MSI

What do u guys think?

- Nitin
-
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


Re: [WiX-users] Run button Vs Install Button

2007-04-17 Thread Nitin Chaudhari

If I deploy some application through click once then i do get Install/Dont
Install Dialog. Whats happening there? The browser used is same.

So there has to be something based on which browser interprets the file.

- Nitin



On 4/16/07, Bob Arnson [EMAIL PROTECTED] wrote:


Nitin Chaudhari wrote:
 Any idea how I can change it to

 1. Click Link
 2. Install / Dont Install Dialog (Dialog having Install and Dont
 Install buttons on it

That's entirely up to the browser, not your MSI package. Most browsers
rightly consider .MSI files to be executable.

--
sig://boB
http://bobs.org



-
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


[WiX-users] Run button Vs Install Button

2007-04-15 Thread Nitin Chaudhari

Hi,

This may be a little outside wix, but I dont know the related mailing list,
so I am posting it here.

I used Wix and created a setup. Now, I want my users to download it from a
website, so I have provided a link to my msi. However the user experience is
as follows :

1. Click Link
2. Open, Save, Cancel Dialog
3. Click Open
4. Run / Dont Run Dialog (Dialog having Run and Dont Run buttons on it)

Any idea how I can change it to

1. Click Link
2. Install / Dont Install Dialog (Dialog having Install and Dont Install
buttons on it

Thanks,
Nitin
-
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


Re: [WiX-users] install as standard user

2007-04-10 Thread Nitin Chaudhari

I cant touch ProgramFilesFolder??, then how come a visual studio setup runs
fine (as standard user) even when installing to ProgramFilesFolder?

On 4/9/07, Bob Arnson [EMAIL PROTECTED] wrote:


Nitin Chaudhari wrote:
 For some reason my installation currently requires administrative
 priviledges. I want to pull that down to standard user. Are there any
 checks I should be doing? I want to find out what is forcing my
 installation to ask for admin.

Your setup can't touch any per-machine location (ProgramFilesFolder,
HKLM, etc.). On Vista, you need to explicitly mark a package as per-user
(Package/@InstallPrivileges).

--
sig://boB
http://bobs.org



-
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.phpp=sourceforgeCID=DEVDEV___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Changing property value at runtime SOLVED

2007-04-10 Thread Nitin Chaudhari

Thanks Bob,

As you said, I added the custom action in InstallUISequence, and now it is
working :)

 Show Dialog=Installing After=CostFinalize /
 Custom Action=GEN_XLS_PATH After=CostFinalize /
 Show Dialog=Complete OnExit=success /
   /InstallUISequence

The log shows the following :

Action ended 21:02:02: CostFinalize. Return value 1.
MSI (c) (00:48) [21:02:02:458]: Doing action: Installing
MSI (c) (00:48) [21:02:02:458]: Note: 1: 2205 2:  3: ActionText
Action 21:02:02: Installing.
Action start 21:02:02: Installing.
MSI (c) (00:E0) [21:02:02:474]: Note: 1: 2205 2:  3: Error
MSI (c) (00:E0) [21:02:02:474]: Note: 1: 2228 2:  3: Error 4: SELECT
`Message` FROM `Error` WHERE `Error` = 2898
Info 2898. DefaultUIFontStyle, MS Sans Serif, 1
MSI (c) (00:E0) [21:02:02:474]: Note: 1: 2205 2:  3: Error
MSI (c) (00:E0) [21:02:02:474]: Note: 1: 2228 2:  3: Error 4: SELECT
`Message` FROM `Error` WHERE `Error` = 2898
Info 2898. VSI_Arial16.0_1_0, Arial, 1
Action 21:02:02: Installing. Dialog created
Action ended 21:02:02: Installing. Return value 1.
MSI (c) (00:48) [21:02:02:505]: Doing action: GEN_XLS_PATH
MSI (c) (00:48) [21:02:02:505]: Note: 1: 2205 2:  3: ActionText
Action 21:02:02: GEN_XLS_PATH.
Action start 21:02:02: GEN_XLS_PATH.
*MSI (c) (00:48) [21:02:02:505]: PROPERTY CHANGE: Modifying EXCELPROGRAM
property. Its current value is 'C:\Program Files\Microsoft
Office\OFFICE11\EXCEL.EXE'. Its new value: 'D:\Program Files\Microsoft
Office\OFFICE11\Excel.exe'.
*Action ended 21:02:02: GEN_XLS_PATH. Return value 1.

Finally the property is changed at client side.. :)

- Nitin

On 4/9/07, Bob Arnson [EMAIL PROTECTED] wrote:


Nitin Chaudhari wrote:
 I have still not found any solution to the following problem, I tried
 using a C++ custom action DLL, but even that changes the server side
 property. Please give me some information at least... so that I can
 think of some workarounds.

Schedule the setter CA in InstallUISequence. If it's only used in the
exit dialog, it doesn't need to be scheduled in InstallExecuteSequence.

--
sig://boB
http://bobs.org



-
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.phpp=sourceforgeCID=DEVDEV___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Changing property value at runtime

2007-04-09 Thread Nitin Chaudhari

Hi,

I have still not found any solution to the following problem, I tried using
a C++ custom action DLL, but even that changes the server side property.
Please give me some information at least... so that I can think of some
workarounds.

- Nitin Chaudhari

On 4/2/07, Nitin Chaudhari [EMAIL PROTECTED] wrote:


okay, I think my issue is concerned only with 2 actions.

CA which sets the property : executed after LaunchConditions
CA which uses the property : executed after OnExit
basically OnExit (in InstallUISequence) I show a dialog, this dialog has
a Finish button, and the finish button publishes an event which calls the
CA.

Should I cascade the 2 CAs so that

OnExit - show dialog - click Finish - event - CA to set property (CA1)
and in InstallExecuteSequence I execute 2nd CA with After property set to
CA1

will that work?

- Nitin



On 4/2/07, Rob Mensching [EMAIL PROTECTED] wrote:

  No, but it depends on where all the other action are scheduled.



 *From:* [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] *On Behalf Of *Nitin Chaudhari
 *Sent:* Monday, April 02, 2007 7:09 AM
 *To:* wix-users@lists.sourceforge.net
 *Subject:* Re: [WiX-users] Changing property value at runtime



 I knew that (S) and (C) had something to do with it :)

 My custom action is at the end of the installsequence




   Custom Action=GEN_XLS_PATH After=LaunchConditions/
 /InstallExecuteSequence


 Something wrong with that?



 Thanks for quick replies,

 - Nitin


 On 4/2/07, *Rob Mensching* [EMAIL PROTECTED] wrote:

 Notice the (s) and the (c).  It appears you changed the property on the
 server side of the Windows Installer and used the Property on the client
 side of the install.  Where did you sequence your actions ( i.e. where
 did you put the Custom elements)?



 *From:* [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] *On Behalf Of *Nitin Chaudhari
 *Sent:* Monday, April 02, 2007 1:46 AM
 *To:* wix-users@lists.sourceforge.net
 *Subject:* [WiX-users] Changing property value at runtime



 Someone please help me with the following issue?



 I have this property :  Property Id =EXCEL_PROGRAM Value =DUMMY.EXE
 /

 And this Custom action which sets the above property

  CustomAction Id =GEN_XLS_PATH Return =check Property=
 EXCEL_PROGRAM Value=[XLSPROGPATH]Excel.exe/ CustomAction 

 There is another custom action which uses the above property

  CustomAction Id =LaunchExcel Property =EXCEL_PROGRAM ExeCommand=
   Return=asyncNoWait /



 The installation log shows the following:



 …

 …

 …

 Action start 19:08:22: LaunchConditions.

 Action ended 19:08:22: LaunchConditions. Return value 1.

 MSI (s) (48:C4) [19:08:22:819]: Doing action: GEN_XLS_PATH

 MSI (s) (48:C4) [19:08:22:819]: Note: 1: 2205 2:  3: ActionText

 Action 19:08:22: GEN_XLS_PATH.

 Action start 19:08:22: GEN_XLS_PATH.

 MSI (s) (48:C4) [19:08:22:819]: *PROPERTY CHANGE: Modifying
 EXCEL_PROGRAM property. Its current value is 'DUMMY.EXE '. Its new
 value: 'D:\Program Files\Microsoft Office\OFFICE11\Excel.exe'. *

 Action ended 19:08:22: GEN_XLS_PATH. Return value 1.

 MSI (s) (48:C4) [19:08:22:834]: Doing action: FindRelatedProducts

 …

 …

 …

 MSI (c) (B8:28) [19:08:36:835]: Doing action: LaunchExcel

 MSI (c) (B8:28) [19:08:36:850]: Note: 1: 2205 2:  3: ActionText

 Action 19:08:36: LaunchExcel.

 Action start 19:08:36: LaunchExcel.

 Action ended 19:08:36: Complete. Return value 1.

 Action ended 19:08:36: INSTALL. Return value 1.

 Action ended 19:08:36: LaunchExcel. Return value 1631.

 Property(C): INSTALLDIR = C:\Program Files\***\Addin\

 Property(C): *EXCEL_PROGRAM = DUMMY.EXE*

 Property(C): TARGETDIR = F:\

 …

 …



 The property was changed, but still while executing LaunchExcel it is
 being shown as DUMMY.EXE



 Any idea what is going wrong here?



 Thanks,

 Nitin Chaudhari







-
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.phpp=sourceforgeCID=DEVDEV___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] install as standard user

2007-04-08 Thread Nitin Chaudhari

Hi,

For some reason my installation currently requires administrative
priviledges. I want to pull that down to standard user. Are there any checks
I should be doing? I want to find out what is forcing my installation to ask
for admin.

- Nitin
-
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.phpp=sourceforgeCID=DEVDEV___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] dot Net Custom actions

2007-04-06 Thread Nitin Chaudhari

You can run dot net code during installation, although there are some reason
why you should not. I have been executing .net code in my installation for
quite a while now

Anyways here how to do it :

Include the following

Binary Id=InstallUtil SourceFile=$(env.windir
)\Microsoft.NET\Framework\v2.0.50727\InstallUtilLib.dll /

Binary Id=MSVBDPCADLL src=Binary\MSVBDPCADLL.ibd /

Binary Id=VSDNETCFG src=Binary\VSDNETCFG.ibd /

In a class library project, add a installer class. Check out
http://go.microsoft.com/fwlink/?linkid=83721 for example the msi contains
SetSecurity project, this is used to added custom code.

Now add the following in installexecutesequence


Custom Action=InstallSetProp After=StartServices$HelperLibrarygt;2/
Custom

Custom Action=Install After=InstallSetProp$HelperLibrarygt;2/Custom
So, once installation starts, it the first CA sets up parameters required
for the .net function we want to call
and the 2nd CA calls the .net function

The CA will be written as follows - change the InstallSetProperty's Value as
required.

CustomAction Id=Install BinaryKey=InstallUtil DllEntry=ManagedInstall
Execute=deferred /

CustomAction Id=InstallSetProp Property=Install
Value='/installtype=notransaction
/action=install /LogFile= /solutionCodeGroupName=***
/solutionCodeGroupDescription=quot;Code group for ***quot; /tDir=quot;
[TARGETDIR]\quot; /assemblyName=SharedLibrary.dll
/assemblyCodeGroupName=SL /assemblyCodeGroupDescription=Code group for
SL [#InstallerFile] [#ConfigFile]' /

I hope this helps.
- Nitin

On 4/6/07, Igor Lemsky [EMAIL PROTECTED] wrote:


I need to launch some .net code during installation. Which possibilities
do I have? As I hear there are problems with .net custom actions in Windows
Installer.
So I cant add my .net assembly exe into the product as file or binary
stream and use one of the custom actions types to launch it?
Only way to launch from other custom action script like VBS or native dll
(c++)?

-
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.phpp=sourceforgeCID=DEVDEV
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-
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.phpp=sourceforgeCID=DEVDEV___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] RegistrySearch??

2007-04-02 Thread Nitin Chaudhari

In one of my registry keys the system has following strings

OPEN REG_SZvalue
OPEN1REG_SZvalue1
OPEN2REG_SZvalue 2

now how do i find out that the next name should be OPEN3?
On target machine, there may be OPENn (n could be any number) how can i
derive OPENn+1

Thanks,
Nitin
-
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.phpp=sourceforgeCID=DEVDEV___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Changing property value at runtime

2007-04-02 Thread Nitin Chaudhari

Someone please help me with the following issue?



I have this property : Property Id=EXCEL_PROGRAM Value=DUMMY.EXE/

And this Custom action which sets the above property

CustomAction Id=GEN_XLS_PATH Return=check Property=EXCEL_PROGRAM
Value=[XLSPROGPATH]Excel.exe/CustomAction

There is another custom action which uses the above property

CustomAction Id=LaunchExcel Property=EXCEL_PROGRAM ExeCommand= Return
=asyncNoWait /



The installation log shows the following:



…

…

…

Action start 19:08:22: LaunchConditions.

Action ended 19:08:22: LaunchConditions. Return value 1.

MSI (s) (48:C4) [19:08:22:819]: Doing action: GEN_XLS_PATH

MSI (s) (48:C4) [19:08:22:819]: Note: 1: 2205 2:  3: ActionText

Action 19:08:22: GEN_XLS_PATH.

Action start 19:08:22: GEN_XLS_PATH.

MSI (s) (48:C4) [19:08:22:819]: *PROPERTY CHANGE: Modifying EXCEL_PROGRAM
property. Its current value is 'DUMMY.EXE'. Its new value: 'D:\Program
Files\Microsoft Office\OFFICE11\Excel.exe'.*

Action ended 19:08:22: GEN_XLS_PATH. Return value 1.

MSI (s) (48:C4) [19:08:22:834]: Doing action: FindRelatedProducts

…

…

…

MSI (c) (B8:28) [19:08:36:835]: Doing action: LaunchExcel

MSI (c) (B8:28) [19:08:36:850]: Note: 1: 2205 2:  3: ActionText

Action 19:08:36: LaunchExcel.

Action start 19:08:36: LaunchExcel.

Action ended 19:08:36: Complete. Return value 1.

Action ended 19:08:36: INSTALL. Return value 1.

Action ended 19:08:36: LaunchExcel. Return value 1631.

Property(C): INSTALLDIR = C:\Program Files\***\Addin\

Property(C): *EXCEL_PROGRAM = DUMMY.EXE*

Property(C): TARGETDIR = F:\

…

…



The property was changed, but still while executing LaunchExcel it is being
shown as DUMMY.EXE



Any idea what is going wrong here?



Thanks,

Nitin Chaudhari
-
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.phpp=sourceforgeCID=DEVDEV___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Changing property value at runtime

2007-04-02 Thread Nitin Chaudhari

I knew that (S) and (C) had something to do with it :)
My custom action is at the end of the installsequence


 Custom Action=GEN_XLS_PATH After=LaunchConditions/
   /InstallExecuteSequence

Something wrong with that?

Thanks for quick replies,
- Nitin

On 4/2/07, Rob Mensching [EMAIL PROTECTED] wrote:


 Notice the (s) and the (c).  It appears you changed the property on the
server side of the Windows Installer and used the Property on the client
side of the install.  Where did you sequence your actions (i.e. where did
you put the Custom elements)?



*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *Nitin Chaudhari
*Sent:* Monday, April 02, 2007 1:46 AM
*To:* wix-users@lists.sourceforge.net
*Subject:* [WiX-users] Changing property value at runtime



Someone please help me with the following issue?



I have this property :  Property Id =EXCEL_PROGRAM Value =DUMMY.EXE/

And this Custom action which sets the above property

 CustomAction Id =GEN_XLS_PATH Return =check Property=EXCEL_PROGRAM
Value=[XLSPROGPATH]Excel.exe/ CustomAction

There is another custom action which uses the above property

 CustomAction Id =LaunchExcel Property =EXCEL_PROGRAM ExeCommand=
Return=asyncNoWait /



The installation log shows the following:



…

…

…

Action start 19:08:22: LaunchConditions.

Action ended 19:08:22: LaunchConditions. Return value 1.

MSI (s) (48:C4) [19:08:22:819]: Doing action: GEN_XLS_PATH

MSI (s) (48:C4) [19:08:22:819]: Note: 1: 2205 2:  3: ActionText

Action 19:08:22: GEN_XLS_PATH.

Action start 19:08:22: GEN_XLS_PATH.

MSI (s) (48:C4) [19:08:22:819]: *PROPERTY CHANGE: Modifying EXCEL_PROGRAM
property. Its current value is 'DUMMY.EXE '. Its new value: 'D:\Program
Files\Microsoft Office\OFFICE11\Excel.exe'.*

Action ended 19:08:22: GEN_XLS_PATH. Return value 1.

MSI (s) (48:C4) [19:08:22:834]: Doing action: FindRelatedProducts

…

…

…

MSI (c) (B8:28) [19:08:36:835]: Doing action: LaunchExcel

MSI (c) (B8:28) [19:08:36:850]: Note: 1: 2205 2:  3: ActionText

Action 19:08:36: LaunchExcel.

Action start 19:08:36: LaunchExcel.

Action ended 19:08:36: Complete. Return value 1.

Action ended 19:08:36: INSTALL. Return value 1.

Action ended 19:08:36: LaunchExcel. Return value 1631.

Property(C): INSTALLDIR = C:\Program Files\***\Addin\

Property(C): *EXCEL_PROGRAM = DUMMY.EXE*

Property(C): TARGETDIR = F:\

…

…



The property was changed, but still while executing LaunchExcel it is
being shown as DUMMY.EXE



Any idea what is going wrong here?



Thanks,

Nitin Chaudhari



-
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.phpp=sourceforgeCID=DEVDEV___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Change Add/Remove Programs icon

2007-04-02 Thread Nitin Chaudhari

I got the icon, I was using 32x32 icon, i replaced that with 16x16 pixels
icon and it works :)

On 3/27/07, Nitin Chaudhari [EMAIL PROTECTED] wrote:


No icons for me yet. I copied the 3 lines in my wxs and placed a .ico file
in the same place where I had wxs and set the SourceFile value as the
filename

Why dont I see any icons?


 On 3/26/07, Bob Whiton [EMAIL PROTECTED] wrote:

  Thanks for the responses.  I finally figured out how to do it with
 Rob's tip...

  !--Set the icon for the msi and Add/Remove programs--
  Icon Id='LinkedCells.exe'
 SourceFile='Installer\LinkedCells_16x16.ico'/
  Property Id=ARPPRODUCTICON Value=LinkedCells.exe /
  Property Id=ALLUSERS Value=1/

 A few things that first tripped me up:
 1.  The Id for the Icon element must end in '.exe' (i.e. LinkedCells.exe
 )
 2.  You must have an ARPRODUCTICON property with its value set to the Id
 in step 1 above
 3.  You must have the ALLUSERS property set to 1 in order for this to
 show up... see http://support.microsoft.com/kb/q258558/

 That last one took me awhile!

 Thanks,
 Bob



 - Original Message 
 From: Nitin Chaudhari  [EMAIL PROTECTED]
 To: Bob Whiton [EMAIL PROTECTED]
 Sent: Monday, March 26, 2007 10:42:06 AM
 Subject: Re: [WiX-users] Change Add/Remove Programs icon

 Even I would love to change the icons for my installation. I tried the
 Icon tag but wasnt successfull


 On 3/26/07, Bob Whiton  [EMAIL PROTECTED] wrote:
 
  Is there a way to change the icon for the msi package in WiX? I want
  to change the icon that appears in the upper-left corner of the install
  dialogs and the add/remove programs icon.
 
  Thanks!
  Bob
 
 
 
 
  

  Bored stiff? Loosen up...
  Download and play hundreds of games for free on Yahoo! Games.
  http://games.yahoo.com/games/front
 
 
  -
  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.phpp=sourceforgeCID=DEVDEV
 
  ___
  WiX-users mailing list
  WiX-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wix-users
 




 --
 Expecting? Get great news right away with email 
Auto-Check.http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
 Try the Yahoo! Mail Beta.
 
http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html



-
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.phpp=sourceforgeCID=DEVDEV___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Changing property value at runtime

2007-04-02 Thread Nitin Chaudhari

okay, I think my issue is concerned only with 2 actions.

CA which sets the property : executed after LaunchConditions
CA which uses the property : executed after OnExit
basically OnExit (in InstallUISequence) I show a dialog, this dialog has
a Finish button, and the finish button publishes an event which calls the
CA.

Should I cascade the 2 CAs so that

OnExit - show dialog - click Finish - event - CA to set property (CA1)
and in InstallExecuteSequence I execute 2nd CA with After property set to
CA1

will that work?

- Nitin



On 4/2/07, Rob Mensching [EMAIL PROTECTED] wrote:


 No, but it depends on where all the other action are scheduled.



*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *Nitin Chaudhari
*Sent:* Monday, April 02, 2007 7:09 AM
*To:* wix-users@lists.sourceforge.net
*Subject:* Re: [WiX-users] Changing property value at runtime



I knew that (S) and (C) had something to do with it :)

My custom action is at the end of the installsequence




  Custom Action=GEN_XLS_PATH After=LaunchConditions/
/InstallExecuteSequence


Something wrong with that?



Thanks for quick replies,

- Nitin


On 4/2/07, *Rob Mensching* [EMAIL PROTECTED] wrote:

Notice the (s) and the (c).  It appears you changed the property on the
server side of the Windows Installer and used the Property on the client
side of the install.  Where did you sequence your actions ( i.e. where did
you put the Custom elements)?



*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *Nitin Chaudhari
*Sent:* Monday, April 02, 2007 1:46 AM
*To:* wix-users@lists.sourceforge.net
*Subject:* [WiX-users] Changing property value at runtime



Someone please help me with the following issue?



I have this property :  Property Id =EXCEL_PROGRAM Value =DUMMY.EXE/

And this Custom action which sets the above property

 CustomAction Id =GEN_XLS_PATH Return =check Property=EXCEL_PROGRAM
Value=[XLSPROGPATH]Excel.exe/ CustomAction 

There is another custom action which uses the above property

 CustomAction Id =LaunchExcel Property =EXCEL_PROGRAM ExeCommand=
Return=asyncNoWait /



The installation log shows the following:



…

…

…

Action start 19:08:22: LaunchConditions.

Action ended 19:08:22: LaunchConditions. Return value 1.

MSI (s) (48:C4) [19:08:22:819]: Doing action: GEN_XLS_PATH

MSI (s) (48:C4) [19:08:22:819]: Note: 1: 2205 2:  3: ActionText

Action 19:08:22: GEN_XLS_PATH.

Action start 19:08:22: GEN_XLS_PATH.

MSI (s) (48:C4) [19:08:22:819]: *PROPERTY CHANGE: Modifying EXCEL_PROGRAM
property. Its current value is 'DUMMY.EXE '. Its new value: 'D:\Program
Files\Microsoft Office\OFFICE11\Excel.exe'. *

Action ended 19:08:22: GEN_XLS_PATH. Return value 1.

MSI (s) (48:C4) [19:08:22:834]: Doing action: FindRelatedProducts

…

…

…

MSI (c) (B8:28) [19:08:36:835]: Doing action: LaunchExcel

MSI (c) (B8:28) [19:08:36:850]: Note: 1: 2205 2:  3: ActionText

Action 19:08:36: LaunchExcel.

Action start 19:08:36: LaunchExcel.

Action ended 19:08:36: Complete. Return value 1.

Action ended 19:08:36: INSTALL. Return value 1.

Action ended 19:08:36: LaunchExcel. Return value 1631.

Property(C): INSTALLDIR = C:\Program Files\***\Addin\

Property(C): *EXCEL_PROGRAM = DUMMY.EXE*

Property(C): TARGETDIR = F:\

…

…



The property was changed, but still while executing LaunchExcel it is
being shown as DUMMY.EXE



Any idea what is going wrong here?



Thanks,

Nitin Chaudhari





-
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.phpp=sourceforgeCID=DEVDEV___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] wix, C# installer class, uninstall

2007-03-26 Thread Nitin Chaudhari

The rollback CA executes as per the msi log, but at the wrong time :


Action 13:42:43: Install2.

Action start 13:42:43: Install2.

Install2:

Action ended 13:42:43: Install2. Return value 1.

MSI (s) (C8:EC) [13:42:43:470]: Doing action: CA1.rollback.SetProperty

MSI (s) (C8:EC) [13:42:43:470]: Note: 1: 2205 2:  3: ActionText

Action 13:42:43: CA1.rollback.SetProperty.

Action start 13:42:43: CA1.rollback.SetProperty.

MSI (s) (C8:EC) [13:42:43:470]: PROPERTY CHANGE: Adding
CA1.rollbackproperty. Its value is '/installtype=notransaction
/action=rollback
/LogFile= /solutionCodeGroupName=GridstoneAddin C:\Program
Files\Gridstone\Addin\SetSecurity.dll C:\Program
Files\Gridstone\Addin\SampleInstaller.dll.config'.

Action ended 13:42:43: CA1.rollback.SetProperty. Return value 1.

MSI (s) (C8:EC) [13:42:43:470]: Doing action: CA1.rollback

MSI (s) (C8:EC) [13:42:43:470]: Note: 1: 2205 2:  3: ActionText

Action 13:42:43: CA1.rollback.

Action start 13:42:43: CA1.rollback.

CA1.rollback:

Action ended 13:42:43: CA1.rollback. Return value 1.

MSI (s) (C8:EC) [13:42:43:470]: Doing action: CA3.commit.SetProperty

MSI (s) (C8:EC) [13:42:43:470]: Note: 1: 2205 2:  3: ActionText

Action 13:42:43: CA3.commit.SetProperty.

Action start 13:42:43: CA3.commit.SetProperty.



I think the problem is here



   InstallExecuteSequence

 LaunchConditions After=AppSearch /

 RemoveExistingProducts After=InstallFinalize /



 Custom Action=DIRCA_TARGETDIR After=ValidateProductID1/Custom



 Custom Action=CA3.commit.SetProperty After=CA1.rollback$MainDLL
gt;2/Custom

 Custom Action=CA3.commit After=CA3.commit.SetProperty$MainDLL
gt;2/Custom



 Custom Action=CA1.rollback.SetProperty After=Install2$MainDLL
gt;2/Custom

 Custom Action=CA1.rollback After=CA1.rollback.SetProperty
$MainDLLgt;2/Custom



Rollback is executing after Install. Which should not be the case. It should
execute when I click cancel installation button in my UI – which is
currently as follows :



Control Type=PushButton Width=130 Height=17 X=216 Y=68 Id=Cancel
 Text=Cancel this installation

Publish Value=Exit Event=EndDialog1/Publish

/Control

/Dialog

Thanks,
Nitin.


On 3/23/07, Dana Gutride [EMAIL PROTECTED] wrote:


Are they not being executed or are you getting an error in the msi log?

Dana

On 3/23/07, Nitin Chaudhari  [EMAIL PROTECTED] wrote:

 Hi Dana,
 Thanks for the reply, having $TheComponent=2 in my custom action did
 solve the issue. So now the following works.

 
 Custom Action= CA2.uninstall.SetProperty After=MsiUnpublishAssemblies
 $MainDLL=2/Custom 

 
 Custom Action= CA2.uninstall After= CA2.uninstall.SetProperty
 $MainDLL=2/Custom 

 On similar lines I tried $MainDLLgt;2 for rollback and commit
 actions... it did not seem to work...  any pointers to related
 documentation.

 My current install sequence is as follows :

 InstallExecuteSequence
   LaunchConditions After=AppSearch /
   RemoveExistingProducts After=InstallFinalize /

   Custom Action=DIRCA_TARGETDIR
 After=ValidateProductID1/Custom

   Custom Action=CA3.commit.SetProperty After=CA1.rollback
 $MainDLLgt;2/Custom
   Custom Action=CA3.commit 
After=CA3.commit.SetProperty$MainDLLgt;2/Custom

   Custom Action=CA1.rollback.SetProperty
 After=Install2$MainDLLgt;2/Custom
   Custom Action=CA1.rollback 
After=CA1.rollback.SetProperty$MainDLLgt;2/Custom


   Custom Action=InstallSetProp
 After=StartServices$HelperLibrarygt;2/Custom
   Custom Action=Install
 After=InstallSetProp$HelperLibrarygt;2/Custom

   Custom Action=Install2SetProp
 After=Install$MainDLLgt;2/Custom
   Custom Action=Install2
 After=Install2SetProp$MainDLLgt;2/Custom

   Custom Action=CA2.uninstall.SetProperty
 After=MsiUnpublishAssemblies$MainDLL=2/Custom
   Custom Action=CA2.uninstall 
After=CA2.uninstall.SetProperty$MainDLL=2/Custom

   Custom Action=GEN_XLS_PATH After=LaunchConditions/
 /InstallExecuteSequence

 Thanks,
 Nitin

  On 3/23/07, Dana Gutride  [EMAIL PROTECTED] wrote:

  It might be a good idea to schedule this based on the state of the
  component or feature.  That way you can tie the custom action's execution to
  whether or not the specific component is being installed/uninstalled based
  on that state.
 
  $TheComponent=2 (component is being uninstalled)
  $TheComponent2 (component is being installed)
 
  Read here for more info:
 
  
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/conditional_statement_syntax.asp
 
  Dana
 
 
  On 3/22/07, Chris Bardon  [EMAIL PROTECTED] wrote:
 
   Have you tried something like this:
  
   InstallExecuteSequence
 Custom Action=CA2.uninstall.SetProperty
   After=MsiUnpublishAssembliesINSTALLED/Custom
   /InstallExecuteSequence
  
   This should execute the action only if the product is installed.
  
   
  
   From: [EMAIL PROTECTED]
   [mailto: [EMAIL PROTECTED] ] On Behalf Of
   Nitin
   Chaudhari
   Sent

Re: [WiX-users] Change Add/Remove Programs icon

2007-03-26 Thread Nitin Chaudhari

Even I would love to change the icons for my installation. I tried the Icon
tag but wasnt successfull


On 3/26/07, Rob Mensching [EMAIL PROTECTED] wrote:


You definitely can change the Add/Remove Programs icon (MSI SDK for
ARPPRODUCTICON Property or something like that).  The top left... don't
think so, but never tried.

-Original Message-
From: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] On Behalf Of Bob Whiton
Sent: Monday, March 26, 2007 8:10 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Change Add/Remove Programs icon

Is there a way to change the icon for the msi package in WiX? I want to
change the icon that appears in the upper-left corner of the install dialogs
and the add/remove programs icon.

Thanks!
Bob





Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

-
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.phpp=sourceforgeCID=DEVDEV
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-
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.phpp=sourceforgeCID=DEVDEV
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-
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.phpp=sourceforgeCID=DEVDEV___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Change Add/Remove Programs icon

2007-03-26 Thread Nitin Chaudhari

No icons for me yet. I copied the 3 lines in my wxs and placed a .ico file
in the same place where I had wxs and set the SourceFile value as the
filename

Why dont I see any icons?


On 3/26/07, Bob Whiton [EMAIL PROTECTED] wrote:


 Thanks for the responses.  I finally figured out how to do it with Rob's
tip...

 !--Set the icon for the msi and Add/Remove programs--
 Icon Id='LinkedCells.exe' SourceFile='Installer\LinkedCells_16x16.ico'/
 Property Id=ARPPRODUCTICON Value=LinkedCells.exe /
 Property Id=ALLUSERS Value=1/

A few things that first tripped me up:
1.  The Id for the Icon element must end in '.exe' (i.e. LinkedCells.exe)
2.  You must have an ARPRODUCTICON property with its value set to the Id
in step 1 above
3.  You must have the ALLUSERS property set to 1 in order for this to show
up... see http://support.microsoft.com/kb/q258558/

That last one took me awhile!

Thanks,
Bob



- Original Message 
From: Nitin Chaudhari [EMAIL PROTECTED]
To: Bob Whiton [EMAIL PROTECTED]
Sent: Monday, March 26, 2007 10:42:06 AM
Subject: Re: [WiX-users] Change Add/Remove Programs icon

Even I would love to change the icons for my installation. I tried the
Icon tag but wasnt successfull


On 3/26/07, Bob Whiton [EMAIL PROTECTED] wrote:

 Is there a way to change the icon for the msi package in WiX? I want to
 change the icon that appears in the upper-left corner of the install dialogs
 and the add/remove programs icon.

 Thanks!
 Bob




 

 Bored stiff? Loosen up...
 Download and play hundreds of games for free on Yahoo! Games.
 http://games.yahoo.com/games/front


 -
 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.phpp=sourceforgeCID=DEVDEV

 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users





--
Expecting? Get great news right away with email 
Auto-Check.http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
Try the Yahoo! Mail 
Beta.http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html

-
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.phpp=sourceforgeCID=DEVDEV___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Change Add/Remove Programs icon

2007-03-26 Thread Nitin Chaudhari

Unfortunately, my installation consists of only DLLs, so I am using a
seperate icon file - i created a icon using visual studio.

On 3/27/07, Justin Dearing [EMAIL PROTECTED] wrote:


For PlaneDisaster.NET, I use the icon embedded into the main
executable as the installer icon. If the icon you are using happens to
be the assembly icon for one of your exes you can do it like I do.
This is what I do:

!--- Puts PlaneDisaster.NET icon in Control Panel's Add/Remove Programs
--
Property Id=ARPPRODUCTICONMainExecutable/Property
Icon Id=MainExecutable SourceFile=..\bin\Release\PlaneDisaster.exe/



On 3/27/07, Nitin Chaudhari [EMAIL PROTECTED] wrote:
 No icons for me yet. I copied the 3 lines in my wxs and placed a .ico
file
 in the same place where I had wxs and set the SourceFile value as the
 filename

 Why dont I see any icons?


 On 3/26/07, Bob Whiton [EMAIL PROTECTED] wrote:
 
 
 
  Thanks for the responses.  I finally figured out how to do it with
Rob's
 tip...
 
   !--Set the icon for the msi and Add/Remove programs--
   Icon Id='LinkedCells.exe'
 SourceFile='Installer\LinkedCells_16x16.ico'/
   Property Id=ARPPRODUCTICON Value=LinkedCells.exe /
   Property Id=ALLUSERS Value=1/
 
  A few things that first tripped me up:
  1.  The Id for the Icon element must end in '.exe' (i.e.
LinkedCells.exe)
  2.  You must have an ARPRODUCTICON property with its value set to the
Id
 in step 1 above
  3.  You must have the ALLUSERS property set to 1 in order for this to
show
 up... see http://support.microsoft.com/kb/q258558/
 
  That last one took me awhile!
 
  Thanks,
  Bob
 
 
 
  - Original Message 
  From: Nitin Chaudhari  [EMAIL PROTECTED]
  To: Bob Whiton [EMAIL PROTECTED]
  Sent: Monday, March 26, 2007 10:42:06 AM
  Subject: Re: [WiX-users] Change Add/Remove Programs icon
 
 
  Even I would love to change the icons for my installation. I tried the
 Icon tag but wasnt successfull
 
 
  On 3/26/07, Bob Whiton  [EMAIL PROTECTED] wrote:
   Is there a way to change the icon for the msi package in WiX? I want
to
 change the icon that appears in the upper-left corner of the install
dialogs
 and the add/remove programs icon.
  
   Thanks!
   Bob
  
  
  
  


   Bored stiff? Loosen up...
   Download and play hundreds of games for free on Yahoo! Games.
   http://games.yahoo.com/games/front
  
  

-
   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.phpp=sourceforgeCID=DEVDEV
   ___
   WiX-users mailing list
   WiX-users@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wix-users
  
 
 
 
 
  
  Expecting? Get great news right away with email Auto-Check.
  Try the Yahoo! Mail Beta.



-
 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.phpp=sourceforgeCID=DEVDEV
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users



-
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.phpp=sourceforgeCID=DEVDEV___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How do i embedd and install a 3rd party msi (eg directx or wse runtime) if not already installed

2007-03-26 Thread Nitin Chaudhari

When I first started off with installer, I was thinking of using NSIS too,
but I guess if you want to save on time and effort, go with visual studio
setup project, set your pre-requisites i.e all ur other MSIs, u can
configure these MSI's to be installed from ur own server or a particular
location. This setup.exe that you would create like this, can also be
configured to download ur actual MSI at runtime.

The result. Your user download this Setup.exe, it checks dependencies, and
if required, downloads and installs them, then it downloads ur MSI and
installs ur app.

You can can also place everything in 1 directory, make a self extracting
archive out of it (using WinRar) and have 1 big bulky Setup.exe

- Nitin


On 3/27/07, Justin Dearing [EMAIL PROTECTED] wrote:


The page is here:

http://nsis.sourceforge.net/Embedding_other_installers

On 3/26/07, Justin Dearing [EMAIL PROTECTED] wrote:
 May I suggest using the Nullsoft Scriptable Installer System (NSIS) to
 Embed other installers. NSIS is the polar opposite of WiX, its a
 simple scripting language that runs in a linear fashion. I have
 written a page on their wiki that demonstrates how embed MSI as well
 as other installer types into the installer. I should note that my
 examples do not Remove the installer files after executing them,
 however this is trivial. Just call the Delete Method after making the
 system call to msiexec.

 On 3/26/07, Mike Dimmick [EMAIL PROTECTED] wrote:
  You need a bootstrapper application to install the MSIs in sequence.
You
  can't nest an MSI within another MSI.
 
  --
  Mike Dimmick
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of ste
  Sent: 26 March 2007 21:21
  To: wix-users@lists.sourceforge.net
  Subject: [WiX-users] How do i embedd and install a 3rd party msi (eg
directx
  or wse runtime) if not already installed
 
  Hi
 
  I have a simple problem..
 
  I am deploying a component that relies on a 3rd party installation
  runtime (think Msoft Wse3 runtime or DirectX runtime).  I want the
  installer to check that this pre-requisite is installed and if not
  execute the  prereq instal file before my installation invokes
 
  I have added the installation file as a component under my source
  directory, and created a feature for it.  Obviously this just copies
the
  file onto the system. What i cannot figure out is how to run the
  installation without physically installing it..
 
  I thought about creating a custom action that just ran msiexec on the
  msi?  But assumed there must be a cleaner way for installing a
prebuilt
  msi as a prerequisite.
 
 
 
 
-
  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.phpp=sourceforgeCID=DEVDEV
  ___
  WiX-users mailing list
  WiX-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wix-users
 


-
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.phpp=sourceforgeCID=DEVDEV
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-
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.phpp=sourceforgeCID=DEVDEV___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Wix votive stable version

2007-03-26 Thread Nitin Chaudhari

Hi all,

I am planning to use votive, however the wix website tells me that
v2.0votive is not maintained and that users should go with votive
3.0
Again wix 3.0 is marked as unstable so which is the best combination to use.
I dont wan to risk anything by using unstable builds.

Thanks,
Nitin.
-
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.phpp=sourceforgeCID=DEVDEV___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] wix, C# installer class, uninstall

2007-03-22 Thread Nitin Chaudhari

I am using a C# installer class, during installation, I am able to call my
C# install function, however I am not able hook uninstall in wix to call my
C# uninstall function.

In Wix, I am using the following XML to hook uninstall... but the MSI log
shows that this custom action is being invoked during installation itself.

Custom Action=CA2.uninstall.SetProperty
After=MsiUnpublishAssemblies1/Custom

Custom Action=CA2.uninstall After=CA2.uninstall.SetProperty1/Custom

How can I ensure that my custom action is executed only on uninstall?

Thanks,

Nitin
-
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.phpp=sourceforgeCID=DEVDEV___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] wix, C# installer class, uninstall

2007-03-22 Thread Nitin Chaudhari

Hi Dana,
Thanks for the reply, having $TheComponent=2 in my custom action did solve
the issue. So now the following works.

Custom Action=CA2.uninstall.SetProperty After=MsiUnpublishAssemblies
$MainDLL=2/Custom

Custom Action=CA2.uninstall After=CA2.uninstall.SetProperty$MainDLL=2
/Custom

On similar lines I tried $MainDLLgt;2 for rollback and commit
actions... it did not seem to work...  any pointers to related
documentation.

My current install sequence is as follows :

   InstallExecuteSequence
 LaunchConditions After=AppSearch /
 RemoveExistingProducts After=InstallFinalize /

 Custom Action=DIRCA_TARGETDIR After=ValidateProductID1/Custom

 Custom Action=CA3.commit.SetProperty After=CA1.rollback
$MainDLLgt;2/Custom
 Custom Action=CA3.commit After=CA3.commit.SetProperty
$MainDLLgt;2/Custom

 Custom Action=CA1.rollback.SetProperty
After=Install2$MainDLLgt;2/Custom
 Custom Action=CA1.rollback After=CA1.rollback.SetProperty
$MainDLLgt;2/Custom

 Custom Action=InstallSetProp
After=StartServices$HelperLibrarygt;2/Custom
 Custom Action=Install
After=InstallSetProp$HelperLibrarygt;2/Custom

 Custom Action=Install2SetProp
After=Install$MainDLLgt;2/Custom
 Custom Action=Install2
After=Install2SetProp$MainDLLgt;2/Custom

 Custom Action=CA2.uninstall.SetProperty
After=MsiUnpublishAssemblies$MainDLL=2/Custom
 Custom Action=CA2.uninstall After=CA2.uninstall.SetProperty
$MainDLL=2/Custom

 Custom Action=GEN_XLS_PATH After=LaunchConditions/
   /InstallExecuteSequence

Thanks,
Nitin

On 3/23/07, Dana Gutride [EMAIL PROTECTED] wrote:


It might be a good idea to schedule this based on the state of the
component or feature.  That way you can tie the custom action's execution to
whether or not the specific component is being installed/uninstalled based
on that state.

$TheComponent=2 (component is being uninstalled)
$TheComponent2 (component is being installed)

Read here for more info:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/conditional_statement_syntax.asp

Dana


On 3/22/07, Chris Bardon [EMAIL PROTECTED] wrote:

 Have you tried something like this:

 InstallExecuteSequence
   Custom Action=CA2.uninstall.SetProperty
 After=MsiUnpublishAssembliesINSTALLED/Custom
 /InstallExecuteSequence

 This should execute the action only if the product is installed.

 

 From: [EMAIL PROTECTED]
 [mailto: [EMAIL PROTECTED] On Behalf Of Nitin
 Chaudhari
 Sent: Thursday, March 22, 2007 9:37 AM
 To: wix-users@lists.sourceforge.net
 Subject: [WiX-users] wix, C# installer class, uninstall


 I am using a C# installer class, during installation, I am able to call
 my C# install function, however I am not able hook uninstall in wix to
 call my C# uninstall function.

 In Wix, I am using the following XML to hook uninstall... but the MSI
 log shows that this custom action is being invoked during installation
 itself.
 Custom Action=CA2.uninstall.SetProperty
 After=MsiUnpublishAssemblies1/Custom

 Custom Action= CA2.uninstall
 After=CA2.uninstall.SetProperty1/Custom

 How can I ensure that my custom action is executed only on uninstall?

 Thanks,

 Nitin


 -

 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.phpp=sourceforgeCID=DEVDEV
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users



-
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.phpp=sourceforgeCID=DEVDEV
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-
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.phpp=sourceforgeCID=DEVDEV___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] public properties, saving state

2007-03-22 Thread Nitin Chaudhari

Hi,

What do u mean by set the property based on a registry entry?

I have this property : Property Id=EXCEL_PROGRAM Value=DUMMY.EXE/

And this Custom action which sets the above property

CustomAction Id=GEN_XLS_PATH Return=check Property=EXCEL_PROGRAM
Value=[XLSPROGPATH]Excel.exe/CustomAction

There is another custom action which uses the above property

CustomAction Id=LaunchExcel Property=EXCEL_PROGRAM ExeCommand= Return
=asyncNoWait /

The installation log shows the following:

…

Action start 19:08:22: LaunchConditions.

Action ended 19:08:22: LaunchConditions. Return value 1.

MSI (s) (48:C4) [19:08:22:819]: Doing action: GEN_XLS_PATH

MSI (s) (48:C4) [19:08:22:819]: Note: 1: 2205 2:  3: ActionText

Action 19:08:22: GEN_XLS_PATH.

Action start 19:08:22: GEN_XLS_PATH.

MSI (s) (48:C4) [19:08:22:819]: *PROPERTY CHANGE: Modifying EXCEL_PROGRAM
property. Its current value is 'DUMMY.EXE'. Its new value: 'D:\Program
Files\Microsoft Office\OFFICE11\Excel.exe'.*

Action ended 19:08:22: GEN_XLS_PATH. Return value 1.

MSI (s) (48:C4) [19:08:22:834]: Doing action: FindRelatedProducts

…

MSI (c) (B8:28) [19:08:36:835]: Doing action: LaunchExcel

MSI (c) (B8:28) [19:08:36:850]: Note: 1: 2205 2:  3: ActionText

Action 19:08:36: LaunchExcel.

Action start 19:08:36: LaunchExcel.

Action ended 19:08:36: Complete. Return value 1.

Action ended 19:08:36: INSTALL. Return value 1.

Action ended 19:08:36: LaunchExcel. Return value 1631.

Property(C): INSTALLDIR = C:\Program Files\GSR\Addin\

Property(C): *EXCEL_PROGRAM = DUMMY.EXE*

Property(C): TARGETDIR = F:\

…

The property was changed, but still while executing LaunchExcel it is being
shown as DUMMY.EXE

Any idea what is going wrong here?

Thanks,

Nitin Chaudhari



On 3/22/07, Lindsay Harris [EMAIL PROTECTED] wrote:


 Hi Chris, thanks for your reply, I have already started implementing it
that way, I guess I was hoping there was a more elegant solution.



Thanks,

Lindsay



*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
*Sent:* Thursday, March 22, 2007 11:23 AM
*To:* Lindsay Harris; wix-users@lists.sourceforge.net
*Subject:* RE: [WiX-users] public properties, saving state



I don't know if the functionality you're thinking of exists, but
alternatively you could set the property based on a registry entry you set
during installation.



Chris


 --

*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *Lindsay Harris
*Sent:* Thursday, March 22, 2007 1:33 PM
*To:* wix-users@lists.sourceforge.net
*Subject:* [WiX-users] public properties, saving state



Hi,



I was wondering, is there a certain way to define a public property so
that whatever value u give it on install for example, will still be there
when u initiate a repair, or modify, or uninstall.



For example, this is how I define a public property:

Property Id=ARCHIVEFOLDERDIREDIT Value=someValue/Property





Is this expected behavior and I am doing something wrong?



Any advice would be appreciated,

Thanks,

Lindsay Harris

-
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.phpp=sourceforgeCID=DEVDEV
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-
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.phpp=sourceforgeCID=DEVDEV___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users