[WiX-users] Custom dialog & control enable / disable

2007-05-28 Thread Milan Tomeš
Hi all,

I'm writing my very first installation script using WiX and I'm having 
some troubles with that. I have my own setup dialog (which sets some 
properties of database server) and on that dialog I want to enable / 
disable controls in order of running environment / user choices. So I 
have a radio group with options Service (Value = 1) and Standalone 
application (Value = 0). RadioGroup is linked to property 
_ServiceInstall which has value "VersionNT". I guess that will result in 
1 if VersionNT is set and 0 if not right ? If its true so why my code 
isn't working ? If I set 1 instead if VersionNT in _ServiceInstall 
property value its working ok.

Can anybody help me ? I'm really tired of trying this "features".

Here is source code for my dialog:

  

  Choose server type to install


  


  


  Port


  #


  


  


  Service name


  FirebirdServerDefaultInstance
  (_ServiceInstall <> 
"1")
  (_ServiceInstall = "1")


  Service user-friendly name


  FirebirdServer - DefaultInstance
  (_ServiceInstall = "1")
  (_ServiceInstall <> 
"1")


  (_ServiceName <> 
DefaultServerServiceName) OR (_ServiceUserName <> 
DefaultServerServiceUserName)
  (_ServiceName = 
DefaultServerServiceName) AND (_ServiceUserName = 
DefaultServerServiceUserName)


  WixUI_InstallMode = "InstallCustom"
  WixUI_InstallMode = "InstallComplete"


  1


  (_ServerPort < 1024) or (_ServerPort > 
65535)







  


Thanks

Milan

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Wix Extension useable for 64 and 32 bit products

2007-05-28 Thread Cosmin Manoliu
Hello Rob,

Thank you for the answer.

1. I think I need to mark the MSI package as 64 bit. The reasons are: I 
am doing COM registration, installation to 64 bit folders.
In this case probably I cannot go with 32 bit custom actions. Can you 
please confirm?
The installer process will be a 64 bit process? In this case I guess is 
not possible for it to call 32 bit custom actions.
I am not sure about this, the MSI documentation is not clear for me on 
this issue.

2. I think I need to go with these option.
So far I successfully marshaled the other data to the compiler 
(following the WiX CustomActions).
I don't know how can I marshal the Win64="yes" information to the 
linker. Can you please point me to a sample
or documentation (or WiX source code)?
What means unreal table?


Rob Mensching wrote:
>
> 1. You do not have to provide CustomActions as both 64-bit and 32-bit. 
> For example, all of the WiX CustomActions are 32-bit only and work 
> fine on 64-bit machines.
>
> 2. If you want to switch between 64-bit and 32-bit (you can’t have a 
> package that installs both today) then you need to have some authoring 
> (like Win64=”yes”) then marshal that data to your extension in the 
> linker. An unreal table would probably be useful for that.
>
> *From:* [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] *On Behalf Of *Cosmin 
> Manoliu
> *Sent:* Friday, May 25, 2007 4:15 AM
> *To:* WiX-users@lists.sourceforge.net
> *Subject:* [WiX-users] Wix Extension useable for 64 and 32 bit products
>
> Hello,
>
> I am using WiX 3. I am trying to develop a WiX extension for my custom 
> actions.
> I follow the WiX Extension model.
>
> So far I did not found a good way to accomplish following: I would 
> like to have the same
> WiX Extension use able on both 32 bit products and 64 bit products.
>
> As I understand it, I need to provide the custom action both as 64 bit 
> build and 32 bit build,
> then I should write a WiX library which is scheduling the proper 
> custom action.
> Following the WiX Extension model I should provide this library. All 
> of these will happen at link time.
> As I see it, at link time, the information regarding MSI platform 
> information is not available.
> These means that I only have the chance to write a proper WiX library 
> which is able
> to schedule the correct custom action. Is this possible?
>
> am I missing something? Could you please point me to the right direction?
>
> Thanks
>


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Set property value according to the return value of a custom action

2007-05-28 Thread Xin Liu (Intl Vendor)
Our installation requires a way to detect whether Visual Studio is currently 
running. If it is, installation will quit.
Since Wix v2 doesn't have a way to detect the running process, what I'm 
thinking is:

1.   Use C# to write a tool named CheckProcess.exe which will return 1 if 
Visual Studio is running.

2.   Invoke CheckProcess.exe in a Custom Action after "LanuchCondirion" and 
set the value of IS_VS_RUNNING according to the return value of 
CheckProcess.exe.

3.   If IS_VS_RUNNING, installer will pop up an error message and quit the 
installation.

The question is how to set the value of a property according to the return 
value of a Custom Action?

Thanks,
Xin
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Custom dialog & control enable / disable

2007-05-28 Thread Stefan Pavlik
Hi Milan,...

Milan Tomeš wrote:
> Hi all,
> 
> RadioGroup is linked to property 
> _ServiceInstall which has value "VersionNT". I guess that will result in 
> 1 if VersionNT is set and 0 if not right ? If its true so why my code 
> isn't working ? If I set 1 instead if VersionNT in _ServiceInstall 
> property value its working ok.

You didn't post the code for initial setting of _ServiceInstall
property.

I think it should be the custom action (type 51), sequenced before
displaying of the dialog and conditioned by the VersionNT property.


 




VersionNT


Hope that it will help you.

Regards

Stefan

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

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Set property value according to the return value of a custom action

2007-05-28 Thread Stefan Pavlik
Hi,...

You should use CustomAction in DLL and write the Property
IS_VS_RUNNING directly from the Custom action.

Check the WiX tutorial for details on how to write the DLL:
http://www.tramontana.co.hu/wix/lesson3.php#3.3

I would not use the C# for custom action since it would require the
.NET framework to be already installed on the machine. The sample in
the tutorial is in C++.

Regards

Stefan

Xin Liu (Intl Vendor) wrote:
> Our installation requires a way to detect whether Visual Studio is
> currently running. If it is, installation will quit.
> 
> Since Wix v2 doesn’t have a way to detect the running process, what I’m
> thinking is:
> 
> 1.   Use C# to write a tool named CheckProcess.exe which will return
> 1 if Visual Studio is running.
> 
> 2.   Invoke CheckProcess.exe in a Custom Action after
> “LanuchCondirion” and set the value of IS_VS_RUNNING according to the
> return value of CheckProcess.exe.
> 
> 3.   If IS_VS_RUNNING, installer will pop up an error message and
> quit the installation.
> 
>  
> 
> The question is how to set the value of a property according to the
> return value of a Custom Action?
> 
>  
> 
> Thanks,
> 
> Xin
> 
> 
> 
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> 
> 
> 
> 
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users

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

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Set property value according to the return value of a custom action

2007-05-28 Thread Xin Liu (Intl Vendor)
Thanks, Stefan! I think you are right.

Thanks,
Xin

-Original Message-
From: Stefan Pavlik [mailto:[EMAIL PROTECTED]
Sent: 2007年5月28日 16:42
To: Xin Liu (Intl Vendor)
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Set property value according to the return value of a 
custom action

Hi,...

You should use CustomAction in DLL and write the Property
IS_VS_RUNNING directly from the Custom action.

Check the WiX tutorial for details on how to write the DLL:
http://www.tramontana.co.hu/wix/lesson3.php#3.3

I would not use the C# for custom action since it would require the
.NET framework to be already installed on the machine. The sample in
the tutorial is in C++.

Regards

Stefan

Xin Liu (Intl Vendor) wrote:
> Our installation requires a way to detect whether Visual Studio is
> currently running. If it is, installation will quit.
>
> Since Wix v2 doesn’t have a way to detect the running process, what I’m
> thinking is:
>
> 1.   Use C# to write a tool named CheckProcess.exe which will return
> 1 if Visual Studio is running.
>
> 2.   Invoke CheckProcess.exe in a Custom Action after
> “LanuchCondirion” and set the value of IS_VS_RUNNING according to the
> return value of CheckProcess.exe.
>
> 3.   If IS_VS_RUNNING, installer will pop up an error message and
> quit the installation.
>
>
>
> The question is how to set the value of a property according to the
> return value of a Custom Action?
>
>
>
> Thanks,
>
> Xin
>
>
> 
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
>
>
> 
>
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users

--
Stefan Pavlik | [EMAIL PROTECTED]
Whitestein Technologies s.r.o. | www.whitestein.com
Panenska 28 | 811 03 Bratislava | Slovak Republic
Main +421 2 5443-5502 | Direct +421 2 5930-0735
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] MaskedEdit & Integer attribute

2007-05-28 Thread Milan Tomeš
Hi all,

Can anybody help me how to allow user to enter integer value between 
1024 and 65535 into control ?
I have MaskedEdit control on my dialog with Integer property set to 
"yes" and Text property set to "%" or "%". If I turn off Integer 
property everything seems to be ok (except comparing this value on that 
range in condition) but when its turned on I'm always getting error 2839 
- Setting the property _ServerPort failed.

Anybody have clue what to do ?

Thanks a lot

Milan

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Custom dialog & control enable / disable

2007-05-28 Thread Milan Tomeš




Hi Stefan

Thanks a lot but I've already solved my problem. The problem was
between chair and keyboard of course :)
I've used VersionNT in wrong way - I took result value like 500 or so
but I wanted boolean result (if property is set or not) and that was my
problem.
Now I have 2 custom actions and they sets my property and uses
condition like VersionNT / NOT VersionNT.

Thanks anyway for your time

Milan

Stefan Pavlik napsal(a):

  Hi Milan,...

Milan Tomeš wrote:
  
  
Hi all,

RadioGroup is linked to property 
_ServiceInstall which has value "VersionNT". I guess that will result in 
1 if VersionNT is set and 0 if not right ? If its true so why my code 
isn't working ? If I set 1 instead if VersionNT in _ServiceInstall 
property value its working ok.

  
  
You didn't post the code for initial setting of _ServiceInstall
property.

I think it should be the custom action (type 51), sequenced before
displaying of the dialog and conditioned by the VersionNT property.


 




VersionNT


Hope that it will help you.

Regards

Stefan

  




-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] upgradable merge modules

2007-05-28 Thread Jerome Haltom
I'm having a hard time trying to understand or find an example on how
exactly upgrades of merge modules work. Do I have to program this all
myself?

Basically I am distributing a third party library, and I want consumers
of this library (those who merge it in) to install it only if it doesn't
exist. If the local copy is out of date, I want it to be removed and the
new copy installed. Up until some division point where I want them
side-by-side installable.

Any examples on this?


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] WiX and string formatting

2007-05-28 Thread Bob Arnson

[EMAIL PROTECTED] wrote:


To clarify Rennie's comment...

 

Yes, you will need a custom action, but not one that you code 
manually. The already available "Type 51" custom action (see the 
 element, specifically the "Property" attribute) should 
be able to handle what you need if the user just enters the server 
name. (I.e it should be possible to build the actual URL - the value 
attribute would contain something like 
"tcp://[USER_ENTERED_SERVER_NAME_PROPERTY]:11232/", possibly using 
other properties for the protocol and port areas.)


 

Of course, this may not be appropriate in your scenario, but I'd 
certainly recommend it over a string manipulation custom action you 
create yourself.


 


Regards,

Richard

 




*From:* [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] *On Behalf Of *Rennie 
Petersen

*Sent:* Thursday, May 24, 2007 7:57 AM
*To:* Rik; wix-users@lists.sourceforge.net
*Subject:* Re: [WiX-users] WiX and string formatting

 


I believe that you will need a custom action.



You don't necessarily need a custom action -- it depends on what you 
need the value for. For example, any field that supports formatted text 
can take multiple property references:


 tcp://[SERVER]:[PORT]

So unless you need to set a property to use in many places, you can just 
refer to the "long" formatted value. That works fine in Registry 
elements, for example.


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

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Patch cannot be created.

2007-05-28 Thread Bob Arnson

Ratula Das, HCL-Industry Solutions wrote:


 Files differ: 
'C:\downloads\samplepatch\Fixed\.\PFiles\Acme\Foobar 
1.0\FoobarAppl10.exe',


   
'C:\downloads\samplepatch\Error\.\PFiles\Acme\Foobar 
1.0\FoobarAppl10.exe'.


Patch API could not create a small patch; using whole upgraded file.

  Including entire file: 
'C:\downloads\samplepatch\Fixed\.\PFiles\Acme\Foobar 
1.0\FoobarAppl10.exe';


   FTK=FoobarEXE; temp location=Patch101\01000.FLE.



None of those are errors; just a warning saying that PatchWiz didn't 
create a delta patch but included the file as-is in the patch.


If there's an error, it's later in the log.

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

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Source directory resolution in fragments

2007-05-28 Thread Bob Arnson
Didactylos wrote:
> Now light looks for file.exe at .\file.exe - and fails, obviously. All the
> examples I can find show each file given an explicit source path, but this
> seems unnecessarily ugly to me. How can I make it pick up the source tree
> from the directory hierarchy again?
>   

The compiler doesn't persist file source data at the directory level; it 
just passes it down to child components; eventually File persists it for 
each file. That means that the source data only works within a given 
hierarchy of Directory/DirectoryRef elements. In different sections 
(e.g., Fragment, Product), you need to provide at least one 
Directory/DirectoryRef with file source information. The compiler will 
propagate that down the hierarchy.

I recently added DiskId to Directory/DirectoryRef and ran into the same 
problem: There's no place to persist a DiskId across sections. It would 
be a nice feature but nobody's coded it up yet. Feel free to add a 
feature request (or better yet, a patch).

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



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Query related to Wix

2007-05-28 Thread Bob Arnson
kalyani metuku wrote:
> We are using Wix in our project to create an installer package. We 
> need to access the public methods(taking custom parameters) of a dll 
> to install the components. We also have public events in our dll. We 
> need to access these methods, events and delegates to to install the 
> components. Could you please let us know if this is possible using Wix.

It sounds like you're talking about managed code; if so, Windows 
Installer doesn't support managed-code custom actions.

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



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Removing the license dialog

2007-05-28 Thread Bob Arnson

Please keep /wix-users/ on the thread.

Reggie Burnett wrote:
That's what I wound up doing.  Is this a limitation of Windows 
Installer or of WiX?


Both. The MSI UI model relies on the database to be built in a certain 
way. WiX builds the database as a collection of rows and columns and 
doesn't provide a way of authoring the /removal/ of rows that were 
already authored. That's not UI-specific, just how WiX authoring works 
in general.


MSI UI support has enough limitations that I've decided to focus my time 
on external UI handler support in the WiX bootstrapper instead.


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

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] - Changing "OK" button to "Close" button.

2007-05-28 Thread Bob Arnson
Sankaranarayanan wrote:
> I want the button text to read "Close" instead of "OK". Which dialog.wxs file 
> needs to be changed for obtaining this bahavior.
>   

Launch conditions are processed by the LaunchConditions standard action. 
It controls the UI and offers no customization. If you want a different 
UI, you need to author it yourself and use type 19 custom actions to 
cancel the installation.

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



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Are ICE45 warnings expectedwith ElevationShield="yes"?

2007-05-28 Thread Bob Arnson
Anthony Wieser wrote:
> First there seem to be quite a few exceptions thrown.
>   

Can you enter a bug with these details and a repro case? You should be 
able to produce an uncompressed MSI with no files that's small enough to 
attach (and without giving away any software).

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



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Publish Event is acting like Publish Property

2007-05-28 Thread Bob Arnson

Don Tasanasanta wrote:


I have the following 2 commands inside a "next" button control:

 

PROPERTY1="1" 
OR PROPERTY2="1"


PROPERTY1="0" 
AND PROPERTY2="0"


 

But instead of adding and removing the feature "LoggingFeature" I end 
up with 2 properties REMOVE and ADDLOCAL




That's how MSI records the features being removed and installed during 
an installation transaction -- as a comma-delimited list of features in 
those properties. See the MSI SDK doc on those properties for the 
complete list.


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

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] upgradable merge modules

2007-05-28 Thread Bob Arnson
Jerome Haltom wrote:
> I'm having a hard time trying to understand or find an example on how
> exactly upgrades of merge modules work. 

That's because they don't. Upgrades are the domain of products, not 
merge modules.

> Basically I am distributing a third party library, and I want consumers
> of this library (those who merge it in) to install it only if it doesn't
> exist. If the local copy is out of date, I want it to be removed and the
> new copy installed. Up until some division point where I want them
> side-by-side installable.
>   

That level of control isn't possible in a merge module. Provide an .msi 
package instead.

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



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users