[WiX-users] Wanted some suggestions on MSI Upgrade

2013-11-11 Thread Ravi Raj
Hi,
I wanted some info/suggestion on MSI upgrade process.

My scenario is I created a msi v1.0.0.0 with few components (like some
text file and dlls). These DLLs will get installed in GAC.

Now I do have to create another MSI v2.0.0.0 with same number of files
(components) as used in earlier installer but this time the name of
DLLs has been changed. Like in 1.0 it was My.Custom.Gac.dll and in
2.0 I need to use My.Custom.Abc.dll. Both are same dll only file
name and version changed.

Is this possible to delete the previous DLL and replace with this new
one (treating this as same Dll as previous one). Also will this affect
my Change/Repair feature?

-- 
Thanks and Regards,
Ravi Raj

--
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Need suggestion on custom feature selection implementation

2013-05-07 Thread Ravi Raj
Hi,
I am developing an installer using WiX 3.7 and want to implement freature
selection dialog to install the feature. I have three of them:

   - FEATURE_DEFAULT
   - FEATURE_CLASS_A
   - FEATURE_CLASS_B

As per name, FEATURE_DEFAULT will always install, FEATURE_CLASS_A and
FEATURE_CLASS_B will get installed on checkbox selection. Here is the code:

Control Id=Next Type=PushButton X=236 Y=243 Width=56
Height=17 Disabled=yes Text=!(loc.ButtonText_Next)  Publish
Event=AddLocal Value=ALL Order=31/Publish  Publish
Event=Remove Value=FEATURE_CLASS_A Order=4NOT
CHKBOX_A/Publish  Publish Event=Remove Value=FEATURE_CLASS_B
Order=5NOT CHKBOX_B/Publish/Control

Things are working fine while installing. But Now I have to attach Add /
Remove feature in the installer. So After MaintenanceDlg, I switch to
FeaturesDlg. Here I see two checkboxes, both unchecked (actually installed
feature checkbox must be checked). Also I want to implement Add feature so
if user want to install a new feature the only this will get installed and
not other feature get touched.
For this I used custom action to control the checkbox property. Code:

 foreach (FeatureInfo fi in session.Features)
 {
   if (fi.Name == FEATURE_CLASS_A  fi.CurrentState == InstallState.Local)
   {
  GetSetProperties.SetSessionProperty(session, CHECKBOX_ENABLE, 1);
   }
 }

So if feature is installed previously checkbox gets checked. But if I check
other checkbox, then installer installs both features (which I don't want).
If I uncheck previous checkbox (as I am adding new feature and removing old
one), then previous feature gets removed. I am stuck here.

How can I achieve what I want to do? Is there a better solution for this
(apart from what I am doing)?
Help needed, its really urgent.


-- 
Thanks and Regards,
Ravi Raj
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] AppSearch table is not showing

2013-05-06 Thread Ravi Raj
Hi,
I am developing an installer using WiX 3.7. I have to do some registry
search after CostFinalize, so I created a new file named RegSearch.wxs
and put following code:

?xml version=1.0 encoding=UTF-8?Wix
xmlns=http://schemas.microsoft.com/wix/2006/wi;  Fragment
Property Id=DOMAINNAME Secure=yes  RegistrySearch
Id=DomainName  Root=HKLM
Key=SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
   Name=Domain  Win64=yes
Type=raw //Property  /Fragment/Wix

and I am using this Property to write registry value using custom action
but the problem is that when I open my installer in Orca, AppSearch table
is not at all showing. If the run this installer, everything works fine
except the registry entry is empty.

When I move this code in Product.../Product node, I can see the
AppSearch folder and my Ca works great.

Why I am seeing this strange behavior? Am I missing something?


-- 
Thanks and Regards,
Ravi Raj
--
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with 2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] AppSearch table is not showing

2013-05-06 Thread Ravi Raj
Thanks uni, This helped...


On Mon, May 6, 2013 at 3:35 PM, uni unigauld...@gmail.com wrote:

 于06 May 2013 16:54:47,Ravi Raj写到:
  Hi,
  I am developing an installer using WiX 3.7. I have to do some registry
  search after CostFinalize, so I created a new file named RegSearch.wxs
  and put following code:
 
  ?xml version=1.0 encoding=UTF-8?Wix
  xmlns=http://schemas.microsoft.com/wix/2006/wi;  Fragment
  Property Id=DOMAINNAME Secure=yes  RegistrySearch
  Id=DomainName  Root=HKLM
  Key=SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
 Name=Domain  Win64=yes
  Type=raw //Property  /Fragment/Wix
 
  and I am using this Property to write registry value using custom action
  but the problem is that when I open my installer in Orca, AppSearch table
  is not at all showing. If the run this installer, everything works fine
  except the registry entry is empty.
 
  When I move this code in Product.../Product node, I can see the
  AppSearch folder and my Ca works great.
 
  Why I am seeing this strange behavior? Am I missing something?
 
 

 Do you add PropertyRef Id=DOMAINNAME in your main wxs source
 file(the one contains Product element)? If you don't refer to a element
 in the fragment first,the fragment would not be added to the main wxs
 source file.


 --
 Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
 Get 100% visibility into your production application - at no cost.
 Code-level diagnostics for performance bottlenecks with 2% overhead
 Download for free and get started troubleshooting in minutes.
 http://p.sf.net/sfu/appdyn_d2d_ap1
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
Thanks and Regards,
Ravi Raj
--
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with 2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Installer with InstallScope=perUser

2013-01-31 Thread Ravi Raj
I have created an installer with following details:

Package Id=* Platform=x64
Keywords='Installer' InstallerVersion=405
Manufacturer=!(loc.CompanyName)
Description=!(loc.Description) Compressed=yes
   InstallScope=perUser AdminImage=no
ReadOnly=yes ShortNames=no
SummaryCodepage=1252/


Also I have not used any Privileged Custom Action in any process
(InstallUISequence or InstallExecuteSequence ). But when I execute the
installer, the install button shows SHIELD icon. When I click install, i
got a popup that The system administrator has set policies to prevent this
installation.
I am using Windows Server 2012 and the user from which i logged in is added
to the administrator group of this machine also it is a domain user
privilege (but not domain admin).

Can some body explain me this behavior? How can I make my installer run in
this situation.
-- 
Thanks and Regards,
Ravi Raj
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Launch Third Party Application after successful installation

2012-11-12 Thread Ravi Raj
I want to launch a third party application using my WiX installer. I am
using following but it will launch the application along with command
prompt which never closes.

Property Id=PROMPT Secure=yescmd.exe/Property

CustomAction Id='CA_LaunchAppliation' Property='PROMPT' ExeCommand='/c
start quot;[PATHTOEXE]quot;' Execute=immediate Return=asyncNoWait /

[PATHTOEXE] is the full path of the application fetched from registry.
Is there a better and efficient way to use it?
I am not using any WiX dlls except WixNetFxExtension and I do not want
default implementation mentioned in:
http://wix.sourceforge.net/manual-wix3/run_program_after_install.htm

-- 
Thanks and Regards,
Ravi Raj
--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Customize Feature Tree based on custom action

2012-11-07 Thread Ravi Raj
I have implemented an installer with feature tree having three components
to select for installation. Now  I want to do some customization to this
tree.
1) I want to make first option always selected and user cannot deselect
this.
2) On installer runs, if component 2 is present (checked via custom action,
this part i have done) then option 2 gets disabled else enabled
3) If possible I want to make this feature tree with above two function but
with Check Boxes and not by the default layout. (Can this be possible?)

Any suggestions

-- 
Thanks and Regards,
Ravi Raj
--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Edit file in deferred custom action

2012-10-29 Thread Ravi Raj
I want to edit two files just after installer copies files to the system
and before start of service. I can do this in two ways (I guess). Either
whrn installer copies files to the system, I edit file in custom action
(using file IO Operations) or I can generate file at the rum time of the
install session.

Which method I prefer? or is there another way?
I have tired the first one but it is not working. Any suggestions?

-- 
Thanks and Regards,
Ravi Raj
--
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Installing Windows Service using WiX

2012-10-28 Thread Ravi Raj
I wanted to install a service using WiX but I want to do this in custom
actions (C#) and not want to use SeviceInstall tags. How can I make this
possible??

Just wanted to ask, when this ServiceInstall executes (I know it will be in
deferred but when if I have some deferred actions already)??

-- 
Thanks and Regards,
Ravi Raj
--
WINDOWS 8 is here. 
Millions of people.  Your app in 30 days.
Visit The Windows 8 Center at Sourceforge for all your go to resources.
http://windows8center.sourceforge.net/
join-generation-app-and-make-money-coding-fast/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Installing Windows Service using WiX

2012-10-28 Thread Ravi Raj
I guess I have to implement start service method. But can I start service
WiX after successful install??
Also when/which phase this service deployment start while installing?

On Mon, Oct 29, 2012 at 12:45 AM, John H Bergman (XPedient) 
john.berg...@xpdnt.com wrote:

 I am curious, why would you not want to use the built in functionality?

 -Original Message-
 From: Ravi Raj [mailto:raviraj.callin...@gmail.com]
 Sent: Sunday, October 28, 2012 2:05 PM
 To: General discussion for Windows Installer XML toolset.
 Subject: [WiX-users] Installing Windows Service using WiX

 I wanted to install a service using WiX but I want to do this in custom
 actions (C#) and not want to use SeviceInstall tags. How can I make this
 possible??

 Just wanted to ask, when this ServiceInstall executes (I know it will be
 in deferred but when if I have some deferred actions already)??

 --
 Thanks and Regards,
 Ravi Raj

 --
 WINDOWS 8 is here.
 Millions of people.  Your app in 30 days.
 Visit The Windows 8 Center at Sourceforge for all your go to resources.
 http://windows8center.sourceforge.net/
 join-generation-app-and-make-money-coding-fast/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


 --
 WINDOWS 8 is here.
 Millions of people.  Your app in 30 days.
 Visit The Windows 8 Center at Sourceforge for all your go to resources.
 http://windows8center.sourceforge.net/
 join-generation-app-and-make-money-coding-fast/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
Thanks and Regards,
Ravi Raj
--
WINDOWS 8 is here. 
Millions of people.  Your app in 30 days.
Visit The Windows 8 Center at Sourceforge for all your go to resources.
http://windows8center.sourceforge.net/
join-generation-app-and-make-money-coding-fast/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Writing registry after deferred custom action

2012-10-28 Thread Ravi Raj
My deferred action set some property and from here I want to write this
value to the registry using WiX (and not inside custom action using C#, so
that it gets removed automatically during uninstall).
How can I do this?

-- 
Thanks and Regards,
Ravi Raj
--
WINDOWS 8 is here. 
Millions of people.  Your app in 30 days.
Visit The Windows 8 Center at Sourceforge for all your go to resources.
http://windows8center.sourceforge.net/
join-generation-app-and-make-money-coding-fast/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Installing Windows Service using WiX

2012-10-28 Thread Ravi Raj
Thanks all, for this cool info, now just one more thing. I want to store
some value in the registry just after my service starts. Is there a way to
do this via wix?

On Mon, Oct 29, 2012 at 2:58 AM, Neil Sleightholm n...@x2systems.comwrote:

 You just need to add ServiceControl element to start the service; you also
 need this to remove the service on uninstall as ServiceInstall doesn't do
 that. To find out where the start is scheduled open up the MSI with Orca or
 InstEd and see where StartServices is in the InstallExecuteSequence.

 There is one gotcha though if your service uses assemblies in the GAC that
 you are also installing the start will fail as the assemblies are added to
 the GAC after the start is scheduled - to get round this I have just
 shelled a call to net start.

 Neil

 -Original Message-
 From: Ravi Raj [mailto:raviraj.callin...@gmail.com]
 Sent: 28 October 2012 19:57
 To: General discussion for Windows Installer XML toolset.
 Subject: Re: [WiX-users] Installing Windows Service using WiX

 I guess I have to implement start service method. But can I start service
 WiX after successful install??
 Also when/which phase this service deployment start while installing?

 On Mon, Oct 29, 2012 at 12:45 AM, John H Bergman (XPedient) 
 john.berg...@xpdnt.com wrote:

  I am curious, why would you not want to use the built in functionality?
 
  -Original Message-
  From: Ravi Raj [mailto:raviraj.callin...@gmail.com]
  Sent: Sunday, October 28, 2012 2:05 PM
  To: General discussion for Windows Installer XML toolset.
  Subject: [WiX-users] Installing Windows Service using WiX
 
  I wanted to install a service using WiX but I want to do this in
  custom actions (C#) and not want to use SeviceInstall tags. How can
  I make this possible??
 
  Just wanted to ask, when this ServiceInstall executes (I know it will
  be in deferred but when if I have some deferred actions already)??
 
  --
  Thanks and Regards,
  Ravi Raj
 
  --
  
  WINDOWS 8 is here.
  Millions of people.  Your app in 30 days.
  Visit The Windows 8 Center at Sourceforge for all your go to resources.
  http://windows8center.sourceforge.net/
  join-generation-app-and-make-money-coding-fast/
  ___
  WiX-users mailing list
  WiX-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wix-users
 
 
  --
  
  WINDOWS 8 is here.
  Millions of people.  Your app in 30 days.
  Visit The Windows 8 Center at Sourceforge for all your go to resources.
  http://windows8center.sourceforge.net/
  join-generation-app-and-make-money-coding-fast/
  ___
  WiX-users mailing list
  WiX-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wix-users
 



 --
 Thanks and Regards,
 Ravi Raj

 --
 WINDOWS 8 is here.
 Millions of people.  Your app in 30 days.
 Visit The Windows 8 Center at Sourceforge for all your go to resources.
 http://windows8center.sourceforge.net/
 join-generation-app-and-make-money-coding-fast/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


 --
 WINDOWS 8 is here.
 Millions of people.  Your app in 30 days.
 Visit The Windows 8 Center at Sourceforge for all your go to resources.
 http://windows8center.sourceforge.net/
 join-generation-app-and-make-money-coding-fast/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
Thanks and Regards,
Ravi Raj
--
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Installer which installs another exe on Remote Machine

2012-09-12 Thread Ravi Raj
But I am seeing this VBScript for doing the same, can't I execute this
script in Custom Action to do the same?

On Sat, Sep 8, 2012 at 10:56 PM, Philip Sayers p...@cds-am.net wrote:

 I'm pretty sure you can't do this from inside a MSI.

 Wix is about creating the MSI, you're asking about how to apply that MSI to
 a remote machine.

 This should point you in the right direction.

 http://technet.microsoft.com/en-us/library/ee156549.aspx


 -Original Message-
 From: Ravi Raj [mailto:raviraj.callin...@gmail.com]
 Sent: Saturday, September 08, 2012 5:33 AM
 To: General discussion for Windows Installer XML toolset.
 Subject: [WiX-users] Installer which installs another exe on Remote Machine

 Hi All,
 I wanted some suggestion.

 I wanted to create an installer which takes some user parameter (like
 domain
 name, user name, machine name, password) of remote machine, and then I want
 to install an exe (which I guess will be embedded into this current
 installer) to a remote machine (using above credentials).

 The installer should copy the file to remote, install the file then delete
 the original file. Will the second installer made specially (does it should
 support silent install?)

 How can I implement this? I have build a installer using WiX many times
 before but the remote installation part is new to me. I wanted to know what
 custom actions should I use (C# more preferably)?
 --
 Thanks and Regards,
 Ravi Raj

 
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and threat
 landscape has changed and how IT managers can respond. Discussions will
 include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users



 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Installer which installs another exe on Remote Machine

2012-09-08 Thread Ravi Raj
Hi All,
I wanted some suggestion.

I wanted to create an installer which takes some user parameter (like
domain name, user name, machine name, password) of remote machine, and then
I want to install an exe (which I guess will be embedded into this current
installer) to a remote machine (using above credentials).

The installer should copy the file to remote, install the file then delete
the original file. Will the second installer made specially (does it should
support silent install?)

How can I implement this? I have build a installer using WiX many times
before but the remote installation part is new to me. I wanted to know what
custom actions should I use (C# more preferably)?
-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Customizing a Maintenance Type Dialog

2012-07-03 Thread Ravi Raj
Hi Emma,
I am using this:


InstallUISequenceShow Dialog=WelcomeDlg
After=MigrateFeatureStatesNOT Installed/ShowShow
Dialog=ResumeDlg After=WelcomeDlgInstalled AND (RESUME OR
Preselected)/ShowShow Dialog=MaintenanceWelcomeDlg
After=ResumeDlgInstalled AND NOT RESUME AND NOT
Preselected/ShowShow Dialog=ProgressDlg
After=MaintenanceWelcomeDlg /
/InstallUISequence

and this is working great. Try this and see if it works?

On Tue, Jul 3, 2012 at 1:14 PM, eddie burkowich eddieburkow...@gmail.comwrote:

 Although i am asking this questions as copied from

 http://stackoverflow.com/questions/11288820/customizing-a-maintainencetypedialog-not-successful
 ,
 i also faced the same problem that i have not been able to modify the
 MaintenanceWelcomeDialog, as per alexey's advice i tried to do what he
 mentioned as well however nothing seemed to work.

 Please help

 Eddie

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Customizing a Maintenance Type Dialog

2012-07-03 Thread Ravi Raj
Hey Eddie,
Sorry for the name as I referred the StackOverflow link.

On Tue, Jul 3, 2012 at 1:31 PM, Ravi Raj raviraj.callin...@gmail.comwrote:

 Hi Emma,
 I am using this:


 InstallUISequenceShow Dialog=WelcomeDlg After=MigrateFeatureStatesNOT 
 Installed/ShowShow Dialog=ResumeDlg After=WelcomeDlgInstalled AND 
 (RESUME OR Preselected)/ShowShow Dialog=MaintenanceWelcomeDlg 
 After=ResumeDlgInstalled AND NOT RESUME AND NOT Preselected/ShowShow 
 Dialog=ProgressDlg After=MaintenanceWelcomeDlg /
 /InstallUISequence

 and this is working great. Try this and see if it works?


 On Tue, Jul 3, 2012 at 1:14 PM, eddie burkowich 
 eddieburkow...@gmail.comwrote:

 Although i am asking this questions as copied from

 http://stackoverflow.com/questions/11288820/customizing-a-maintainencetypedialog-not-successful
 ,
 i also faced the same problem that i have not been able to modify the
 MaintenanceWelcomeDialog, as per alexey's advice i tried to do what he
 mentioned as well however nothing seemed to work.

 Please help

 Eddie

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




 --
 Thanks and Regards,
 Ravi Raj




-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Launch External Application using WiX

2012-06-27 Thread Ravi Raj
I want to implement launch application on successful install only (and not
on repair or uninstall). Its an external application (say VLC media player).
How can write my custom action to do this?

-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Scheduling Custom Action

2012-06-21 Thread Ravi Raj
I am populating UserName property in UI textbox and then storing it in
registry. For this I am using custom action to set this variable at
UISqeuence and ExecuteSequence. Everything works great.

I found that if I change this value to something else, my registry is never
changes to new value. i saw that log then found that in UISequence its fine
but in ExecuteSequence it changes back to normal. I need to fix this.

I cannot remove the custom action from ExecuteSequence as if I do that then
at the repair (with no UI just Right-Click - Repair) I found that, the
registry value gets deleted (i am not sure why as verbose sows that value
as empty). But having both CAs intact, it works great.

Again, if I manually the registry value (just for testing), and do repair
using Maintenance dialog, the registry value resets to the original
(default) value.

I am totally lost how to resolve this?
Requirement is to populate username (from computer), in a textbox, store it
in registry and keep it there until uninstall.
How do I use CAs sequencing or where should I call repair so that nothing
gets changed?

-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Maintenance UI on uninstall

2012-06-20 Thread Ravi Raj
While uninstalling I see small window for uninstall (with no UI
interaction). I want to launch Maintenance UI whenever user choose to
uninstall via Add/Remove program.
How can I do this?

-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Progress Bar display messages

2012-06-20 Thread Ravi Raj
I am displaying my custom messages as progress text based on my custom
action but everytime I am seeing the same message of Install CA on install,
uninstall, repair.
I am not able to figure it out. Here is my code:

ProgressText Action=CA.InstallImporting ... (this may take a few
minutes)/ProgressTextProgressText
Action=CA.Virtual.InstallImporting Virtualization ... (this may
take a few minutes)/ProgressTextProgressText
Action=CA.RollbackDeleting ... (this may take a few
minutes)/ProgressTextProgressText
Action=CA.Virtual.RollbackDeleting Virtualization ... (this may
take a few minutes)/ProgressTextProgressText
Action=CA.UnInstallImporting ... (this may take a few
minutes)/ProgressTextProgressText
Action=CA.Virtual.UnInstallImporting Virtualization ... (this may
take a few minutes)/ProgressTextProgressText
Action=CA.UpgradeUpgrading ... (this may take a few
minutes)/ProgressTextProgressText
Action=CA.Virtual.UpgradeUpgrading Virtualization ... (this may
take a few minutes)/ProgressText

Should I need to change something?

Also I wanted to ask. I had some more processes going in all my custom
actions which I wanted to display as progress text. How can i do that?

-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Storing textbox value in registry

2012-06-20 Thread Ravi Raj
I have checked the verbose log and found that property assigned correctly
in InstallUISequence but it gets modified in InstallExecuteSequence.

I had to use custom actions at both places. How can I correct it?


On Wed, Jun 20, 2012 at 9:38 PM, Rob Mensching r...@robmensching.com wrote:

 I would use a verbose log file and watch the changes to the Property value
 to ensure it changed the way I expected.

 On Tue, Jun 19, 2012 at 8:52 PM, Ravi Raj raviraj.callin...@gmail.com
 wrote:

  I want to store a textbox value in registry but my situation is little
  different.
  I am doing a registry search for a particular key value and populate this
  value into the textbox and again storing this value to my custom registry
  key.
  Everything is working great until now, but I found if I change this value
  of the textbox at the run time and proceed with the installation, the new
  value does not get stored in the registry but the registry search value
  gets stored.
 
  How can I make this work perfectly? Here is my code:
 
  Property Id=INSTALLMACHINE Secure=yes/
   Property Id=SDK_MACHINE  Secure=yes
  RegistrySearch Id=SDK_Machine  Root=HKCU
 Key=Software\\\  Name=Machine
 Type=raw //PropertyInstallExecuteSequence
  Custom Action=CA.SetProperty.SDK_MACHINE After=CostFinalize
  //InstallExecuteSequence
   InstallUISequence  Custom Action=CA.SetProperty.SDK_MACHINE
  After=CostFinalize //InstallUISequence
 
   CustomAction Id=CA.SetProperty.SDK_MACHINE
  Property=INSTALLMACHINE Value=[SDK_MACHINE] /
   Control Id=MSNameEdit Type=Edit X=25 Y=105 Width=220
  Height=18 Property=INSTALLMACHINE /
   Component Id=SDK_Machine_RegistryEntries
  Guid=4B134F16-5CB0-4BC5-8D08-EAFB1D4A71F6  RegistryKey Root=HKCU
   Key=Software\!(loc.CompanyName)\!(loc.ProductName)
  RegistryValue Type=string Name=Machine Value=[INSTALLMACHINE]
  KeyPath=yes/  /RegistryKey/Component
 
 
 
  --
  Thanks and Regards,
  Ravi Raj
 
 
 --
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and
  threat landscape has changed and how IT managers can respond. Discussions
  will include endpoint security, mobile security and the latest in malware
  threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
  ___
  WiX-users mailing list
  WiX-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wix-users
 



 --
 virtually, Rob Mensching - http://RobMensching.com LLC

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] PATCH in Wix

2012-06-19 Thread Ravi Raj
I was trying to use UPGRADINGPRODUCTCODE but none of the features are not
working so I decided to go with  OLD_VERSION_FOUND and things are going
pretty smooth. But will it be nice. I am not sure why former was nor
working?


On Tue, Jun 19, 2012 at 2:35 PM, Peter Shirtcliffe pshirtcli...@sdl.comwrote:

 There is a complete list of properties at

 http://msdn.microsoft.com/en-us/library/windows/desktop/aa370905%28v=vs.85%29
 .aspx

 UPGRADINGPRODUCTCODE is probably what you're after.

 -Original Message-
 From: Ravi Raj [mailto:raviraj.callin...@gmail.com]
 Sent: 19 June 2012 06:10
 To: General discussion for Windows Installer XML toolset.
 Subject: [WiX-users] PATCH in Wix

 I just wanted to ask that what PATCH keyword means? Upgrade or Patch?
 What condition I choose if I want to display upgrade UI on upgrade as most
 of
 the places I have seen:

 Publish Dialog=WelcomeDlg Control=Next Event=NewDialog
 Value=LicenseAgreementDlgNOT Installed AND NOT PATCH/Publish Publish
 Dialog=WelcomeDlg Control=Next Event=NewDialog
 Value=VerifyReadyDlgInstalled AND PATCH/Publish

 What should I use in case of Upgrade (there is no patch in my case)?
 --
 Thanks and Regards,
 Ravi Raj

 -
 -
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and threat
 landscape has changed and how IT managers can respond. Discussions will
 include endpoint security, mobile security and the latest in malware
 threats.
 http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users
 SDL PLC confidential, all rights reserved.
 If you are not the intended recipient of this mail SDL requests and
 requires that you delete it without acting upon or copying any of its
 contents, and we further request that you advise us.
 SDL PLC is a public limited company registered in England and Wales.
  Registered number: 02675207.
 Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6
 7DY, UK.



 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Storing the value of CheckBox in registry

2012-06-19 Thread Ravi Raj
I have authored an installer using Wix 3.6 RC. I have a checkbox in the
dialog UI which is disabled and unchecked initially. There is a Verify
button next to it. When I press this button a custom action gets executed
(immediate) and sets a value of parameter which decides whether check box
gets enabled or not. Here is the code:
Control Id=VirtualCheckBox
 Type=CheckBox
 CheckBoxValue=1
 X=35 Y=100
 Width=160 Height=20
 Disabled=yes
 Text=!(loc.VirtualizationDlg_ChkBox)
Property=ENABLEVIRTUALIZATION
  Condition Action=enable![CDATA[INTEGRATED = 1]]/Condition
  Condition Action=disable![CDATA[INTEGRATED = 0]]/Condition
/Control

I am storing this value of checkbox in registry:

Component Id=Virtualization_RegistryEntries Guid=GUID-IS-HERE
ConditionNot Installed/Condition
RegistryKey Root=HKCU
 Key=Software\!(loc.CompanyName)\!(loc.ProductName)
  RegistryValue Type=string Name=Virtualization
Value=[ENABLEVIRTUALIZATION] KeyPath=yes/
/RegistryKey
  /Component

Now I have to do this:
1) If user does not click the Verify button : Registry gets value 0
2) If he clicks button (CA gets false and checkbox remains disabled) :
Registry gets value 0
3) If he clicks button and checkbox enables but he does not check the
checkbox : Registry gets value 0
4) If he clicks button and checkbox enables and he does check the check box
: Registry gets value 1

Mine is not working at only one condition, when he checks this, registry
does get 1 but either it is disabled or remains unchecked the registry gets
nothing.

Now when I use: Property Id=ENABLEVIRTUALIZATION Value=0 /
the check box is checked but remain disabled in UI and registry entry shows
as 0 (great). But now I have a valid Verify button action and checkbox
enables (but still checked). and I go ahead with installation, I saw
registry value still be 0 (oh man!!!) rather it should be 1.

Is there a better way to do this or alternate solution?

-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Storing textbox value in registry

2012-06-19 Thread Ravi Raj
I want to store a textbox value in registry but my situation is little
different.
I am doing a registry search for a particular key value and populate this
value into the textbox and again storing this value to my custom registry
key.
Everything is working great until now, but I found if I change this value
of the textbox at the run time and proceed with the installation, the new
value does not get stored in the registry but the registry search value
gets stored.

How can I make this work perfectly? Here is my code:

Property Id=INSTALLMACHINE Secure=yes/
 Property Id=SDK_MACHINE  Secure=yes
RegistrySearch Id=SDK_Machine  Root=HKCU
Key=Software\\\  Name=Machine
Type=raw //PropertyInstallExecuteSequence
Custom Action=CA.SetProperty.SDK_MACHINE After=CostFinalize
//InstallExecuteSequence
 InstallUISequence  Custom Action=CA.SetProperty.SDK_MACHINE
After=CostFinalize //InstallUISequence

 CustomAction Id=CA.SetProperty.SDK_MACHINE
Property=INSTALLMACHINE Value=[SDK_MACHINE] /
 Control Id=MSNameEdit Type=Edit X=25 Y=105 Width=220
Height=18 Property=INSTALLMACHINE /
 Component Id=SDK_Machine_RegistryEntries
Guid=4B134F16-5CB0-4BC5-8D08-EAFB1D4A71F6  RegistryKey Root=HKCU
  Key=Software\!(loc.CompanyName)\!(loc.ProductName)
RegistryValue Type=string Name=Machine Value=[INSTALLMACHINE]
KeyPath=yes/  /RegistryKey/Component



-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Passing component Id in Custom Action

2012-06-18 Thread Ravi Raj
I am trying to access the file via custom action but I am not able to get
its value. Can you help me with any working code?

On Fri, Jun 15, 2012 at 7:31 PM, jhennessey jack.hennes...@hyland.comwrote:


 raviraj87 wrote
 
  I want to pass a file name in the argument of Custom Action. These files
  are getting installed into the system. Can I pass the component id of
  these
  files rather than passing hard coded name?
 

 You can use this expression [#/filekey/] to get the full path of a file.
 Take a look here for more information:

 http://msdn.microsoft.com/en-us/library/windows/desktop/aa368609%28v=vs.85%29.aspx

 http://msdn.microsoft.com/en-us/library/windows/desktop/aa368609%28v=vs.85%29.aspx

 --
 View this message in context:
 http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Passing-component-Id-in-Custom-Action-tp7578858p7578863.html
 Sent from the wix-users mailing list archive at Nabble.com.


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Writing Registry Value from Custom Action

2012-06-18 Thread Ravi Raj
I want to store some registry value within the custom action. There are
some other registry I also write via WiX. Within Custom Action, I have to
get the path of registry key so that I can add a new string into it but I
am not sure what will be the best way to do so this.

Any suggestions??

-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Writing Registry Value from Custom Action

2012-06-18 Thread Ravi Raj
I am also thinking this way but was not sure any other (better) way of
doing this. But thanks for your valuable suggestions.

On Mon, Jun 18, 2012 at 1:31 PM, Dirk Räder d...@raeder.cc wrote:

 Hi,

 I'd take the usual way:
 Define some properties that hold the path to the registry key(s) and
 the desired value(s). Access these properties within your CA and you
 should be fine.

 This way, you can reuse the CA for more than one installer without
 changes to its source code.

 Kind regards,

 Dirk Räder

 2012/6/18 Ravi Raj raviraj.callin...@gmail.com:
  I want to store some registry value within the custom action. There are
  some other registry I also write via WiX. Within Custom Action, I have to
  get the path of registry key so that I can add a new string into it but I
  am not sure what will be the best way to do so this.
 
  Any suggestions??
 
  --
  Thanks and Regards,
  Ravi Raj
 
 --
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and
  threat landscape has changed and how IT managers can respond. Discussions
  will include endpoint security, mobile security and the latest in malware
  threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
  ___
  WiX-users mailing list
  WiX-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wix-users


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Scheduling Custom Actions for Install, Uninstall and Upgrade

2012-06-18 Thread Ravi Raj
I am authoring installer using Wix 3.6 RC. I am able to implement install,
uninstall, repair and rollback. I am only struck at Upgrade (mostly major
as my product does not support minor upgrades).

I implemented that basic upgrade but I saw some strange behavior. On
upgrade my installer runs Install CA and then uninstall CA (also removes
all components) but its shows successful install (Strange). I need to run
it again to perform uninstall. I am having separate custom actions for
install, uninstall, rollback, upgrade and uninstall.

I am using conditions like this:

Upgrade Id=$(var.ProductUpgradeCode)  UpgradeVersion
Property=NEWER_VERSION_FOUND  OnlyDetect=yes
   Language=1033
Minimum=$(var.ProductFullVersion)
IncludeMinimum=no/  UpgradeVersion Property=OLD_VERSION_FOUND
  OnlyDetect=no  Language=1033
 Minimum=$(var.ProductMinimumVersion)
Maximum=$(var.ProductFullVersion)
IncludeMinimum=yes  IncludeMaximum=no
IgnoreRemoveFailure=yes
MigrateFeatures=yes//Upgrade
 InstallUISequence  Custom Action=CA_AlreadyUpdated
After=FindRelatedProductsOLD_VERSION_FOUND/Custom  Custom
Action=CA_NoDowngrade
After=FindRelatedProductsNEWER_VERSION_FOUND/Custom/InstallUISequence

 InstallExecuteSequence  !--For Install--  Custom
Action=CA_SetBase_Install Before=CA_InstallNOT Installed/Custom
 Custom Action=CA_Install After=CA_RollbackNOT Installed OR
(Installed AND NOT (REMOVE=ALL))/Custom
   !--For Repair--  Custom Action=CA_SetBase_Repair
Before=CA_InstallInstalled AND NOT (REMOVE=ALL)/Custom
   !--For Rollback--  Custom Action=CA_SetBase_Rollback
Before=CA_RollbackNOT Installed/Custom  Custom
Action=CA_Rollback After=StartServicesNOT Installed/Custom
   !--Set properties for Uninstall--  Custom
Action=CA_SetProperty_SDKMACHINE
After=AppSearchInstalled/Custom  Custom
Action=CA_SetProperty_INSTALLPATH
After=CA_SetProperty_SDKMACHINEInstalled/Custom
   !--For UnInstall--  Custom Action=CA_SetBase_UnInstall
Before=CA_UnInstallInstalled/Custom  Custom
Action=CA_UnInstall After=MsiUnpublishAssembliesInstalled AND
REMOVE=ALL/Custom  !--For Upgrade--  Custom
Action=CA_SetBase_Upgrade Before=CA_UpgradeInstalled AND
UPGRADINGPRODUCTCODE/Custom  Custom Action=CA_Upgrade
Before=InstallFinalizeInstalled AND NOT (REMOVE=ALL) AND
UPGRADINGPRODUCTCODE/Custom!--For Upgrade Process--  Custom
Action=CA_AlreadyUpdated After=FindRelatedProductsInstalled OR
NOT OLD_VERSION_FOUND/Custom  Custom Action=CA_NoDowngrade
After=FindRelatedProductsInstalled OR NOT
NEWER_VERSION_FOUND/Custom
   RemoveExistingProducts After=InstallFinalize//InstallExecuteSequence


Am I doing all correctly?? I think not!!!

Can some one please show me how can I do this in better way?

I also wanted to ask I want to show upgrade dialog at the start of the
installer. How can I do that too?
-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] PATCH in Wix

2012-06-18 Thread Ravi Raj
I just wanted to ask that what PATCH keyword means? Upgrade or Patch?
What condition I choose if I want to display upgrade UI on upgrade as most
of the places I have seen:

Publish Dialog=WelcomeDlg Control=Next Event=NewDialog
Value=LicenseAgreementDlgNOT Installed AND NOT PATCH/Publish
Publish Dialog=WelcomeDlg Control=Next Event=NewDialog
Value=VerifyReadyDlgInstalled AND PATCH/Publish

What should I use in case of Upgrade (there is no patch in my case)?
-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Only one Registry Entry gets deleted while Repair

2012-06-15 Thread Ravi Raj
The three components are:

Component Id=Default_RegistryEntries Guid=GUID  ConditionNot
Installed/Condition  RegistryKey Root=HKCU
Key=Software\!(loc.CompanyName)\!(loc.ProductName)
RegistryValue Type=string Value=Default Value/
/RegistryKey/Component
 Component Id=SDK_Machine_RegistryEntries Guid=GUID
  ConditionNot Installed/Condition  RegistryKey Root=HKCU
  Key=Software\!(loc.CompanyName)\!(loc.ProductName)
RegistryValue Type=string Name=ServiceMachine
Value=[INSTALLMACHINE] KeyPath=yes/  /RegistryKey/Component
 Component Id=Install_Path_RegistryEntries Guid=GUID
  ConditionNot Installed/Condition  RegistryKey Root=HKCU
  Key=Software\!(loc.CompanyName)\!(loc.ProductName)
RegistryValue Type=string Name=InstallPath Value=[INSTALLDIR]
KeyPath=yes/  /RegistryKey/Component

First and last component remains the same but middle one gets flushed. I
have this following log:
MSI (s) (80:C8) [17:42:54:941]: Executing op: CacheSizeFlush(,)
MSI (s) (80:C8) [17:42:54:941]: Executing op:
ActionStart(Name=WriteRegistryValues,Description=Writing system registry
values,Template=Key: [1], Name: [2], Value: [3])
Action 17:42:54: WriteRegistryValues. Writing system registry values
MSI (s) (80:C8) [17:42:54:941]: Executing op:
ProgressTotal(Total=4,Type=1,ByteEquivalent=13200)
MSI (s) (80:C8) [17:42:54:941]: Executing op:
RegOpenKey(Root=-2147483647,Key=Software\MyServer\MyServer Management
,,BinaryType=0,,)
MSI (s) (80:C8) [17:42:54:941]: Executing op: RegAddValue(,Value=Default
Value,)
WriteRegistryValues: Key: \Software\MyServer\MyServer Management , Name: ,
Value: Default Value
MSI (s) (80:C8) [17:42:54:941]: Executing op:
RegAddValue(Name=ServiceMachine,,)
WriteRegistryValues: Key: \Software\MyServer\MyServer UCS Management Pack
2012, Name: SDKServiceMachine, Value:
MSI (s) (80:C8) [17:42:54:941]: Executing op:
RegAddValue(Name=InstallPath,Value=C:\Program Files (x86)\MyServer\MyServer
Management\,)
WriteRegistryValues: Key: \Software\MyServer\MyServer Management, Name:
InstallPath, Value: C:\Program Files (x86)\MyServer\MyServer Management\
MSI (s) (80:C8) [17:42:54:941]: Executing op:
RegAddValue(Name=Virtualization,,)
WriteRegistryValues: Key: \Software\MyServer\MyServer Management , Name:
Virtualization, Value:

The Virtualization value is not populated because checkbox is not set a
value for it, this is normal but i am worried about ServiceMachine value.

On Fri, Jun 15, 2012 at 11:29 AM, Hoover, Jacob
jacob.hoo...@greenheck.comwrote:

 Would it be possible to provide the 3 components which describe the 3
 values in question? In addition, since I assume you are rewriting these
 values during a repair it would be interesting to see how you are
 populating the property values. Have you searched the log files after
 re-invoking the installer with a /l*v logfilename.log?

 If I had to guess, you are missing the loading of the property in
 maintenance mode and the installer is deleting it cause it has no value.
 Verbose logging would tell you the value of the properties and the changes
 to the components.


 -Original Message-
 From: Ravi Raj [mailto:raviraj.callin...@gmail.com]
 Sent: Friday, June 15, 2012 12:31 AM
 To: General discussion for Windows Installer XML toolset.
 Subject: Re: [WiX-users] Only one Registry Entry gets deleted while Repair

 Ok to test Repair I manually delete some files and rerun the installer. It
 puts back all  the file at the same places again (great, I guess). But even
 if i don't delete or touch any files and just simply runs the repair. Same
 thing happens. the registry gets deleted but other two remains the same and
 this only happens on Maintenance mode repair else Right-click repair has
 normal behavior?

 I am unable to track this behavior.

 On Fri, Jun 15, 2012 at 10:49 AM, Hoover, Jacob
 jacob.hoo...@greenheck.comwrote:

  From msiexec /?,
 
  Repair Options
 /f[p|e|c|m|s|o|d|a|u|v] Product.msi | ProductCode
 Repairs a product
 p - only if file is missing
 o - if file is missing or an older version is installed
  (default)
 e - if file is missing or an equal or older version is
  installed
 d - if file is missing or a different version is installed
 c - if file is missing or checksum does not match the
  calculated value
 a - forces all files to be reinstalled
 u - all required user-specific registry entries (default)
 m - all required computer-specific registry entries
  (default)
 s - all existing shortcuts (default)
 v - runs from source and recaches local package
 
  I guess the real question is what are you expecting the repair to do
  that it isn't doing? (I see the comment of deleted files.) Are you
  saying you do an install, then manually delete files and do a repair
  and it isn't detecting the missing files? If so, could you provide a
  sample of the component

Re: [WiX-users] Only one Registry Entry gets deleted while Repair

2012-06-15 Thread Ravi Raj
I was checking the conditions for the registry entry and added a new
component:

Component Id=System_Name_RegistryEntries
Guid=833D44E7-EECA-476F-BD06-9045692EE2A1  ConditionNot
Installed/Condition  RegistryKey Root=HKCU
Key=Software\!(loc.CompanyName)\!(loc.ProductName)
RegistryValue Type=string Name=MachineName Value=[MACHINENAME]
KeyPath=yes/  /RegistryKey/Component

its a simple registry entry for storing ComputerName. I preformed the
Repair via Maintenance mode, and I saw that now both registry entries gets
deleted.

This is pretty strange. Is it happening because of:

Custom Action=CA_SetProperty_MACHINENAME After=CostFinalizeNOT
Installed/CustomCustom Action=CA_SetProperty_SDK_MACHINE
After=CA_SetProperty_MACHINENAMENOT Installed/Custom
 Custom Action=CA_SetProperty_SDKMACHINE
After=AppSearchInstalled/CustomCustom
Action=CA_SetProperty_INSTALLPATH
After=CA_SetProperty_SDKMACHINEInstalled/Custom



On Fri, Jun 15, 2012 at 11:43 AM, Ravi Raj raviraj.callin...@gmail.comwrote:

 The three components are:

 Component Id=Default_RegistryEntries Guid=GUID
   ConditionNot Installed/Condition  RegistryKey Root=HKCU  
  Key=Software\!(loc.CompanyName)\!(loc.ProductName)
 RegistryValue Type=string Value=Default Value/  
 /RegistryKey/Component
  Component Id=SDK_Machine_RegistryEntries Guid=GUID

   ConditionNot Installed/Condition  RegistryKey Root=HKCU
Key=Software\!(loc.CompanyName)\!(loc.ProductName)
 RegistryValue Type=string Name=ServiceMachine 
 Value=[INSTALLMACHINE] KeyPath=yes/  /RegistryKey/Component
  Component Id=Install_Path_RegistryEntries Guid=GUID

   ConditionNot Installed/Condition  RegistryKey Root=HKCU
Key=Software\!(loc.CompanyName)\!(loc.ProductName)
 RegistryValue Type=string Name=InstallPath Value=[INSTALLDIR] 
 KeyPath=yes/  /RegistryKey/Component

 First and last component remains the same but middle one gets flushed. I
 have this following log:
 MSI (s) (80:C8) [17:42:54:941]: Executing op: CacheSizeFlush(,)
 MSI (s) (80:C8) [17:42:54:941]: Executing op:
 ActionStart(Name=WriteRegistryValues,Description=Writing system registry
 values,Template=Key: [1], Name: [2], Value: [3])
 Action 17:42:54: WriteRegistryValues. Writing system registry values
 MSI (s) (80:C8) [17:42:54:941]: Executing op:
 ProgressTotal(Total=4,Type=1,ByteEquivalent=13200)
 MSI (s) (80:C8) [17:42:54:941]: Executing op: 
 RegOpenKey(Root=-2147483647,Key=Software\MyServer\MyServer
 Management ,,BinaryType=0,,)
 MSI (s) (80:C8) [17:42:54:941]: Executing op: RegAddValue(,Value=Default
 Value,)
 WriteRegistryValues: Key: \Software\MyServer\MyServer Management , Name: ,
 Value: Default Value
 MSI (s) (80:C8) [17:42:54:941]: Executing op:
 RegAddValue(Name=ServiceMachine,,)
 WriteRegistryValues: Key: \Software\MyServer\MyServer UCS Management Pack
 2012, Name: SDKServiceMachine, Value:
 MSI (s) (80:C8) [17:42:54:941]: Executing op:
 RegAddValue(Name=InstallPath,Value=C:\Program Files (x86)\MyServer\MyServer
 Management\,)
 WriteRegistryValues: Key: \Software\MyServer\MyServer Management, Name:
 InstallPath, Value: C:\Program Files (x86)\MyServer\MyServer Management\
 MSI (s) (80:C8) [17:42:54:941]: Executing op:
 RegAddValue(Name=Virtualization,,)
 WriteRegistryValues: Key: \Software\MyServer\MyServer Management , Name:
 Virtualization, Value:

 The Virtualization value is not populated because checkbox is not set a
 value for it, this is normal but i am worried about ServiceMachine value.


 On Fri, Jun 15, 2012 at 11:29 AM, Hoover, Jacob 
 jacob.hoo...@greenheck.com wrote:

 Would it be possible to provide the 3 components which describe the 3
 values in question? In addition, since I assume you are rewriting these
 values during a repair it would be interesting to see how you are
 populating the property values. Have you searched the log files after
 re-invoking the installer with a /l*v logfilename.log?

 If I had to guess, you are missing the loading of the property in
 maintenance mode and the installer is deleting it cause it has no value.
 Verbose logging would tell you the value of the properties and the changes
 to the components.


 -Original Message-
 From: Ravi Raj [mailto:raviraj.callin...@gmail.com]
 Sent: Friday, June 15, 2012 12:31 AM
 To: General discussion for Windows Installer XML toolset.
 Subject: Re: [WiX-users] Only one Registry Entry gets deleted while Repair

 Ok to test Repair I manually delete some files and rerun the installer.
 It puts back all  the file at the same places again (great, I guess). But
 even if i don't delete or touch any files and just simply runs the repair.
 Same thing happens. the registry gets deleted but other two remains the
 same and this only happens on Maintenance mode repair else Right-click
 repair has normal behavior?

 I am unable to track this behavior.

 On Fri, Jun 15, 2012 at 10:49 AM, Hoover, Jacob
 jacob.hoo...@greenheck.comwrote:

  From msiexec /?,
 
  Repair Options
 /f[p|e|c|m|s|o

[WiX-users] Passing component Id in Custom Action

2012-06-15 Thread Ravi Raj
I want to pass a file name in the argument of Custom Action. These files
are getting installed into the system. Can I pass the component id of these
files rather than passing hard coded name?

-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Only one Registry Entry gets deleted while Repair

2012-06-15 Thread Ravi Raj
I got the answer:

Custom Action=CA_SetProperty_MACHINENAME After=CostFinalize
/Custom Action=CA_SetProperty_SDK_MACHINE
After=CA_SetProperty_MACHINENAME /

I have to remove *NOT Installed* condition form the custom action. BTW
thanks for your responses.

On Fri, Jun 15, 2012 at 2:22 PM, Ravi Raj raviraj.callin...@gmail.comwrote:

 I was checking the conditions for the registry entry and added a new
 component:

 Component Id=System_Name_RegistryEntries 
 Guid=833D44E7-EECA-476F-BD06-9045692EE2A1
   ConditionNot Installed/Condition  RegistryKey Root=HKCU  
  Key=Software\!(loc.CompanyName)\!(loc.ProductName)
 RegistryValue Type=string Name=MachineName Value=[MACHINENAME] 
 KeyPath=yes/  /RegistryKey/Component

 its a simple registry entry for storing ComputerName. I preformed the
 Repair via Maintenance mode, and I saw that now both registry entries gets
 deleted.

 This is pretty strange. Is it happening because of:

 Custom Action=CA_SetProperty_MACHINENAME After=CostFinalizeNOT 
 Installed/CustomCustom Action=CA_SetProperty_SDK_MACHINE 
 After=CA_SetProperty_MACHINENAMENOT Installed/Custom
  Custom Action=CA_SetProperty_SDKMACHINE 
 After=AppSearchInstalled/CustomCustom 
 Action=CA_SetProperty_INSTALLPATH 
 After=CA_SetProperty_SDKMACHINEInstalled/Custom



 On Fri, Jun 15, 2012 at 11:43 AM, Ravi Raj raviraj.callin...@gmail.comwrote:

 The three components are:

 Component Id=Default_RegistryEntries Guid=GUID

   ConditionNot Installed/Condition  RegistryKey Root=HKCU 
   Key=Software\!(loc.CompanyName)\!(loc.ProductName)
 RegistryValue Type=string Value=Default Value/  
 /RegistryKey/Component
  Component Id=SDK_Machine_RegistryEntries Guid=GUID


   ConditionNot Installed/Condition  RegistryKey Root=HKCU   
 Key=Software\!(loc.CompanyName)\!(loc.ProductName)
 RegistryValue Type=string Name=ServiceMachine 
 Value=[INSTALLMACHINE] KeyPath=yes/  /RegistryKey/Component
  Component Id=Install_Path_RegistryEntries Guid=GUID


   ConditionNot Installed/Condition  RegistryKey Root=HKCU   
 Key=Software\!(loc.CompanyName)\!(loc.ProductName)
 RegistryValue Type=string Name=InstallPath Value=[INSTALLDIR] 
 KeyPath=yes/  /RegistryKey/Component

 First and last component remains the same but middle one gets flushed. I
 have this following log:
 MSI (s) (80:C8) [17:42:54:941]: Executing op: CacheSizeFlush(,)
 MSI (s) (80:C8) [17:42:54:941]: Executing op:
 ActionStart(Name=WriteRegistryValues,Description=Writing system registry
 values,Template=Key: [1], Name: [2], Value: [3])
 Action 17:42:54: WriteRegistryValues. Writing system registry values
 MSI (s) (80:C8) [17:42:54:941]: Executing op:
 ProgressTotal(Total=4,Type=1,ByteEquivalent=13200)
 MSI (s) (80:C8) [17:42:54:941]: Executing op: 
 RegOpenKey(Root=-2147483647,Key=Software\MyServer\MyServer
 Management ,,BinaryType=0,,)
 MSI (s) (80:C8) [17:42:54:941]: Executing op: RegAddValue(,Value=Default
 Value,)
 WriteRegistryValues: Key: \Software\MyServer\MyServer Management , Name:
 , Value: Default Value
 MSI (s) (80:C8) [17:42:54:941]: Executing op:
 RegAddValue(Name=ServiceMachine,,)
 WriteRegistryValues: Key: \Software\MyServer\MyServer UCS Management Pack
 2012, Name: SDKServiceMachine, Value:
 MSI (s) (80:C8) [17:42:54:941]: Executing op:
 RegAddValue(Name=InstallPath,Value=C:\Program Files (x86)\MyServer\MyServer
 Management\,)
 WriteRegistryValues: Key: \Software\MyServer\MyServer Management, Name:
 InstallPath, Value: C:\Program Files (x86)\MyServer\MyServer Management\
 MSI (s) (80:C8) [17:42:54:941]: Executing op:
 RegAddValue(Name=Virtualization,,)
 WriteRegistryValues: Key: \Software\MyServer\MyServer Management , Name:
 Virtualization, Value:

 The Virtualization value is not populated because checkbox is not set a
 value for it, this is normal but i am worried about ServiceMachine value.


 On Fri, Jun 15, 2012 at 11:29 AM, Hoover, Jacob 
 jacob.hoo...@greenheck.com wrote:

 Would it be possible to provide the 3 components which describe the 3
 values in question? In addition, since I assume you are rewriting these
 values during a repair it would be interesting to see how you are
 populating the property values. Have you searched the log files after
 re-invoking the installer with a /l*v logfilename.log?

 If I had to guess, you are missing the loading of the property in
 maintenance mode and the installer is deleting it cause it has no value.
 Verbose logging would tell you the value of the properties and the changes
 to the components.


 -Original Message-
 From: Ravi Raj [mailto:raviraj.callin...@gmail.com]
 Sent: Friday, June 15, 2012 12:31 AM
 To: General discussion for Windows Installer XML toolset.
 Subject: Re: [WiX-users] Only one Registry Entry gets deleted while
 Repair

 Ok to test Repair I manually delete some files and rerun the installer.
 It puts back all  the file at the same places again (great, I guess). But
 even if i don't delete or touch any files and just

[WiX-users] Conditions for Install, Uninstall, Repair

2012-06-14 Thread Ravi Raj
I am using these conditions but they are behaving strangly:

InstallExecuteSequence!--Set properties for Installation--Custom
Action=CA_SetProperty_MACHINENAME After=CostFinalizeNOT
Installed/CustomCustom Action=CA_SetProperty_SDK_MACHINE
After=CA_SetProperty_MACHINENAMENOT Installed/Custom
 !--For Install Only--Custom Action=CA_SetBase_Install
Before=CA_Install(NOT Installed) OR (UPGRADINGPRODUCTCODE) OR
NOT(REMOVE = ALL)/CustomCustom Action=CA_Install
After=CA_Rollback(NOT Installed) OR (UPGRADINGPRODUCTCODE) OR
NOT(REMOVE = ALL) OR (Installed AND (InstallMode =
Repair))/Custom
 !--For Repair Only (properties set during Uninstall are going to use
here also)--Custom Action=CA_SetBase_Repair
Before=CA_InstallInstalled AND (InstallMode = Repair)/Custom
 !--For Rollback Only--Custom Action=CA_SetBase_Rollback
Before=CA_RollbackNOT Installed/CustomCustom
Action=CA_Rollback After=StartServicesNOT Installed/Custom
 !--Set properties for Uninstall--Custom
Action=CA_SetProperty_SDKMACHINE
After=AppSearchInstalled/CustomCustom
Action=CA_SetProperty_INSTALLPATH
After=CA_SetProperty_SDKMACHINEInstalled/Custom
 !--For UnInstall Only--Custom Action=CA_SetBase_UnInstall
Before=CA_UnInstallInstalled/CustomCustom Action=CA_UnInstall
After=MsiUnpublishAssembliesInstalled AND ((NOT
UPGRADINGPRODUCTCODE) AND (REMOVE = ALL)) AND (InstallMode =
Remove)/Custom
/InstallExecuteSequence


On install, I am adding three registry values, but on repair first i read
these values, run a custom action. But the last registry value gets deleted
but other two remains the same.
Ok registry values are populated during install and input are taken from
textbox. But All registry addition are same but I am not sure why only last
value gets removed?
Can anyone please show me the error in the above code?
or can some one show me condition which runs *only on* INSTALL, REPAIR,
UNINSTALL and UPGRADE

-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Conditions for Install, Uninstall, Repair

2012-06-14 Thread Ravi Raj
I have checked that InstallMode = Repair or InstallMode = Remove is not
working at all.

On Thu, Jun 14, 2012 at 12:56 PM, Ravi Raj raviraj.callin...@gmail.comwrote:

 I am using these conditions but they are behaving strangly:

 InstallExecuteSequence!--Set properties for Installation--Custom 
 Action=CA_SetProperty_MACHINENAME After=CostFinalizeNOT 
 Installed/CustomCustom Action=CA_SetProperty_SDK_MACHINE 
 After=CA_SetProperty_MACHINENAMENOT Installed/Custom
  !--For Install Only--Custom Action=CA_SetBase_Install 
 Before=CA_Install(NOT Installed) OR (UPGRADINGPRODUCTCODE) OR NOT(REMOVE = 
 ALL)/CustomCustom Action=CA_Install After=CA_Rollback(NOT 
 Installed) OR (UPGRADINGPRODUCTCODE) OR NOT(REMOVE = ALL) OR (Installed AND 
 (InstallMode = Repair))/Custom
  !--For Repair Only (properties set during Uninstall are going to use here 
 also)--Custom Action=CA_SetBase_Repair Before=CA_InstallInstalled AND 
 (InstallMode = Repair)/Custom
  !--For Rollback Only--Custom Action=CA_SetBase_Rollback 
 Before=CA_RollbackNOT Installed/CustomCustom Action=CA_Rollback 
 After=StartServicesNOT Installed/Custom
  !--Set properties for Uninstall--Custom 
 Action=CA_SetProperty_SDKMACHINE 
 After=AppSearchInstalled/CustomCustom 
 Action=CA_SetProperty_INSTALLPATH 
 After=CA_SetProperty_SDKMACHINEInstalled/Custom
  !--For UnInstall Only--Custom Action=CA_SetBase_UnInstall 
 Before=CA_UnInstallInstalled/CustomCustom Action=CA_UnInstall 
 After=MsiUnpublishAssembliesInstalled AND ((NOT UPGRADINGPRODUCTCODE) AND 
 (REMOVE = ALL)) AND (InstallMode = Remove)/Custom
 /InstallExecuteSequence


 On install, I am adding three registry values, but on repair first i read
 these values, run a custom action. But the last registry value gets deleted
 but other two remains the same.
 Ok registry values are populated during install and input are taken from
 textbox. But All registry addition are same but I am not sure why only last
 value gets removed?
 Can anyone please show me the error in the above code?
 or can some one show me condition which runs *only on* INSTALL, REPAIR,
 UNINSTALL and UPGRADE

 --
 Thanks and Regards,
 Ravi Raj




-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Conditions for Install, Uninstall, Repair

2012-06-14 Thread Ravi Raj
ok i got this Remove=ALL works great.

On Thu, Jun 14, 2012 at 2:19 PM, Ravi Raj raviraj.callin...@gmail.comwrote:

 I have checked that InstallMode = Repair or InstallMode = Remove is
 not working at all.


 On Thu, Jun 14, 2012 at 12:56 PM, Ravi Raj raviraj.callin...@gmail.comwrote:

 I am using these conditions but they are behaving strangly:

 InstallExecuteSequence!--Set properties for Installation--Custom 
 Action=CA_SetProperty_MACHINENAME After=CostFinalizeNOT 
 Installed/CustomCustom Action=CA_SetProperty_SDK_MACHINE 
 After=CA_SetProperty_MACHINENAMENOT Installed/Custom
  !--For Install Only--Custom Action=CA_SetBase_Install 
 Before=CA_Install(NOT Installed) OR (UPGRADINGPRODUCTCODE) OR NOT(REMOVE 
 = ALL)/CustomCustom Action=CA_Install After=CA_Rollback(NOT 
 Installed) OR (UPGRADINGPRODUCTCODE) OR NOT(REMOVE = ALL) OR (Installed 
 AND (InstallMode = Repair))/Custom
  !--For Repair Only (properties set during Uninstall are going to use here 
 also)--Custom Action=CA_SetBase_Repair Before=CA_InstallInstalled AND 
 (InstallMode = Repair)/Custom
  !--For Rollback Only--Custom Action=CA_SetBase_Rollback 
 Before=CA_RollbackNOT Installed/CustomCustom Action=CA_Rollback 
 After=StartServicesNOT Installed/Custom
  !--Set properties for Uninstall--Custom 
 Action=CA_SetProperty_SDKMACHINE 
 After=AppSearchInstalled/CustomCustom 
 Action=CA_SetProperty_INSTALLPATH 
 After=CA_SetProperty_SDKMACHINEInstalled/Custom
  !--For UnInstall Only--Custom Action=CA_SetBase_UnInstall 
 Before=CA_UnInstallInstalled/CustomCustom Action=CA_UnInstall 
 After=MsiUnpublishAssembliesInstalled AND ((NOT UPGRADINGPRODUCTCODE) AND 
 (REMOVE = ALL)) AND (InstallMode = Remove)/Custom

 /InstallExecuteSequence


 On install, I am adding three registry values, but on repair first i read
 these values, run a custom action. But the last registry value gets deleted
 but other two remains the same.
 Ok registry values are populated during install and input are taken from
 textbox. But All registry addition are same but I am not sure why only last
 value gets removed?
 Can anyone please show me the error in the above code?
 or can some one show me condition which runs *only on* INSTALL, REPAIR,
 UNINSTALL and UPGRADE

 --
 Thanks and Regards,
 Ravi Raj




 --
 Thanks and Regards,
 Ravi Raj




-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Only one Registry Entry gets deleted while Repair

2012-06-14 Thread Ravi Raj
I have seen log for those valus and they are:
MSI (s) (80:C8) [17:42:53:519]: PROPERTY CHANGE: Adding REINSTALLMODE
property. Its value is 'ecmus'.
MSI (s) (80:C8) [17:42:53:519]: PROPERTY CHANGE: Adding SECONDSEQUENCE
property. Its value is '1'.
MSI (s) (80:C8) [17:42:53:519]: PROPERTY CHANGE: Adding REINSTALL property.
Its value is 'ProductFeature,Complete'.

What should I do to resolve this issue?

On Fri, Jun 15, 2012 at 10:16 AM, Hoover, Jacob
jacob.hoo...@greenheck.comwrote:

 Hmm,
  I'd bet that if you compare the REINSTALL and REINSTALLMODE properties of
 the log files from both would show a difference. I'm a bit confused as to
 why you are expecting key path (registry) entries  to be deleted. If the
 key path is saying the component is there and a repair happens and the
 feature is selected, it should skip any further checks of other objects
 within said component.

 Jacob


 -Original Message-
 From: Ravi Raj [mailto:raviraj.callin...@gmail.com]
 Sent: Thursday, June 14, 2012 10:38 PM
 To: General discussion for Windows Installer XML toolset.
 Subject: [WiX-users] Only one Registry Entry gets deleted while Repair

 I am seeing this strange behavior of my installer while performing Repair.
 When I do Right-click - Repair, things happens great. I get back my
 missing (deleted) files. and also custom action preforms great.
 But when I double-click the installer and perform repair via Maintenance
 Mode, things happen OK but only one registry value gets deleted while rest
 other two remains the same. I am not sure why this happens?

 InstallUISequence  Custom Action=CA_SetProperty_MACHINENAME
 After=CostFinalizeNOT Installed/Custom  Custom
 Action=CA_SetProperty_SDK_MACHINE
 After=CA_SetProperty_MACHINENAMENOT Installed/Custom
   !--For Uninstall--  Custom Action=CA_SetProperty_SDKMACHINE
 After=AppSearchInstalled/Custom  Custom
 Action=CA_SetProperty_INSTALLPATH
 After=CA_SetProperty_SDKMACHINEInstalled/Custom/InstallUISequence
  InstallExecuteSequence  !--Set properties for Installation-- Custom
 Action=CA_SetProperty_MACHINENAME After=CostFinalizeNOT
 Installed/Custom  Custom Action=CA_SetProperty_SDK_MACHINE
 After=CA_SetProperty_MACHINENAMENOT Installed/Custom
   !--For Repair--  Custom Action=CA_SetBase_Repair
 Before=CA_InstallInstalled AND NOT (REMOVE=ALL)/Custom
   !--Set properties for Uninstall--  Custom
 Action=CA_SetProperty_SDKMACHINE
 After=AppSearchInstalled/Custom  Custom
 Action=CA_SetProperty_INSTALLPATH
 After=CA_SetProperty_SDKMACHINEInstalled/Custom
   !--For UnInstall--  Custom Action=CA_SetBase_UnInstall
 Before=CA_UnInstallInstalled/Custom  Custom Action=CA_UnInstall
 After=MsiUnpublishAssembliesInstalled AND
 REMOVE=ALL/Custom/InstallExecuteSequence
  !--This is how I populate registry--Component
 Id=SDK_Machine_RegistryEntries
 Guid=4B134F16-5CB0-4BC5-8D08-EAFB1D4A71F6  ConditionNot
 Installed/Condition  RegistryKey Root=HKCU
 Key=Software\!(loc.CompanyName)\!(loc.ProductName)
 RegistryValue Type=string Name=SDKServiceMachine
 Value=[INSTALLMACHINE] KeyPath=yes/  /RegistryKey/Component
  !--Custom action to populate regstry--CustomAction
 Id=CA_SetProperty_SDK_MACHINE Property=INSTALLMACHINE
 Value=[SDK_MACHINE] Execute=firstSequence /  !--Getting the value
 for registry--!--Search for Operations Manager SDK machine name from
 Registry--Property Id=SDK_MACHINE
  Secure=yes  RegistrySearch Id=SDK_Machine
 Root=HKCU  Key=Software\\\
 Name=ServiceMachine  Type=raw //Property


 --
 Thanks and Regards,
 Ravi Raj

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and threat
 landscape has changed and how IT managers can respond. Discussions will
 include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include

Re: [WiX-users] Only one Registry Entry gets deleted while Repair

2012-06-14 Thread Ravi Raj
Ok to test Repair I manually delete some files and rerun the installer. It
puts back all  the file at the same places again (great, I guess). But even
if i don't delete or touch any files and just simply runs the repair. Same
thing happens. the registry gets deleted but other two remains the same and
this only happens on Maintenance mode repair else Right-click repair has
normal behavior?

I am unable to track this behavior.

On Fri, Jun 15, 2012 at 10:49 AM, Hoover, Jacob
jacob.hoo...@greenheck.comwrote:

 From msiexec /?,

 Repair Options
/f[p|e|c|m|s|o|d|a|u|v] Product.msi | ProductCode
Repairs a product
p - only if file is missing
o - if file is missing or an older version is installed
 (default)
e - if file is missing or an equal or older version is
 installed
d - if file is missing or a different version is installed
c - if file is missing or checksum does not match the
 calculated value
a - forces all files to be reinstalled
u - all required user-specific registry entries (default)
m - all required computer-specific registry entries
 (default)
s - all existing shortcuts (default)
v - runs from source and recaches local package

 I guess the real question is what are you expecting the repair to do that
 it isn't doing? (I see the comment of deleted files.) Are you saying you do
 an install, then manually delete files and do a repair and it isn't
 detecting the missing files? If so, could you provide a sample of the
 component in which said files reside?

 Jacob

 -Original Message-
 From: Ravi Raj [mailto:raviraj.callin...@gmail.com]
 Sent: Friday, June 15, 2012 12:08 AM
 To: General discussion for Windows Installer XML toolset.
 Subject: Re: [WiX-users] Only one Registry Entry gets deleted while Repair

 I have seen log for those valus and they are:
 MSI (s) (80:C8) [17:42:53:519]: PROPERTY CHANGE: Adding REINSTALLMODE
 property. Its value is 'ecmus'.
 MSI (s) (80:C8) [17:42:53:519]: PROPERTY CHANGE: Adding SECONDSEQUENCE
 property. Its value is '1'.
 MSI (s) (80:C8) [17:42:53:519]: PROPERTY CHANGE: Adding REINSTALL property.
 Its value is 'ProductFeature,Complete'.

 What should I do to resolve this issue?

 On Fri, Jun 15, 2012 at 10:16 AM, Hoover, Jacob
 jacob.hoo...@greenheck.comwrote:

  Hmm,
   I'd bet that if you compare the REINSTALL and REINSTALLMODE
  properties of the log files from both would show a difference. I'm a
  bit confused as to why you are expecting key path (registry) entries
  to be deleted. If the key path is saying the component is there and a
  repair happens and the feature is selected, it should skip any further
 checks of other objects
  within said component.
 
  Jacob
 
 
  -Original Message-
  From: Ravi Raj [mailto:raviraj.callin...@gmail.com]
  Sent: Thursday, June 14, 2012 10:38 PM
  To: General discussion for Windows Installer XML toolset.
  Subject: [WiX-users] Only one Registry Entry gets deleted while Repair
 
  I am seeing this strange behavior of my installer while performing
 Repair.
  When I do Right-click - Repair, things happens great. I get back my
  missing (deleted) files. and also custom action preforms great.
  But when I double-click the installer and perform repair via
  Maintenance Mode, things happen OK but only one registry value gets
  deleted while rest other two remains the same. I am not sure why this
 happens?
 
  InstallUISequence  Custom Action=CA_SetProperty_MACHINENAME
  After=CostFinalizeNOT Installed/Custom  Custom
  Action=CA_SetProperty_SDK_MACHINE
  After=CA_SetProperty_MACHINENAMENOT Installed/Custom
!--For Uninstall--  Custom Action=CA_SetProperty_SDKMACHINE
  After=AppSearchInstalled/Custom  Custom
  Action=CA_SetProperty_INSTALLPATH
  After=CA_SetProperty_SDKMACHINEInstalled/Custom/InstallUISequenc
  e  InstallExecuteSequence  !--Set properties for Installation--
  Custom Action=CA_SetProperty_MACHINENAME After=CostFinalizeNOT
  Installed/Custom  Custom Action=CA_SetProperty_SDK_MACHINE
  After=CA_SetProperty_MACHINENAMENOT Installed/Custom
!--For Repair--  Custom Action=CA_SetBase_Repair
  Before=CA_InstallInstalled AND NOT (REMOVE=ALL)/Custom
!--Set properties for Uninstall--  Custom
  Action=CA_SetProperty_SDKMACHINE
  After=AppSearchInstalled/Custom  Custom
  Action=CA_SetProperty_INSTALLPATH
  After=CA_SetProperty_SDKMACHINEInstalled/Custom
!--For UnInstall--  Custom Action=CA_SetBase_UnInstall
  Before=CA_UnInstallInstalled/Custom  Custom Action=CA_UnInstall
  After=MsiUnpublishAssembliesInstalled AND
  REMOVE=ALL/Custom/InstallExecuteSequence
   !--This is how I populate registry--Component
  Id=SDK_Machine_RegistryEntries
  Guid=4B134F16-5CB0-4BC5-8D08-EAFB1D4A71F6  ConditionNot
  Installed/Condition  RegistryKey Root=HKCU
  Key=Software\!(loc.CompanyName)\!(loc.ProductName)
  RegistryValue Type=string

[WiX-users] Rollback custom action not working properly

2012-06-08 Thread Ravi Raj
I have defined the rollback custom action like following:

CustomAction Id=CA_SetBase_Rollback Property=CA_Rollback
Value='MACHINE=[INSTALLMACHINE];VALUE=[BASE]' Execute='immediate'
Return=check /

CustomAction Id=CA_Rollback BinaryKey=BIN_CustomAction
DllEntry=Rollback Execute=rollback Return=check /

InstallExecuteSequence
!--For Install--
  Custom Action=CA_SetBase_Install Before=CA_InstallNOT
Installed/Custom
  Custom Action=CA_Install After=CA_RollbackNOT Installed/Custom

!--For Rollback--
  Custom Action=CA_SetBase_Rollback Before=CA_RollbackNOT
Installed/Custom
  Custom Action=CA_Rollback After=StartServicesNOT
Installed/Custom

/InstallExecuteSequence

Now i run the installer, it goes fine copies  files to the respective
folders and then starts the custom action to perform. The custom action
takes some times to complete, about 30 seconds. If the I press the cancel
button to stop the installation process, i get the cancel dialog, I select
Yes.

The installer then completes the custom action task then after it performs
the rollback (i guess the default rollback and not the custom action).
After complete rollback i see all folders gone, registry deleted (this is
what i expected) but the changes made by the custom action still exists.
The rollback custom action which i wrote does not performs.

I am not sure why this is happening?

-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Question on using burn to our existing project

2012-06-08 Thread Ravi Raj
Do you have some guide or tutorial to use burn rightfully, especially using
the UI of burn and WiX UI simultaneously?

On Fri, Jun 8, 2012 at 12:16 PM, Neil Sleightholm n...@x2systems.comwrote:

 1. No. Typically burn provides the UI so your existing UI is not used,
 although you can display it if you need to. If you need a rich UI then this
 is probably the easiest option as although burn can support your own UI it
 is not an easy process.
 2. Definitely.

 Neil

 Neil Sleightholm
 n...@x2systems.commailto:n...@x2systems.com


 On 7 Jun 2012, at 23:04, Shyam Kannam wrote:

 Hi,
 I still consider myself a beginner in using WiX.  I've a requirement for
 the installer to automatically detect, download and install the latest .NET
 Framework.

 After going through the latest WiX release (RC), I read about the burn
 feature by Bob.  My guess is burn is the right tool, but I've other
 questions.  Appreciate your help.

 1. Does adding burn to our existing WiX project, do we need to make any
 additional changes to WiX UI? - project uses WixUI_Common, WixUI_Mondo,
 WixUI_ErrorProgressText.

 2. Could you please suggest if burn is indeed the right step for the above
 requirement?

 thank you in advance.

 Regards
 Shyam

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.netmailto:WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users





 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Question on using burn to our existing project

2012-06-08 Thread Ravi Raj
I am also have a doubt, I am using OS condition in BURN as this:

 Bundle Name=Name Version=$(var.Version) Manufacturer=Company
UpgradeCode=E688ECFE-A468-4B65-85C4-B4D9B384375C
Copyright=Copyright© 2012 IconSourceFile=Resource\Setup.ico
SplashScreenSourceFile=Resource\SplashScreen.bmp
AboutUrl=http://www.x.com;
Condition=((VersionNT = 600) AND (ServicePackLevel = 2)) OR
((VersionNT = 610) AND (ServicePackLevel = 1)) OR (VersionNT = 620) 

But i am getting The specified program requires a newer version of
Windows. at the very beginning..
Even (VersionNT = v6.0) is also not working.

How to fix this?

On Fri, Jun 8, 2012 at 2:33 PM, Neil Sleightholm n...@x2systems.com wrote:

 Burn documentation is still a bit scarce at the moment. I have written up
 some notes based on my experience http://neilsleightholm.blogspot.co.uk/.
 Using both UIs is simply a case of setting
 MsiPackage/@DisplayInternalUI=yes but I don't think this is the tidiest
 solution.

 Neil

 Neil Sleightholm
 n...@x2systems.commailto:n...@x2systems.com


 On 8 Jun 2012, at 09:43, Ravi Raj wrote:

 Do you have some guide or tutorial to use burn rightfully, especially using
 the UI of burn and WiX UI simultaneously?

 On Fri, Jun 8, 2012 at 12:16 PM, Neil Sleightholm n...@x2systems.com
 mailto:n...@x2systems.comwrote:

 1. No. Typically burn provides the UI so your existing UI is not used,
 although you can display it if you need to. If you need a rich UI then this
 is probably the easiest option as although burn can support your own UI it
 is not an easy process.
 2. Definitely.

 Neil

 Neil Sleightholm
 n...@x2systems.commailto:n...@x2systems.commailto:n...@x2systems.com


 On 7 Jun 2012, at 23:04, Shyam Kannam wrote:

 Hi,
 I still consider myself a beginner in using WiX.  I've a requirement for
 the installer to automatically detect, download and install the latest .NET
 Framework.

 After going through the latest WiX release (RC), I read about the burn
 feature by Bob.  My guess is burn is the right tool, but I've other
 questions.  Appreciate your help.

 1. Does adding burn to our existing WiX project, do we need to make any
 additional changes to WiX UI? - project uses WixUI_Common, WixUI_Mondo,
 WixUI_ErrorProgressText.

 2. Could you please suggest if burn is indeed the right step for the above
 requirement?

 thank you in advance.

 Regards
 Shyam


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.netmailto:WiX-users@lists.sourceforge.net
 mailto:WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users






 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.netmailto:WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




 --
 Thanks and Regards,
 Ravi Raj

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.netmailto:WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users





 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live

Re: [WiX-users] Question on using burn to our existing project

2012-06-08 Thread Ravi Raj
Thanks.
Condition=((VersionNT = v6.0) AND (ServicePackLevel = 2)) OR ((VersionNT
= v6.1) AND (ServicePackLevel = 1)) OR (VersionNT = v6.2)
is working perfect.

But can I add custom message to this condition launch??

On Fri, Jun 8, 2012 at 3:18 PM, Neil Sleightholm n...@x2systems.com wrote:

 The correct syntax is to use v6.0, v6.1 etc rather than 600, 610. Check
 the install log when you run to see what the values are.

 Neil

 Neil Sleightholm
 n...@x2systems.commailto:n...@x2systems.com


 On 8 Jun 2012, at 10:36, Ravi Raj wrote:

 I am also have a doubt, I am using OS condition in BURN as this:

 Bundle Name=Name Version=$(var.Version) Manufacturer=Company
 UpgradeCode=E688ECFE-A468-4B65-85C4-B4D9B384375C
   Copyright=Copyright© 2012 IconSourceFile=Resource\Setup.ico
   SplashScreenSourceFile=Resource\SplashScreen.bmp
   AboutUrl=http://www.x.com;
   Condition=((VersionNT = 600) AND (ServicePackLevel = 2)) OR
 ((VersionNT = 610) AND (ServicePackLevel = 1)) OR (VersionNT = 620) 

 But i am getting The specified program requires a newer version of
 Windows. at the very beginning..
 Even (VersionNT = v6.0) is also not working.

 How to fix this?

 On Fri, Jun 8, 2012 at 2:33 PM, Neil Sleightholm n...@x2systems.com
 mailto:n...@x2systems.com wrote:

 Burn documentation is still a bit scarce at the moment. I have written up
 some notes based on my experience http://neilsleightholm.blogspot.co.uk/.
 Using both UIs is simply a case of setting
 MsiPackage/@DisplayInternalUI=yes but I don't think this is the tidiest
 solution.

 Neil

 Neil Sleightholm
 n...@x2systems.commailto:n...@x2systems.commailto:n...@x2systems.com


 On 8 Jun 2012, at 09:43, Ravi Raj wrote:

 Do you have some guide or tutorial to use burn rightfully, especially using
 the UI of burn and WiX UI simultaneously?

 On Fri, Jun 8, 2012 at 12:16 PM, Neil Sleightholm n...@x2systems.com
 mailto:n...@x2systems.com
 mailto:n...@x2systems.comwrote:

 1. No. Typically burn provides the UI so your existing UI is not used,
 although you can display it if you need to. If you need a rich UI then this
 is probably the easiest option as although burn can support your own UI it
 is not an easy process.
 2. Definitely.

 Neil

 Neil Sleightholm
 n...@x2systems.commailto:n...@x2systems.commailto:n...@x2systems.com
 mailto:n...@x2systems.com


 On 7 Jun 2012, at 23:04, Shyam Kannam wrote:

 Hi,
 I still consider myself a beginner in using WiX.  I've a requirement for
 the installer to automatically detect, download and install the latest .NET
 Framework.

 After going through the latest WiX release (RC), I read about the burn
 feature by Bob.  My guess is burn is the right tool, but I've other
 questions.  Appreciate your help.

 1. Does adding burn to our existing WiX project, do we need to make any
 additional changes to WiX UI? - project uses WixUI_Common, WixUI_Mondo,
 WixUI_ErrorProgressText.

 2. Could you please suggest if burn is indeed the right step for the above
 requirement?

 thank you in advance.

 Regards
 Shyam



 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.netmailto:WiX-users@lists.sourceforge.net
 mailto:WiX-users@lists.sourceforge.net
 mailto:WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users







 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.netmailto:WiX-users@lists.sourceforge.net
 mailto:WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




 --
 Thanks and Regards,
 Ravi Raj


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.netmailto:WiX-users@lists.sourceforge.net
 mailto:WiX-users@lists.sourceforge.net
 https

Re: [WiX-users] Question on using burn to our existing project

2012-06-08 Thread Ravi Raj
Again can I make this installer dialog to appear in the center of screen?

On Fri, Jun 8, 2012 at 3:34 PM, Ravi Raj raviraj.callin...@gmail.comwrote:

 Thanks.
 Condition=((VersionNT = v6.0) AND (ServicePackLevel = 2)) OR
 ((VersionNT = v6.1) AND (ServicePackLevel = 1)) OR (VersionNT = v6.2)
 is working perfect.

 But can I add custom message to this condition launch??


 On Fri, Jun 8, 2012 at 3:18 PM, Neil Sleightholm n...@x2systems.comwrote:

 The correct syntax is to use v6.0, v6.1 etc rather than 600, 610. Check
 the install log when you run to see what the values are.

 Neil

 Neil Sleightholm
 n...@x2systems.commailto:n...@x2systems.com


 On 8 Jun 2012, at 10:36, Ravi Raj wrote:

 I am also have a doubt, I am using OS condition in BURN as this:

 Bundle Name=Name Version=$(var.Version) Manufacturer=Company
 UpgradeCode=E688ECFE-A468-4B65-85C4-B4D9B384375C
   Copyright=Copyright© 2012 IconSourceFile=Resource\Setup.ico
   SplashScreenSourceFile=Resource\SplashScreen.bmp
   AboutUrl=http://www.x.com;
   Condition=((VersionNT = 600) AND (ServicePackLevel = 2)) OR
 ((VersionNT = 610) AND (ServicePackLevel = 1)) OR (VersionNT = 620) 

 But i am getting The specified program requires a newer version of
 Windows. at the very beginning..
 Even (VersionNT = v6.0) is also not working.

 How to fix this?

 On Fri, Jun 8, 2012 at 2:33 PM, Neil Sleightholm n...@x2systems.com
 mailto:n...@x2systems.com wrote:

 Burn documentation is still a bit scarce at the moment. I have written up
 some notes based on my experience http://neilsleightholm.blogspot.co.uk/.
 Using both UIs is simply a case of setting
 MsiPackage/@DisplayInternalUI=yes but I don't think this is the tidiest
 solution.

 Neil

 Neil Sleightholm
 n...@x2systems.commailto:n...@x2systems.commailto:n...@x2systems.com


 On 8 Jun 2012, at 09:43, Ravi Raj wrote:

 Do you have some guide or tutorial to use burn rightfully, especially
 using
 the UI of burn and WiX UI simultaneously?

 On Fri, Jun 8, 2012 at 12:16 PM, Neil Sleightholm n...@x2systems.com
 mailto:n...@x2systems.com
 mailto:n...@x2systems.comwrote:

 1. No. Typically burn provides the UI so your existing UI is not used,
 although you can display it if you need to. If you need a rich UI then
 this
 is probably the easiest option as although burn can support your own UI it
 is not an easy process.
 2. Definitely.

 Neil

 Neil Sleightholm
 n...@x2systems.commailto:n...@x2systems.commailto:n...@x2systems.com
 mailto:n...@x2systems.com


 On 7 Jun 2012, at 23:04, Shyam Kannam wrote:

 Hi,
 I still consider myself a beginner in using WiX.  I've a requirement for
 the installer to automatically detect, download and install the latest
 .NET
 Framework.

 After going through the latest WiX release (RC), I read about the burn
 feature by Bob.  My guess is burn is the right tool, but I've other
 questions.  Appreciate your help.

 1. Does adding burn to our existing WiX project, do we need to make any
 additional changes to WiX UI? - project uses WixUI_Common, WixUI_Mondo,
 WixUI_ErrorProgressText.

 2. Could you please suggest if burn is indeed the right step for the above
 requirement?

 thank you in advance.

 Regards
 Shyam



 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.netmailto:WiX-users@lists.sourceforge.net
 mailto:WiX-users@lists.sourceforge.net
 mailto:WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users







 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.netmailto:WiX-users@lists.sourceforge.net
 mailto:WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




 --
 Thanks and Regards,
 Ravi Raj


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263

Re: [WiX-users] Scheduling Install and Uninstall Custom Actions

2012-06-07 Thread Ravi Raj
I found a way by opening (via orca) my previous installer (made by Visual
Studio 2010 basic msi). All the custom actions are using component
conditions. I am not at all comfortable in this. So I am modified my
current installer with following  CAs. Its working great.

Custom Action=CA_SetBase_Install Before=CA_InstallNOT
Installed/Custom
  Custom Action=CA_Install After=StartServicesNOT Installed AND
NOT UPGRADINGPRODUCTCODE/Custom

Custom Action=CA_SetBase_UnInstall
Before=CA_UnInstallInstalled/Custom
  Custom Action=CA_UnInstall
After=MsiUnpublishAssembliesInstalled/Custom

The CAs are working as desired. I want to ask about what is the diff
between this approach and with component approach?

Also If I want to use rollback custom action then how to use it? Should
Rollback be after StartServices and then Install CAs (coz this is how orca
showed me, first rollback followed by install CA)?


On Thu, Jun 7, 2012 at 12:41 PM, Rob Hamflett rob_hamfl...@sn.scee.netwrote:

 Are these actions specified as being deferred, so they actually run as
 part of the installation script?

 Rob

 On 05/06/2012 13:52, Ravi Raj wrote:
  I want to schedule my custom actions in following manner:
  1) Install: CA will run *only after* the installer copies all files to
 the
  respective directories.
  2) Uninstall: custom action has completed successfully and then installer
  removes the files from the system.
 
  How should I write my custom action? I am using:
 
  Custom Action=CA_SetCustomActionData_Install
  Before=CA_GetCustomActionData_InstallNOT Installed/CustomCustom
  Action=CA_GetCustomActionData_Install After=InstallInitializeNOT
  Installed AND NOT UPGRADINGPRODUCTCODE/Custom
 
  Custom Action=CA_SetCustomActionData_UnInstall
  Before=CA_GetCustomActionData_UnInstallInstalled/CustomCustom
  Action=CA_GetCustomActionData_UnInstall
  Before=InstallFinializeInstalled/Custom
 
  But this is not working.
 




 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Message Box display option

2012-06-07 Thread Ravi Raj
I am using Message Box to display some information in immediate custom
actions. These boxes are behaving wired. When I click on parent screen, the
box goes to back of the installer frame and mouse pointer (showing as wait
cursor) responds on dialog buttons but won't able to click any of them.
This is fine by me as the purpose is solved but I would like to make it
more stable.

First I want to make to act like other dialog warnings which won't let me
do anything on parent dialogs. (on clicking on parent, the dialog flashes
twice to grab use attention). I want something like this feature.
again, my message box appears also on task-bar which I want to disable/hide.

How can I achieve this behaviors?

-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Scheduling Install and Uninstall Custom Actions

2012-06-07 Thread Ravi Raj
Well Phil, I got the idea but I am not sure on which component I use this
condition. For basic msi I saw that it used component id of DLL which has
installer.cs file but in my case I do not have this file at all.

Also if you guide me the way how to use this component condition for
install, uninstall, repair and upgrade that will be more helpful (some code
will also be great as I am totally new to WiX). :)

On Thu, Jun 7, 2012 at 10:04 PM, Wilson, Phil phil.wil...@invensys.comwrote:

 Component or feature conditions work much better in circumstances like
 this, a couple of examples that are by no means a complete list.

 1. Something breaks in your product that running the custom action would
 correct. You would ask the customer to go to Add/Remove ProgramsFeatures
 and use Repair to fix it. The component reinstall would run the custom
 action and fix it. You don't have that option.

 2. The custom action is associated with a feature (or a component) that
 may or may not be installed depending on the features that are chosen. If
 that feature or component is not being installed, running the CA is
 pointless. The same is true if that feature is uninstalled.

 Phil W

 -Original Message-
 From: Ravi Raj [mailto:raviraj.callin...@gmail.com]
 Sent: Thursday, June 07, 2012 1:33 AM
 To: General discussion for Windows Installer XML toolset.
 Subject: Re: [WiX-users] Scheduling Install and Uninstall Custom Actions

 I found a way by opening (via orca) my previous installer (made by Visual
 Studio 2010 basic msi). All the custom actions are using component
 conditions. I am not at all comfortable in this. So I am modified my
 current installer with following  CAs. Its working great.

 Custom Action=CA_SetBase_Install Before=CA_InstallNOT
 Installed/Custom
  Custom Action=CA_Install After=StartServicesNOT Installed AND
 NOT UPGRADINGPRODUCTCODE/Custom

 Custom Action=CA_SetBase_UnInstall
 Before=CA_UnInstallInstalled/Custom
  Custom Action=CA_UnInstall
 After=MsiUnpublishAssembliesInstalled/Custom

 The CAs are working as desired. I want to ask about what is the diff
 between this approach and with component approach?

 Also If I want to use rollback custom action then how to use it? Should
 Rollback be after StartServices and then Install CAs (coz this is how orca
 showed me, first rollback followed by install CA)?


 On Thu, Jun 7, 2012 at 12:41 PM, Rob Hamflett rob_hamfl...@sn.scee.net
 wrote:

  Are these actions specified as being deferred, so they actually run as
  part of the installation script?
 
  Rob
 
  On 05/06/2012 13:52, Ravi Raj wrote:
   I want to schedule my custom actions in following manner:
   1) Install: CA will run *only after* the installer copies all files
   to
  the
   respective directories.
   2) Uninstall: custom action has completed successfully and then
   installer removes the files from the system.
  
   How should I write my custom action? I am using:
  
   Custom Action=CA_SetCustomActionData_Install
   Before=CA_GetCustomActionData_InstallNOT
   Installed/CustomCustom Action=CA_GetCustomActionData_Install
   After=InstallInitializeNOT Installed AND NOT
   UPGRADINGPRODUCTCODE/Custom
  
   Custom Action=CA_SetCustomActionData_UnInstall
   Before=CA_GetCustomActionData_UnInstallInstalled/CustomCustom
   Action=CA_GetCustomActionData_UnInstall
   Before=InstallFinializeInstalled/Custom
  
   But this is not working.
  
 
 
 
 
  --
  
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and
  threat landscape has changed and how IT managers can respond.
  Discussions will include endpoint security, mobile security and the
  latest in malware threats.
  http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
  ___
  WiX-users mailing list
  WiX-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wix-users
 



 --
 Thanks and Regards,
 Ravi Raj

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and threat
 landscape has changed and how IT managers can respond. Discussions will
 include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


 *** Confidentiality Notice: This e-mail, including any associated or
 attached files, is intended solely for the individual or entity to which it
 is addressed. This e-mail is confidential and may well also be legally
 privileged. If you have received it in error, you are on notice of its
 status. Please notify the sender immediately by reply e-mail and then
 delete this message from

Re: [WiX-users] Message Box display option

2012-06-07 Thread Ravi Raj
Can I use this in C#. If yes then a sample code will help.

On Fri, Jun 8, 2012 at 10:10 AM, Rob Mensching r...@robmensching.com wrote:

 Try using ::MsiProcessMessage() to send the message box.

 On Thu, Jun 7, 2012 at 3:11 AM, Ravi Raj raviraj.callin...@gmail.com
 wrote:

  I am using Message Box to display some information in immediate custom
  actions. These boxes are behaving wired. When I click on parent screen,
 the
  box goes to back of the installer frame and mouse pointer (showing as
 wait
  cursor) responds on dialog buttons but won't able to click any of them.
  This is fine by me as the purpose is solved but I would like to make it
  more stable.
 
  First I want to make to act like other dialog warnings which won't let me
  do anything on parent dialogs. (on clicking on parent, the dialog flashes
  twice to grab use attention). I want something like this feature.
  again, my message box appears also on task-bar which I want to
  disable/hide.
 
  How can I achieve this behaviors?
 
  --
  Thanks and Regards,
  Ravi Raj
 
 
 --
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and
  threat landscape has changed and how IT managers can respond. Discussions
  will include endpoint security, mobile security and the latest in malware
  threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
  ___
  WiX-users mailing list
  WiX-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wix-users
 



 --
 virtually, Rob Mensching - http://RobMensching.com LLC

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Scheduling Install and Uninstall Custom Actions

2012-06-05 Thread Ravi Raj
I want to schedule my custom actions in following manner:
1) Install: CA will run *only after* the installer copies all files to the
respective directories.
2) Uninstall: custom action has completed successfully and then installer
removes the files from the system.

How should I write my custom action? I am using:

Custom Action=CA_SetCustomActionData_Install
Before=CA_GetCustomActionData_InstallNOT Installed/CustomCustom
Action=CA_GetCustomActionData_Install After=InstallInitializeNOT
Installed AND NOT UPGRADINGPRODUCTCODE/Custom

Custom Action=CA_SetCustomActionData_UnInstall
Before=CA_GetCustomActionData_UnInstallInstalled/CustomCustom
Action=CA_GetCustomActionData_UnInstall
Before=InstallFinializeInstalled/Custom

But this is not working.

-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Message Box at the top of Installer Dialog

2012-05-31 Thread Ravi Raj
I was checking that this method won't display very long message, is that
true?

On Thu, May 31, 2012 at 1:15 AM, Wilson, Phil phil.wil...@invensys.comwrote:

 Those DTF managed custom actions tree up to call MsiProcessMessage(), so
 you're restricted to the functionality of MsiProcessMessage.  I assume that
 if the IntelliSense in the dev environment doesn't offer what you want then
 you can't do it.
 Phil W

 -Original Message-
 From: Ravi Raj [mailto:raviraj.callin...@gmail.com]
 Sent: Tuesday, May 29, 2012 8:59 PM
 To: General discussion for Windows Installer XML toolset.
 Subject: Re: [WiX-users] Message Box at the top of Installer Dialog

 I got one method and its *working fine*:

 *session.Message(
InstallMessage.Error |
 (InstallMessage)(MessageBoxIcon.Error) |
(InstallMessage)MessageBoxButtons.OK,
new Record { FormatString = Some custom message });*

 Can you suggest me if I can override its fields say instead
 InstallMessage.Error I want to use something else coz I tried this and my
 installer ended per-maturely. Also I want to change its Title message which
 is Installer Information. I want to use some custom title message.

 On Wed, May 30, 2012 at 8:33 AM, Ravi Raj raviraj.callin...@gmail.com
 wrote:

  Is there anything related to C# as I am C# developer and not very
  accustomed to C++.
 
 
  On Wed, May 30, 2012 at 1:36 AM, Wilson, Phil phil.wil...@invensys.com
 wrote:
 
  MsiProcessMessage might be what you should be using, with
  INSTALLMESSAGE_USER.
 
 
  http://msdn.microsoft.com/en-us/library/windows/desktop/aa370354(v=vs
  .85).aspx
 
  Phil W
 
  -Original Message-
  From: Ravi Raj [mailto:raviraj.callin...@gmail.com]
  Sent: Monday, May 28, 2012 2:43 AM
  To: General discussion for Windows Installer XML toolset.
  Subject: [WiX-users] Message Box at the top of Installer Dialog
 
  I am trying to populate some information to the user via Message Box
  in custom action (deferred). But everytime my message box goes to the
  back of the dialog and I have to manually click at the taskbar to see
  the information.
 
  How can I make these at the top of the installer??
 
  --
  Thanks and Regards,
  Ravi Raj
 
  -
  -
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and
  threat landscape has changed and how IT managers can respond.
  Discussions will include endpoint security, mobile security and the
  latest in malware threats.
  http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
  ___
  WiX-users mailing list
  WiX-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wix-users
 
 
  *** Confidentiality Notice: This e-mail, including any associated or
  attached files, is intended solely for the individual or entity to
  which it is addressed. This e-mail is confidential and may well also
  be legally privileged. If you have received it in error, you are on
  notice of its status. Please notify the sender immediately by reply
  e-mail and then delete this message from your system. Please do not
  copy it or use it for any purposes, or disclose its contents to any
  other person. This email comes from a division of the Invensys Group,
  owned by Invensys plc, which is a company registered in England and
  Wales with its registered office at 3rd Floor, 40 Grosvenor Place,
 London, SW1X 7AW (Registered number 166023).
  For a list of European legal entities within the Invensys Group,
  please go to http://www.invensys.com/en/legal/default.aspx.
 
  You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail
  recept...@invensys.com. This e-mail and any attachments thereto may
  be subject to the terms of any agreements between Invensys (and/or
  its subsidiaries and affiliates) and the recipient (and/or its
  subsidiaries and affiliates).
 
 
 
 
  -
  -
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and
  threat landscape has changed and how IT managers can respond.
  Discussions will include endpoint security, mobile security and the
  latest in malware threats.
  http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
  ___
  WiX-users mailing list
  WiX-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wix-users
 
 
 
 
  --
  Thanks and Regards,
  Ravi Raj
 
 


 --
 Thanks and Regards,
 Ravi Raj

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and threat
 landscape has changed and how IT managers can respond. Discussions will
 include endpoint security, mobile security and the latest in malware
 threats

Re: [WiX-users] Message Box at the top of Installer Dialog

2012-05-29 Thread Ravi Raj
Is there anything related to C# as I am C# developer and not very
accustomed to C++.

On Wed, May 30, 2012 at 1:36 AM, Wilson, Phil phil.wil...@invensys.comwrote:

 MsiProcessMessage might be what you should be using, with
 INSTALLMESSAGE_USER.


 http://msdn.microsoft.com/en-us/library/windows/desktop/aa370354(v=vs.85).aspx

 Phil W

 -Original Message-
 From: Ravi Raj [mailto:raviraj.callin...@gmail.com]
 Sent: Monday, May 28, 2012 2:43 AM
 To: General discussion for Windows Installer XML toolset.
 Subject: [WiX-users] Message Box at the top of Installer Dialog

 I am trying to populate some information to the user via Message Box in
 custom action (deferred). But everytime my message box goes to the back of
 the dialog and I have to manually click at the taskbar to see the
 information.

 How can I make these at the top of the installer??

 --
 Thanks and Regards,
 Ravi Raj

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and threat
 landscape has changed and how IT managers can respond. Discussions will
 include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


 *** Confidentiality Notice: This e-mail, including any associated or
 attached files, is intended solely for the individual or entity to which it
 is addressed. This e-mail is confidential and may well also be legally
 privileged. If you have received it in error, you are on notice of its
 status. Please notify the sender immediately by reply e-mail and then
 delete this message from your system. Please do not copy it or use it for
 any purposes, or disclose its contents to any other person. This email
 comes from a division of the Invensys Group, owned by Invensys plc, which
 is a company registered in England and Wales with its registered office at
 3rd Floor, 40 Grosvenor Place, London, SW1X 7AW (Registered number 166023).
 For a list of European legal entities within the Invensys Group, please go
 to http://www.invensys.com/en/legal/default.aspx.

 You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail
 recept...@invensys.com. This e-mail and any attachments thereto may be
 subject to the terms of any agreements between Invensys (and/or its
 subsidiaries and affiliates) and the recipient (and/or its subsidiaries and
 affiliates).




 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Message Box at the top of Installer Dialog

2012-05-29 Thread Ravi Raj
I got one method and its *working fine*:

*session.Message(
InstallMessage.Error |
(InstallMessage)(MessageBoxIcon.Error) |
(InstallMessage)MessageBoxButtons.OK,
new Record { FormatString = Some custom message });*

Can you suggest me if I can override its fields say instead
InstallMessage.Error I want to use something else coz I tried this and my
installer ended per-maturely. Also I want to change its Title message which
is Installer Information. I want to use some custom title message.

On Wed, May 30, 2012 at 8:33 AM, Ravi Raj raviraj.callin...@gmail.comwrote:

 Is there anything related to C# as I am C# developer and not very
 accustomed to C++.


 On Wed, May 30, 2012 at 1:36 AM, Wilson, Phil phil.wil...@invensys.comwrote:

 MsiProcessMessage might be what you should be using, with
 INSTALLMESSAGE_USER.


 http://msdn.microsoft.com/en-us/library/windows/desktop/aa370354(v=vs.85).aspx

 Phil W

 -Original Message-
 From: Ravi Raj [mailto:raviraj.callin...@gmail.com]
 Sent: Monday, May 28, 2012 2:43 AM
 To: General discussion for Windows Installer XML toolset.
 Subject: [WiX-users] Message Box at the top of Installer Dialog

 I am trying to populate some information to the user via Message Box in
 custom action (deferred). But everytime my message box goes to the back of
 the dialog and I have to manually click at the taskbar to see the
 information.

 How can I make these at the top of the installer??

 --
 Thanks and Regards,
 Ravi Raj

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and threat
 landscape has changed and how IT managers can respond. Discussions will
 include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


 *** Confidentiality Notice: This e-mail, including any associated or
 attached files, is intended solely for the individual or entity to which it
 is addressed. This e-mail is confidential and may well also be legally
 privileged. If you have received it in error, you are on notice of its
 status. Please notify the sender immediately by reply e-mail and then
 delete this message from your system. Please do not copy it or use it for
 any purposes, or disclose its contents to any other person. This email
 comes from a division of the Invensys Group, owned by Invensys plc, which
 is a company registered in England and Wales with its registered office at
 3rd Floor, 40 Grosvenor Place, London, SW1X 7AW (Registered number 166023).
 For a list of European legal entities within the Invensys Group, please go
 to http://www.invensys.com/en/legal/default.aspx.

 You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail
 recept...@invensys.com. This e-mail and any attachments thereto may be
 subject to the terms of any agreements between Invensys (and/or its
 subsidiaries and affiliates) and the recipient (and/or its subsidiaries and
 affiliates).




 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




 --
 Thanks and Regards,
 Ravi Raj




-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Passing RegSearch Value to Custom Action (Deferred) during Uninstall

2012-05-28 Thread Ravi Raj
How to read a regsearch during uninstall process and pass it to deferred
custom action?

-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Message Box at the top of Installer Dialog

2012-05-28 Thread Ravi Raj
I am trying to populate some information to the user via Message Box in
custom action (deferred). But everytime my message box goes to the back of
the dialog and I have to manually click at the taskbar to see the
information.

How can I make these at the top of the installer??

-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Message Box at the top of Installer Dialog

2012-05-28 Thread Ravi Raj
But there are several messages I ant to populate via custom actions. I am
not sure how to do this. Can you help me with some examples.

On Mon, May 28, 2012 at 9:22 PM, Pally Sandher pally.sand...@iesve.comwrote:

 Use the Windows Installer UI instead of a Custom Action showing a
 MessageBox?

 Palbinder Sandher
 Software Platform Engineer
 T: +44 (0) 141 945 8500
 F: +44 (0) 141 945 8501
 http://www.iesve.com

 **Design, Simulate + Innovate with the Virtual Environment**
 Integrated Environmental Solutions Limited. Registered in Scotland No.
 SC151456
 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow
 G20 0SP
 Email Disclaimer



 -Original Message-
 From: Ravi Raj [mailto:raviraj.callin...@gmail.com]
 Sent: 28 May 2012 10:49
 To: General discussion for Windows Installer XML toolset.
 Subject: [WiX-users] Message Box at the top of Installer Dialog

 I am trying to populate some information to the user via Message Box in
 custom action (deferred). But everytime my message box goes to the back of
 the dialog and I have to manually click at the taskbar to see the
 information.

 How can I make these at the top of the installer??

 --
 Thanks and Regards,
 Ravi Raj

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Passing RegSearch Value to Custom Action (Deferred) during Uninstall

2012-05-28 Thread Ravi Raj
I got the method and I am doing this (which is working perfectly):

Property Id=INSTALL_PATH Secure=yes  RegistrySearch
Id=Install_Path  Root=HKCU
Key=Software\!(loc.CompanyName)\!(loc.ProductName)
Name=InstallPath  Type=raw //Property
 CustomAction Id=CA_SetProperty_INSTALLPATH
Property=INSTALLPATH Value='[INSTALL_PATH]' /CustomAction
Id=CA_SetCustomActionData Property=CA_GetCustomActionData
Value='INSTALLMACHINE=[INSTALLPATH]' Execute='immediate'
Return=check /CustomAction Id=CA_GetCustomActionData
BinaryKey=BIN_CustomAction DllEntry=GetCustomActionData
Execute=deferred Return=check /
 InstallUISequence  Custom Action=CA_SetCustomActionData
Before=CA_GetCustomActionDataNOT Installed/Custom  Custom
Action=CA_GetCustomActionData After=InstallInitializeNOT
Installed AND NOT UPGRADINGPRODUCTCODE/Custom/InstallUISequence
 InstallExecuteSequence  Custom Action=CA_SetCustomActionData
Before=CA_GetCustomActionDataNOT Installed/Custom  Custom
Action=CA_GetCustomActionData After=InstallInitializeNOT
Installed AND NOT
UPGRADINGPRODUCTCODE/Custom/InstallExecuteSequence

Just wanted to confirm, is there any other way to achieve the same?

-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] CheckBox Value via Custom Action

2012-05-25 Thread Ravi Raj
Is there any update?

On Sat, May 19, 2012 at 11:01 AM, Ravi Raj raviraj.callin...@gmail.comwrote:

 Any suggestions???


 On Tue, May 15, 2012 at 11:49 AM, Ravi Raj raviraj.callin...@gmail.comwrote:

 I have done this thing:

 Property Id=ENABLEVIRTUALIZATION Secure=yes /CustomAction 
 Id=CA_SetProperty_EV Property=ENABLEVIRTUALIZATION Value=0 
 Execute=firstSequence /
  InstallExecuteSequence  Custom Action=CA_SetProperty_EV 
 Before=AppSearchNOT Installed AND NOT 
 OLDERVERSIONDETECTED/Custom/InstallExecuteSequenceInstallUISequence  
 Custom Action=CA_SetProperty_EV Before=AppSearchNOT Installed AND NOT 
 OLDERVERSIONDETECTED/Custom/InstallUISequence

 Now when chkbox is disabled, the registry stored value=0 (which is
 correct). Again, when I click Verify button (some action performed) and
 chkbox gets enabled (and its checked by default even in disabled state) but
 still i found registry value to be 0 but actually it should be one.
 why is this strange behavior?


 On Mon, May 14, 2012 at 7:38 PM, Ravi Raj raviraj.callin...@gmail.comwrote:

 I need to perform certain action on my checkbox.
 At the start if the installation the chkbox is disabled. There is a
 button to call a custom action and verify certain things and assign a value
 to a variable.
 This variable will decide whether to enable chkbox or not. I have
 implemented till this part:

 Control Id=ImportCheckBoxType=CheckBox
 CheckBoxValue=1X=35 Y=100Width=160 Height=20  
   Disabled=yesText=!(loc.Virtual_ChkBox) 
 Property=ENABLEVIRTUAL  Condition Action=enable![CDATA[INTEGRATED = 
 1]]/Condition  Condition Action=disable![CDATA[INTEGRATED = 
 0]]/Condition/Control

 So as soon as I launch the installer, the chkbox is disabled and
 unchecked. If Verify is OK then its became enable but still unchecked.
 Suppose a user does not check this box and proceeds with installation then
 what vale gets stored in registry (I am storing this value ENABLEVIRTUALto 
 registry).

 If empty gets stored then it will give error while performing repair or
 uninstall. How can I store this value?

 Again,
 In custom action i have used a string null or empty chk (obtained from
 previous installer dialog), if not null then verify works else it give
 throw exception:

 [CustomAction]
 public static ActionResult Check(Session mpSession)
 {
 mpSession.Log(Begin CustomActions.Check);

 String sServerName = 
 GetSetProperties.GetSessionProperty(mpSession, INSTALLMACHINE, false);

 if (!String.IsNullOrEmpty(sServerName))
 {
 try
 {
//Something
 GetSetProperties.SetSessionProperty(mpSession, 
 INTEGRATED, packs.Count != 1 ? 0 : 1);
 }
 catch (Exception oException)
 {
 HandleException(mpSession, oException);
 return ActionResult.Failure;
 }
 }
 else
 {
 throw new Exception(SDK Service Machine cannot be empty.);
 }

 return ActionResult.Success;
 }

  private static void HandleException(Session mpSession, Exception ex)
 {
 string errorMsg = Exception during custom action execution: + 
 ex.ToString();

 mpSession.Log(errorMsg);

 mpSession.Message(InstallMessage.Error, new Record { 
 FormatString = errorMsg });
 }

 Here in this code Catch, else and HandleException are not working
 properly and the installer gets interrupted in between. How can I fix this?

 Some working code will be very useful as I am new to WiX.
 --
 Thanks and Regards,
 Ravi Raj




 --
 Thanks and Regards,
 Ravi Raj




 --
 Thanks and Regards,
 Ravi Raj




-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] CheckBox Value via Custom Action

2012-05-18 Thread Ravi Raj
Any suggestions???

On Tue, May 15, 2012 at 11:49 AM, Ravi Raj raviraj.callin...@gmail.comwrote:

 I have done this thing:

 Property Id=ENABLEVIRTUALIZATION Secure=yes /CustomAction 
 Id=CA_SetProperty_EV Property=ENABLEVIRTUALIZATION Value=0 
 Execute=firstSequence /
  InstallExecuteSequence  Custom Action=CA_SetProperty_EV 
 Before=AppSearchNOT Installed AND NOT 
 OLDERVERSIONDETECTED/Custom/InstallExecuteSequenceInstallUISequence  
 Custom Action=CA_SetProperty_EV Before=AppSearchNOT Installed AND NOT 
 OLDERVERSIONDETECTED/Custom/InstallUISequence

 Now when chkbox is disabled, the registry stored value=0 (which is
 correct). Again, when I click Verify button (some action performed) and
 chkbox gets enabled (and its checked by default even in disabled state) but
 still i found registry value to be 0 but actually it should be one.
 why is this strange behavior?


 On Mon, May 14, 2012 at 7:38 PM, Ravi Raj raviraj.callin...@gmail.comwrote:

 I need to perform certain action on my checkbox.
 At the start if the installation the chkbox is disabled. There is a
 button to call a custom action and verify certain things and assign a value
 to a variable.
 This variable will decide whether to enable chkbox or not. I have
 implemented till this part:

 Control Id=ImportCheckBoxType=CheckBoxCheckBoxValue=1 
X=35 Y=100Width=160 Height=20Disabled=yes   
  Text=!(loc.Virtual_ChkBox) Property=ENABLEVIRTUAL  Condition 
 Action=enable![CDATA[INTEGRATED = 1]]/Condition  Condition 
 Action=disable![CDATA[INTEGRATED = 0]]/Condition/Control

 So as soon as I launch the installer, the chkbox is disabled and
 unchecked. If Verify is OK then its became enable but still unchecked.
 Suppose a user does not check this box and proceeds with installation then
 what vale gets stored in registry (I am storing this value ENABLEVIRTUALto 
 registry).

 If empty gets stored then it will give error while performing repair or
 uninstall. How can I store this value?

 Again,
 In custom action i have used a string null or empty chk (obtained from
 previous installer dialog), if not null then verify works else it give
 throw exception:

 [CustomAction]
 public static ActionResult Check(Session mpSession)
 {
 mpSession.Log(Begin CustomActions.Check);

 String sServerName = 
 GetSetProperties.GetSessionProperty(mpSession, INSTALLMACHINE, false);

 if (!String.IsNullOrEmpty(sServerName))
 {
 try
 {
//Something
 GetSetProperties.SetSessionProperty(mpSession, 
 INTEGRATED, packs.Count != 1 ? 0 : 1);
 }
 catch (Exception oException)
 {
 HandleException(mpSession, oException);
 return ActionResult.Failure;
 }
 }
 else
 {
 throw new Exception(SDK Service Machine cannot be empty.);
 }

 return ActionResult.Success;
 }

  private static void HandleException(Session mpSession, Exception ex)
 {
 string errorMsg = Exception during custom action execution: + 
 ex.ToString();

 mpSession.Log(errorMsg);

 mpSession.Message(InstallMessage.Error, new Record { 
 FormatString = errorMsg });
 }

 Here in this code Catch, else and HandleException are not working
 properly and the installer gets interrupted in between. How can I fix this?

 Some working code will be very useful as I am new to WiX.
 --
 Thanks and Regards,
 Ravi Raj




 --
 Thanks and Regards,
 Ravi Raj




-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] CheckBox Value via Custom Action

2012-05-15 Thread Ravi Raj
I have done this thing:

Property Id=ENABLEVIRTUALIZATION Secure=yes /CustomAction
Id=CA_SetProperty_EV Property=ENABLEVIRTUALIZATION Value=0
Execute=firstSequence /
 InstallExecuteSequence  Custom Action=CA_SetProperty_EV
Before=AppSearchNOT Installed AND NOT
OLDERVERSIONDETECTED/Custom/InstallExecuteSequenceInstallUISequence
 Custom Action=CA_SetProperty_EV Before=AppSearchNOT Installed
AND NOT OLDERVERSIONDETECTED/Custom/InstallUISequence

Now when chkbox is disabled, the registry stored value=0 (which is
correct). Again, when I click Verify button (some action performed) and
chkbox gets enabled (and its checked by default even in disabled state) but
still i found registry value to be 0 but actually it should be one.
why is this strange behavior?

On Mon, May 14, 2012 at 7:38 PM, Ravi Raj raviraj.callin...@gmail.comwrote:

 I need to perform certain action on my checkbox.
 At the start if the installation the chkbox is disabled. There is a button
 to call a custom action and verify certain things and assign a value to a
 variable.
 This variable will decide whether to enable chkbox or not. I have
 implemented till this part:

 Control Id=ImportCheckBoxType=CheckBoxCheckBoxValue=1  
   X=35 Y=100Width=160 Height=20Disabled=yes 
Text=!(loc.Virtual_ChkBox) Property=ENABLEVIRTUAL  Condition 
 Action=enable![CDATA[INTEGRATED = 1]]/Condition  Condition 
 Action=disable![CDATA[INTEGRATED = 0]]/Condition/Control

 So as soon as I launch the installer, the chkbox is disabled and
 unchecked. If Verify is OK then its became enable but still unchecked.
 Suppose a user does not check this box and proceeds with installation then
 what vale gets stored in registry (I am storing this value ENABLEVIRTUALto 
 registry).

 If empty gets stored then it will give error while performing repair or
 uninstall. How can I store this value?

 Again,
 In custom action i have used a string null or empty chk (obtained from
 previous installer dialog), if not null then verify works else it give
 throw exception:

 [CustomAction]
 public static ActionResult Check(Session mpSession)
 {
 mpSession.Log(Begin CustomActions.Check);

 String sServerName = 
 GetSetProperties.GetSessionProperty(mpSession, INSTALLMACHINE, false);

 if (!String.IsNullOrEmpty(sServerName))
 {
 try
 {
//Something
 GetSetProperties.SetSessionProperty(mpSession, 
 INTEGRATED, packs.Count != 1 ? 0 : 1);
 }
 catch (Exception oException)
 {
 HandleException(mpSession, oException);
 return ActionResult.Failure;
 }
 }
 else
 {
 throw new Exception(SDK Service Machine cannot be empty.);
 }

 return ActionResult.Success;
 }

  private static void HandleException(Session mpSession, Exception ex)
 {
 string errorMsg = Exception during custom action execution: + 
 ex.ToString();

 mpSession.Log(errorMsg);

 mpSession.Message(InstallMessage.Error, new Record { FormatString 
 = errorMsg });
 }

 Here in this code Catch, else and HandleException are not working properly
 and the installer gets interrupted in between. How can I fix this?

 Some working code will be very useful as I am new to WiX.
 --
 Thanks and Regards,
 Ravi Raj




-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] CheckBox Value via Custom Action

2012-05-14 Thread Ravi Raj
I need to perform certain action on my checkbox.
At the start if the installation the chkbox is disabled. There is a button
to call a custom action and verify certain things and assign a value to a
variable.
This variable will decide whether to enable chkbox or not. I have
implemented till this part:

Control Id=ImportCheckBoxType=CheckBox
CheckBoxValue=1X=35 Y=100Width=160 Height=20
   Disabled=yesText=!(loc.Virtual_ChkBox)
Property=ENABLEVIRTUAL  Condition
Action=enable![CDATA[INTEGRATED = 1]]/Condition  Condition
Action=disable![CDATA[INTEGRATED = 0]]/Condition/Control

So as soon as I launch the installer, the chkbox is disabled and unchecked.
If Verify is OK then its became enable but still unchecked. Suppose a user
does not check this box and proceeds with installation then what vale gets
stored in registry (I am storing this value ENABLEVIRTUAL to registry).

If empty gets stored then it will give error while performing repair or
uninstall. How can I store this value?

Again,
In custom action i have used a string null or empty chk (obtained from
previous installer dialog), if not null then verify works else it give
throw exception:

[CustomAction]
public static ActionResult Check(Session mpSession)
{
mpSession.Log(Begin CustomActions.Check);

String sServerName =
GetSetProperties.GetSessionProperty(mpSession, INSTALLMACHINE,
false);

if (!String.IsNullOrEmpty(sServerName))
{
try
{
   //Something
GetSetProperties.SetSessionProperty(mpSession,
INTEGRATED, packs.Count != 1 ? 0 : 1);
}
catch (Exception oException)
{
HandleException(mpSession, oException);
return ActionResult.Failure;
}
}
else
{
throw new Exception(SDK Service Machine cannot be empty.);
}

return ActionResult.Success;
}

 private static void HandleException(Session mpSession, Exception ex)
{
string errorMsg = Exception during custom action
execution: + ex.ToString();

mpSession.Log(errorMsg);

mpSession.Message(InstallMessage.Error, new Record {
FormatString = errorMsg });
}

Here in this code Catch, else and HandleException are not working properly
and the installer gets interrupted in between. How can I fix this?

Some working code will be very useful as I am new to WiX.
-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Custom Action vs Condition

2012-05-11 Thread Ravi Raj
Hi,
I want to know what is the difference between these two (related to launch
condition only):

Suppose OS Check:
if I use:

Condition Message=This application is only supported on Windows
Vista, Windows Server 2008, or higher.
![CDATA[Installed OR (VersionNT = 600)]]
/Condition

Its working but similar thing is not working in Launch Condition custom
action. I have to use this to make it work:

InstallUISequence
Custom Action='CA_OSCHECK' Before='AppSearch'  ![CDATA[Installed OR
(VersionNT  600)]]/Custom
/InstallUISequence

Some help required?

-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Custom Action vs Condition

2012-05-11 Thread Ravi Raj
And this also is not working:

Custom Action='CA_OSCHECK' After='CA_IsPrivileged'
![CDATA[Installed OR (VersionNT  600 AND ServicePackLevel  2) OR
(VersionNT  601 AND ServicePackLevel  1)]]/Custom

I want to check for OS version Windows 7 SP1 or Windows Server 2008 R2 SP1
in custom action.
How can I make it work?


On Fri, May 11, 2012 at 12:27 PM, Ravi Raj raviraj.callin...@gmail.comwrote:

 Hi,
 I want to know what is the difference between these two (related to launch
 condition only):

 Suppose OS Check:
 if I use:

 Condition Message=This application is only supported on Windows Vista, 
 Windows Server 2008, or higher.
 ![CDATA[Installed OR (VersionNT = 600)]]
 /Condition

 Its working but similar thing is not working in Launch Condition custom
 action. I have to use this to make it work:

 InstallUISequence
 Custom Action='CA_OSCHECK' Before='AppSearch'  ![CDATA[Installed OR 
 (VersionNT  600)]]/Custom
 /InstallUISequence

 Some help required?

 --
 Thanks and Regards,
 Ravi Raj




-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Splash Screen

2012-05-11 Thread Ravi Raj
How to add splash screen at the beginning of installer?

-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Help in Burn's Condition!!!

2012-05-11 Thread Ravi Raj
I am trying to use launch condition in Burn as

Bundle Name=My Application Version=$(var.Version) Manufacturer=App
UpgradeCode=GUID-HERE
Copyright=Copyright© 2012 IconSourceFile=Resource\Setup.ico
SplashScreenSourceFile=Resource\SplashScreen.bmp
Condition=((VersionNT = v6.0) AND (ServicePackLevel = 2)) OR
((VersionNT = v6.1) AND (ServicePackLevel = 1)) OR (VersionNT = v6.2)

for checking windows 7, server 2008, server 2008 r2 and windows 8.

But every time it gives me error (on every platform even in XP):
the specific program requires newer version of windows.

-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Custom Action Type 19 in WiX 3.6 RC

2012-05-11 Thread Ravi Raj
Yup I get my mistake.. many thanks

On Fri, May 11, 2012 at 4:50 PM, Peter Shirtcliffe pshirtcli...@sdl.comwrote:

 Isn't your logic backwards ? The error custom action will run if you are
 installed or have vista SP2+ or have win7 sp1+. Launch conditions must be
 true to continue with installation; error custom actions must be true to
 issue an error.

 -Original Message-
 From: Ravi Raj [mailto:raviraj.callin...@gmail.com]
 Sent: 10 May 2012 09:30
 To: General discussion for Windows Installer XML toolset.
 Subject: [WiX-users] Custom Action Type 19 in WiX 3.6 RC

 I am using following but its not working (at-least OS check should work but
 its not):

 InstallExecuteSequence
  Custom Action='CA_IsPrivileged' Before='LaunchConditions'
Not Privileged
  /Custom
  Custom Action='CA_OSCHECK' After='CA_IsPrivileged'
Installed OR (VersionNT=600 AND ServicePackLevel=2) OR
 (VersionNT=601 AND ServicePackLevel=1)
  /Custom
  Custom Action='CA_DOTNETFRAMEWORK' After='CA_OSCHECK'
Installed OR NETFRAMEWORK40CLIENT OR NETFRAMEWORK40FULL
  /Custom
  Custom Action='CA_SCOM2012CHECK' After='CA_DOTNETFRAMEWORK' /
 /InstallExecuteSequence

 And in CustomAction.wxs file I defined it as:
 ?xml version=1.0 encoding=UTF-8?
 Wix xmlns=http://schemas.microsoft.com/wix/2006/wi;
  Fragment
CustomAction Id='CA_IsPrivileged'
 Error='!(loc.ValidationAdministrator)' /
CustomAction Id='CA_OSCHECK' Error='!(loc.ValidationOperatingSystem)'
 /
CustomAction Id='CA_DOTNETFRAMEWORK'
 Error='!(loc.ValidationDotNetFramework)' /
CustomAction Id='CA_R2CHECK' Error='[R2CHECK]' /
  /Fragment
 /Wix

 The last custom action is a component search (highly important to have) is
 defined as:
Property Id=R2CHECK Value=!(loc.ValidationR2)
  ComponentSearch Id=CMPSRCH_R2CHECK
   Guid={XXX----} /
/Property

 When I am running the setup, its going on executing on my Windows XP
 machine.
 OS Validation not working as is only for Win 7 SP1 or Win Server
 2008 R2 SP1 also the component which I have a check is not present on this
 machine.

 --
 Thanks and Regards,
 Ravi Raj

 -
 -
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and threat
 landscape has changed and how IT managers can respond. Discussions will
 include endpoint security, mobile security and the latest in malware
 threats.
 http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users
 SDL PLC confidential, all rights reserved.
 If you are not the intended recipient of this mail SDL requests and
 requires that you delete it without acting upon or copying any of its
 contents, and we further request that you advise us.
 SDL PLC is a public limited company registered in England and Wales.
  Registered number: 02675207.
 Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6
 7DY, UK.



 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Custom Action Type 19 in WiX 3.6 RC

2012-05-11 Thread Ravi Raj
OK i have used OS_Check Custom Action like this:

Custom Action='CA_OSCHECK' After='CA_IsPrivileged'   ![CDATA[NOT
(Installed OR (VersionNT = 600 AND ServicePackLevel = 2) OR
(VersionNT = 601 AND ServicePackLevel = 1) OR (VersionNT =
602))]]/Custom

Everything is working great :)
But while building the project I am getting this warning.

ICE03: String overflow (greater than length permitted in column); Table:
CustomAction, Column: Target, Key(s): CA_OSCHECK

I don't want to ignore this warning. How can I resolve this?


On Fri, May 11, 2012 at 5:08 PM, Ravi Raj raviraj.callin...@gmail.comwrote:

 Yup I get my mistake.. many thanks


 On Fri, May 11, 2012 at 4:50 PM, Peter Shirtcliffe 
 pshirtcli...@sdl.comwrote:

 Isn't your logic backwards ? The error custom action will run if you are
 installed or have vista SP2+ or have win7 sp1+. Launch conditions must be
 true to continue with installation; error custom actions must be true to
 issue an error.

 -Original Message-
 From: Ravi Raj [mailto:raviraj.callin...@gmail.com]
 Sent: 10 May 2012 09:30
 To: General discussion for Windows Installer XML toolset.
 Subject: [WiX-users] Custom Action Type 19 in WiX 3.6 RC

 I am using following but its not working (at-least OS check should work
 but
 its not):

 InstallExecuteSequence
  Custom Action='CA_IsPrivileged' Before='LaunchConditions'
Not Privileged
  /Custom
  Custom Action='CA_OSCHECK' After='CA_IsPrivileged'
Installed OR (VersionNT=600 AND ServicePackLevel=2) OR
 (VersionNT=601 AND ServicePackLevel=1)
  /Custom
  Custom Action='CA_DOTNETFRAMEWORK' After='CA_OSCHECK'
Installed OR NETFRAMEWORK40CLIENT OR NETFRAMEWORK40FULL
  /Custom
  Custom Action='CA_SCOM2012CHECK' After='CA_DOTNETFRAMEWORK' /
 /InstallExecuteSequence

 And in CustomAction.wxs file I defined it as:
 ?xml version=1.0 encoding=UTF-8?
 Wix xmlns=http://schemas.microsoft.com/wix/2006/wi;
  Fragment
CustomAction Id='CA_IsPrivileged'
 Error='!(loc.ValidationAdministrator)' /
CustomAction Id='CA_OSCHECK' Error='!(loc.ValidationOperatingSystem)'
 /
CustomAction Id='CA_DOTNETFRAMEWORK'
 Error='!(loc.ValidationDotNetFramework)' /
CustomAction Id='CA_R2CHECK' Error='[R2CHECK]' /
  /Fragment
 /Wix

 The last custom action is a component search (highly important to have) is
 defined as:
Property Id=R2CHECK Value=!(loc.ValidationR2)
  ComponentSearch Id=CMPSRCH_R2CHECK
   Guid={XXX----} /
/Property

 When I am running the setup, its going on executing on my Windows XP
 machine.
 OS Validation not working as is only for Win 7 SP1 or Win Server
 2008 R2 SP1 also the component which I have a check is not present on this
 machine.

 --
 Thanks and Regards,
 Ravi Raj

 -
 -
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and threat
 landscape has changed and how IT managers can respond. Discussions will
 include endpoint security, mobile security and the latest in malware
 threats.
 http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users
 SDL PLC confidential, all rights reserved.
 If you are not the intended recipient of this mail SDL requests and
 requires that you delete it without acting upon or copying any of its
 contents, and we further request that you advise us.
 SDL PLC is a public limited company registered in England and Wales.
  Registered number: 02675207.
 Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire
 SL6 7DY, UK.



 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




 --
 Thanks and Regards,
 Ravi Raj




-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Custom Action Type 19 in WiX 3.6 RC

2012-05-10 Thread Ravi Raj
I am using following but its not working (at-least OS check should work but
its not):

InstallExecuteSequence
  Custom Action='CA_IsPrivileged' Before='LaunchConditions'
Not Privileged
  /Custom
  Custom Action='CA_OSCHECK' After='CA_IsPrivileged'
Installed OR (VersionNT=600 AND ServicePackLevel=2) OR
(VersionNT=601 AND ServicePackLevel=1)
  /Custom
  Custom Action='CA_DOTNETFRAMEWORK' After='CA_OSCHECK'
Installed OR NETFRAMEWORK40CLIENT OR NETFRAMEWORK40FULL
  /Custom
  Custom Action='CA_SCOM2012CHECK' After='CA_DOTNETFRAMEWORK' /
/InstallExecuteSequence

And in CustomAction.wxs file I defined it as:
?xml version=1.0 encoding=UTF-8?
Wix xmlns=http://schemas.microsoft.com/wix/2006/wi;
  Fragment
CustomAction Id='CA_IsPrivileged'
Error='!(loc.ValidationAdministrator)' /
CustomAction Id='CA_OSCHECK' Error='!(loc.ValidationOperatingSystem)'
/
CustomAction Id='CA_DOTNETFRAMEWORK'
Error='!(loc.ValidationDotNetFramework)' /
CustomAction Id='CA_R2CHECK' Error='[R2CHECK]' /
  /Fragment
/Wix

The last custom action is a component search (highly important to have) is
defined as:
Property Id=R2CHECK Value=!(loc.ValidationR2)
  ComponentSearch Id=CMPSRCH_R2CHECK
   Guid={XXX----} /
/Property

When I am running the setup, its going on executing on my Windows XP
machine. OS Validation not working as is only for Win 7 SP1 or Win Server
2008 R2 SP1 also the component which I have a check is not present on this
machine.

-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Populating Registry Value in TextBox

2012-04-24 Thread Ravi Raj
Hi,
I am trying to populate a registry value in textbox but not being able to
do so. Following is my code:

Property Id=SDK_MACHINE  Secure=yes
RegistrySearch Id=sdk_Machine  Root=HKCU
Key=Software\PATH FOR REGISTRY
 Name=ValueName  Type=raw //Property



CustomAction Id=CA_SetProperty_SDK_MACHINE
Property=INSTALLMACHINE Value=[SDK_MACHINE]
Execute=firstSequence /
---
Control Id=NameEdit Type=Edit X=25 Y=105 Width=220
Height=18 Property=INSTALLMACHINE /
---
InstallUISequence
Custom Action=CA_SetProperty_SDK_MACHINE Sequence=701 /
/InstallUISequence


-- 
Thanks and Regards,
Ravi Raj
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Prioritize Launch Conditions

2012-04-23 Thread Ravi Raj
I want to prioritize the launch conditions I am using.
I want that first installer checks OS then Admin privilege then  DotNet
 and then component search. I have created this file as below:

?xml version=1.0 encoding=UTF-8?
Wix xmlns=http://schemas.microsoft.com/wix/2006/wi;
Fragment
Property Id=LaunchConditionsFile Value=1 /

Condition Message=!(loc.ValidationAdministrator)Installed OR
Privileged/Condition

Condition Message=!(loc.ValidationOperatingSystem)
  --condition for OS Check --
/Condition

Condition Message=!(loc.ValidationDotNetFramework)
  --condition for .NET Check --
/Condition

PropertyRef Id=R2012 /
Condition Message=!(loc.ValidationR2012)
 --condition for Component Search Check --
/Condition

/Fragment
/Wix

Now everytime i run the installer, the registry search condition launches
first. If I comment this statement then OS check validate comes in picture.
How can I overcome this issue?

-- 
Thanks and Regards,
Ravi Raj
--
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] ALLUSER Radiobutton control

2012-01-24 Thread Ravi Raj
Hi,
I am using ALLUSER radiobutton control in my installer but there seems some
problem with the UI response. I am using following code for this:

Property Id=PERUSERScur/Property
Control Id=BothScopes Type=RadioButtonGroup X=25 Y=165
Width=330 Height=120 Property=PERUSERS
  RadioButtonGroup Property=PERUSERSRadioButton Value=cur
X=0 Y=0 Width=295 Height=16
Text=!(loc.InstallScopeDlgPerUser) /RadioButton Value=all
X=0 Y=20 Width=295 Height=16
Text=!(loc.InstallScopeDlgPerMachine) /  /RadioButtonGroup
/Control

and in the Next button I am using:

Publish Property=ALLUSERS Value={}PERUSERS =
cur/PublishPublish Property=ALLUSERS Value=1PERUSERS =
all/Publish

When I launch the UI, Next, Cancel and Back button doesn't respond on mouse
click but only keyboard Enter key responds but rest other dialogs working
fine.
If I delete these lines, all controls works perfectly.
What am I doing wrong? Is there any other/better way to implement this (i
don't wanna use default UIExtensions)?

-- 
Thanks and Regards,
Ravi Raj
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Disable Next Button When TextBox is Empty

2012-01-22 Thread Ravi Raj
Hi,
I am implementing a textbox control having value fetched from registry
(after LicenseAggrement dialog). When registry has some value, the control
works fine but when delete the text in the textbox, the Next button does
not disable. But when I click on some other button (like back or cancel),
the control works then. Same thing happens when I enter some text in
textbox, Next remains disabled till I click some other button. How can I
make this work correctly in real time?
Code for Next Button is here:

*Control Id=Next Type=PushButton X=236 Y=243 Width=56
Height=17 Default=yes Text=!(loc.ButtonText_Next)Condition
Action=disable![CDATA[SDK_MACHINE = ]]/ConditionCondition
Action=enableSDK_MACHINE lt;gt; /ConditionPublish
Event=NewDialog Value=VirtualizationDlg1/Publish/Control*

and for textbox is:

*Control Id=MSNameEdit Type=Edit X=25 Y=105 Width=220
Height=18 Property=SDK_MACHINE /*

SDK_MACHINE property:

Property Id=SDK_MACHINE  Secure=yes
RegistrySearch Id=sdk_Machine  Root=HKCU
Key=Software\.\.\.
Name=MachineName  Type=raw //Property


-- 
Thanks and Regards,
Ravi Raj
--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Errors: Location of symbol related to previous error and Duplicate symbol 'Dialog:WelcomeDlg' found.

2012-01-19 Thread Ravi Raj
Hi,
I am very new to WiX installer development. I am building an installer
where I keep all files in separate folders like this:


I included settings and launch conditions in Product.wxs like:

?include Includes\Settings.wxi ?
?include LaunchConditions\Conditions.wxi ?
I am not sure about how to include\import .wxl files


Also, I am using this this UI block:

 UI  UIRef Id=UI_Texts /  Property
Id=DefaultUIFontDlgFont8/Property  Property
Id=ErrorDialogErrorDlg/PropertyInstallUISequence
Show Dialog=FatalError OnExit=error /Show
Dialog=UserExit OnExit=cancel /Show Dialog=ExitDialog
OnExit=success /Show Dialog=PrepareDlg
After=LaunchConditions /Show Dialog=WelcomeDlg
After=MigrateFeatureStatesNOT Installed/ShowShow
Dialog=ResumeDlg After=WelcomeDlgInstalled AND (RESUME OR
Preselected)/ShowShow Dialog=MaintenanceWelcomeDlg
After=ResumeDlgInstalled AND NOT RESUME AND NOT Preselected/Show
  Show Dialog=ProgressDlg After=MaintenanceWelcomeDlg /
/InstallUISequence/UI

where Dialog folder contains following files:



Now everytime I complie the sloution I get a lots of *Location of symbol
related to previous error* error from all the dialog files. I can give an
example og WelcomeDlg.wxs file:

?xml version=1.0 encoding=UTF-8?Wix
xmlns=http://schemas.microsoft.com/wix/2006/wi;   FragmentUI
   Dialog Id=WelcomeDlg Width=370 Height=270
Title=[ProductName] !(loc.Setup) NoMinimize=yesControl
Id=Next Type=PushButton X=236 Y=243 Width=56 Height=17
Default=yes Text=!(loc.ButtonText_Next)  Publish
Event=NewDialog Value=LicenseAgreementDlg1/Publish
/ControlControl Id=Cancel Type=PushButton X=304
Y=243 Width=56 Height=17 Cancel=yes
Text=!(loc.ButtonText_Cancel)  Publish Event=SpawnDialog
Value=CancelDlg1/Publish/ControlControl
Id=Bitmap Type=Bitmap X=0 Y=0 Width=370 Height=234
TabSkip=no Text=[DialogBitmap] /Control Id=Back
Type=PushButton X=180 Y=243 Width=56 Height=17
Disabled=yes Text=!(loc.ButtonText_Back) /Control
Id=Description Type=Text X=135 Y=70 Width=220 Height=30
Transparent=yes NoPrefix=yes Text=!(loc.WelcomeDlgDescription)
/Control Id=BottomLine Type=Line X=0 Y=234
Width=370 Height=0 /Control Id=Title Type=Text
X=135 Y=20 Width=220 Height=60 Transparent=yes
NoPrefix=yes Text=!(loc.WelcomeDlgTitle) /  /Dialog
   TextStyle Id=VerdanaBold13 FaceName=Verdana Size=13
Bold=yes //UI  /Fragment/Wix

Is this error occurs from *!(loc.Setup)*? as localization file is in
Localization folder named English.wxl but I am not sure how to reference to
other .wxs files
Similarly I am too confused about Property.wxs (in properties directory)
and so on.


Similarly I am also getting error *Duplicate symbol 'Dialog:WelcomeDlg'
found. This typically means that an Id is duplicated. Check to make sure
all your identifiers of a given type (File, Component, Feature) are
unique.*for WelcomeDlg.wxs and similar error for every dialogs I have
created. when
I click the error it navigate it to staring of this line:

Dialog Id=WelcomeDlg Width=370 Height=270 Title=[ProductName]
!(loc.Setup) NoMinimize=yes

Am I missing something? is my UI in Product.wxs is correctly defined?


-- 
Ravi Raj
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Installing DLLs in GAC as well as copying it to some folder.

2012-01-19 Thread Ravi Raj
Hi,
I want to install a DLL into GAC as well as I want to copy it to my
installation folder. I cannot do this at the same time.
I can successfully deploy it to GAC, using:

DirectoryRef Id=MyProgramDir  Component Id=CMP_DEF_GAC
   Guid=D386A070-650A-4333-BF96-6798ABDC9D66File
Id=File_DEF_GAC  Assembly=.net
Source=$(var.DefFilesPath)Def.dll  KeyPath=yes /
/Component/DirectoryRef

But how can I copy it to the installation directory (MyProgramDir) too?

-- 
Thanks and Regards,
Ravi Raj
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Installing DLLs in GAC as well as copying it to somefolder.

2012-01-19 Thread Ravi Raj
So should I use  Assembly=.net in that component?

On Thu, Jan 19, 2012 at 6:36 PM, Peter Shirtcliffe pshirtcli...@sdl.comwrote:

 You have to create two components - one for each location.

 -Original Message-
 From: Ravi Raj [mailto:raviraj.callin...@gmail.com]
 Sent: 19 January 2012 13:02
 To: wix-users@lists.sourceforge.net
 Subject: [WiX-users] Installing DLLs in GAC as well as copying it to
 somefolder.

 Hi,
 I want to install a DLL into GAC as well as I want to copy it to my
 installation folder. I cannot do this at the same time.
 I can successfully deploy it to GAC, using:

 DirectoryRef Id=MyProgramDir  Component Id=CMP_DEF_GAC
   Guid=D386A070-650A-4333-BF96-6798ABDC9D66File
 Id=File_DEF_GAC  Assembly=.net
 Source=$(var.DefFilesPath)Def.dll  KeyPath=yes /
 /Component/DirectoryRef

 But how can I copy it to the installation directory (MyProgramDir) too?

 --
 Thanks and Regards,
 Ravi Raj

 -
 -
 Keep Your Developer Skills Current with LearnDevNow!
 The most comprehensive online learning library for Microsoft developers
 is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
 Metro Style Apps, more. Free future releases when you subscribe now!
 http://p.sf.net/sfu/learndevnow-d2d
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users
 SDL PLC confidential, all rights reserved.
 If you are not the intended recipient of this mail SDL requests and
 requires that you delete it without acting upon or copying any of its
 contents, and we further request that you advise us.
 SDL PLC is a public limited company registered in England and Wales.
  Registered number: 02675207.
 Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6
 7DY, UK.



 --
 Keep Your Developer Skills Current with LearnDevNow!
 The most comprehensive online learning library for Microsoft developers
 is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
 Metro Style Apps, more. Free future releases when you subscribe now!
 http://p.sf.net/sfu/learndevnow-d2d
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
Thanks and Regards,
Ravi Raj
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Installing DLLs in GAC as well as copying it to somefolder.

2012-01-19 Thread Ravi Raj
Again will both component has the same DirectoryRef Id tag?
I am using:

DirectoryRef Id=MyProgramDir  Component Id=CMP_DEF
   Guid=D386A071-650A-4333-BF96-6798ABDC9D66File
Id=File_DEF  Source=$(var.DefFilesPath)Def.dll
 KeyPath=yes /  /Component/DirectoryRef


I am getting error on compiling:

ICE30: The target file 'wegfw8_n.dll|Def.dll' is installed in
'[ProgramFilesFolder]\MyProduct\Files\' by two different components on an
LFN system: 'CMP_DEF' and 'CMP_DEF_GAC'.

On Thu, Jan 19, 2012 at 7:01 PM, Ravi Raj raviraj.callin...@gmail.comwrote:

 So should I use  Assembly=.net in that component?


 On Thu, Jan 19, 2012 at 6:36 PM, Peter Shirtcliffe 
 pshirtcli...@sdl.comwrote:

 You have to create two components - one for each location.

 -Original Message-
 From: Ravi Raj [mailto:raviraj.callin...@gmail.com]
 Sent: 19 January 2012 13:02
 To: wix-users@lists.sourceforge.net
 Subject: [WiX-users] Installing DLLs in GAC as well as copying it to
 somefolder.

 Hi,
 I want to install a DLL into GAC as well as I want to copy it to my
 installation folder. I cannot do this at the same time.
 I can successfully deploy it to GAC, using:

 DirectoryRef Id=MyProgramDir  Component Id=CMP_DEF_GAC
   Guid=D386A070-650A-4333-BF96-6798ABDC9D66File
 Id=File_DEF_GAC  Assembly=.net
 Source=$(var.DefFilesPath)Def.dll  KeyPath=yes /
 /Component/DirectoryRef

 But how can I copy it to the installation directory (MyProgramDir) too?

 --
 Thanks and Regards,
 Ravi Raj

 -
 -
 Keep Your Developer Skills Current with LearnDevNow!
 The most comprehensive online learning library for Microsoft developers
 is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
 Metro Style Apps, more. Free future releases when you subscribe now!
 http://p.sf.net/sfu/learndevnow-d2d
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users
 SDL PLC confidential, all rights reserved.
 If you are not the intended recipient of this mail SDL requests and
 requires that you delete it without acting upon or copying any of its
 contents, and we further request that you advise us.
 SDL PLC is a public limited company registered in England and Wales.
  Registered number: 02675207.
 Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire
 SL6 7DY, UK.



 --
 Keep Your Developer Skills Current with LearnDevNow!
 The most comprehensive online learning library for Microsoft developers
 is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
 Metro Style Apps, more. Free future releases when you subscribe now!
 http://p.sf.net/sfu/learndevnow-d2d
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




 --
 Thanks and Regards,
 Ravi Raj




-- 
Thanks and Regards,
Ravi Raj
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Launch Conditions based on installed OS

2011-10-28 Thread Ravi Raj
Hello,

How can I implement Launch Conditions based on installed OS. Suppose if
Windows XP is installed then I will have to check whether it has been
upgraded to SP3 or not. If Windows Server 2008 is installed then I have to
check whether it has Sp2 or not.

I have to build this Launch Conditions to following Oss:

·  Windows Server 2003 SP2 and above

·  Windows Server 2008 SP2 and above

·  Windows Server 2008 R2 SP1

·  Windows XP Professional SP3 and above

·  Windows Vista SP2 and above

·  Windows 7 SP1



Regards,

Ravi
--
Get your Android app more play: Bring it to the BlackBerry PlayBook 
in minutes. BlackBerry App World#153; now supports Android#153; Apps 
for the BlackBerryreg; PlayBook#153;. Discover just how easy and simple 
it is! http://p.sf.net/sfu/android-dev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users