Re: [WiX-users] upgrading from 64-bit to 32-bit product leavesfiles behind

2012-09-20 Thread Peter Shirtcliffe
INI file ? Has this file changed since installed ? Are the modified and created dates still the same ? Any files modified after installation are assumed to be data that needs to be kept, and are not uninstalled. You'd need an explicit RemoveFile to remove it. Ideally, don't install any config

Re: [WiX-users] UI upgrade succeeds, but silent upgrade fails

2012-09-20 Thread Peter Shirtcliffe
One caveat if you follow Neil's advice. WixExitEarlyWithSuccess doesn't work completely seamlessly with MajorUpgrade. See http://sourceforge.net/p/wix/feature-requests/626/ The workaround is to schedule the CA yourself with this condition in the install sequences: Custom

Re: [WiX-users] Burn standard UI .wxl

2012-09-20 Thread Peter Shirtcliffe
Maybe this will help. I have a foundation theme working and I've provided the code below, which is based on the Wix installer's own, although this is probably more than what is needed. What I suspect happens is that the ThemeFile attribute becomes a Wix variable that is referenced by the

[WiX-users] Populate a list box from a custom action

2012-09-20 Thread Natalie Carr
Hi I have a Custom Action in C++ that gets the Com ports of a machine and I need to get these into a listbox in my staller. I have the following but it is the wcaAddTempRecord is not working and I cannot find any good documentation on this. Thanks extern C UINT __stdcall

[WiX-users] Displaying a hyperlink in the install dialog

2012-09-20 Thread Tapas Sahoo
Hi, Is it possible to display an hyperlink in the dialog? I have some Text being displayed in the dialog box (one sample .wxs file shown below). In addition, I want to have some hyperlink also displayed. Can someone please suggest how do I go about doing that? Thanks, ~ Tapas ?xml

Re: [WiX-users] Displaying a hyperlink in the install dialog

2012-09-20 Thread Pally Sandher
You need to target Windows Installer 5.0 (which means Windows 7 and later only I'm afraid) - http://msdn.microsoft.com/en-us/library/windows/desktop/dd407936.aspx Example code on Bob A's blog - http://www.joyofsetup.com/2009/01/17/msi-v50-features-in-wix-v30/ Palbinder Sandher Software

Re: [WiX-users] Displaying a hyperlink in the install dialog

2012-09-20 Thread Peter Shirtcliffe
See the type attribute of the Control element. Hyperlinks were only introduced in Windows Installer v5 so you may not be able to use them, depending on which version of Windows Installer you're targeting. http://msdn.microsoft.com/en-us/library/windows/desktop/dd407936%28v=vs.85%29 .aspx

Re: [WiX-users] Populate a list box from a custom action

2012-09-20 Thread Peter Shirtcliffe
Your call to wcaaddtemprecord looks ok. The only thing I can guess at is that you need to specify all 4 columns of the ListBox table, rather than just the 3 you have. The other difference from my code is that I also have MSIDBERROR insertError = MSIDBERROR_NOERROR; And I give insertError

Re: [WiX-users] Displaying a hyperlink in the install dialog

2012-09-20 Thread Tapas Sahoo
Thanks. That worked ! -Original Message- From: Pally Sandher [mailto:pally.sand...@iesve.com] Sent: Thursday, September 20, 2012 3:56 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Displaying a hyperlink in the install dialog You need to target

[WiX-users] Weird behavior on conditions

2012-09-20 Thread Natalie Carr
Hi, having this problem with this code: Publish Dialog=RequestKeyDlg Control=Next Event=NewDialog Value=DatascanPortDlg Order=1![CDATA[PRODUCTNAME = Orchestrator AND VARIANT Demo AND (NOT FILEEXISTS)]]/Publish Publish Dialog=RequestKeyDlg Control=Next Event=NewDialog

Re: [WiX-users] Populate a list box from a custom action

2012-09-20 Thread Natalie Carr
Thanks Peter..:) Il give that a go..:) -Original Message- From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com] Sent: 20 September 2012 11:53 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Populate a list box from a custom action Your call to

Re: [WiX-users] Weird behavior on conditions

2012-09-20 Thread Nelya Iva
Since both conditions are true, then wix checks the value of Order. Element with the higher value of 'Order' will be used. 2012/9/20 Natalie Carr natalie.c...@measuresoft.com Hi, having this problem with this code: Publish Dialog=RequestKeyDlg Control=Next Event=NewDialog

Re: [WiX-users] Weird behavior on conditions

2012-09-20 Thread Natalie Carr
Nelya, Thanks. I always thought it was carried out as in Order 1 Order2 etc -Original Message- From: Nelya Iva [mailto:nelya@gmail.com] Sent: 20 September 2012 14:26 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Weird behavior on conditions

Re: [WiX-users] Populate a list box from a custom action

2012-09-20 Thread Christopher Painter
I have an example in C# using DTF at: http://blog.iswix.com/2008/05/how-dtf-is-going-to-help-me-become.html http://stackoverflow.com/questions/12492769/wix-remove-old-program-folder-be fore-install I know your using C++ so you'll have to look at what the underlying function is for each

[WiX-users] !(bind.FileVersion): LGHT0298 - unresolved bind-time variable

2012-09-20 Thread Branko Horvat
Hello, I am trying to bring a VS (2010) solution with one executable project and accompanied installer to build. It works on another machine which has targeted .NET framework 3.5 (so x86) and which uses WiX 3.5. On my similar platform (Win 7 x64) but with .NET framework 4.0 and WiX 3.6

Re: [WiX-users] Burn managed UI - how to cancel and rollback?

2012-09-20 Thread Rob Mensching
args is passed to you on the events. If you can return a result it has a Result property. Set the args.Result property to the Cancel enum value. On Wed, Sep 19, 2012 at 9:01 PM, Kannan24 skan...@syncfusion.com wrote: Hi, I have the same problem, can you please explain with detail? i.e how

Re: [WiX-users] !(bind.FileVersion): LGHT0298 - unresolved bind-time variable

2012-09-20 Thread Rob Mensching
0. Why would it be .wsx? 1. Do you have a File with Id=PiepsDiagnosticV3.exe? On Thu, Sep 20, 2012 at 7:53 AM, Branko Horvat horvat.bra...@pieps.comwrote: Hello, I am trying to bring a VS (2010) solution with one executable project and accompanied installer to build. It works on another

Re: [WiX-users] Burn standard UI .wxl

2012-09-20 Thread Rob Mensching
Note: Foundation UI was intended to be the foundation for the RTF and Hyperlink UI. It was not intended to be used directly by others. Sounds like Peter figured out how to make it usable. smile/ On Thu, Sep 20, 2012 at 2:45 AM, Peter Shirtcliffe pshirtcli...@sdl.comwrote: Maybe this will help.

Re: [WiX-users] Wix + MSBuild + content files

2012-09-20 Thread Rob Mensching
Not sure Content items are supported by the wix.targets. On Wed, Sep 19, 2012 at 10:19 PM, Cristian Prieto kement...@gmail.comwrote: Hi Wix user list! I've been trying to solve a very small issue with a manually created Wix proj file and resource files... My wixproj file (done without

Re: [WiX-users] Burn standard UI .wxl

2012-09-20 Thread Peter Shirtcliffe
Perhaps we shouldn't use it then or at least we should be aware it may be changed in non-backwards compatible ways. My own theme is never going to see the light of day so I won't be irate if a future change breaks it. -Original Message- From: Rob Mensching [mailto:r...@robmensching.com]

Re: [WiX-users] UI upgrade succeeds, but silent upgrade fails

2012-09-20 Thread Alec Swan
I tried silently upgrading 19.0.1 on top of 18.3 with the following code snippet: Upgrade Id=E8805AF3-CF50-4092-BE57-220A8C51E2AA UpgradeVersion OnlyDetect=yes Minimum=19.0.1 IncludeMinimum=no Property=NEWERVERSIONDETECTED/ UpgradeVersion OnlyDetect=no Maximum=19.0.1 IncludeMaximum=no

Re: [WiX-users] modify XML file using utils:XmlConfig...

2012-09-20 Thread StevenOgilvie
The solution was to use XmlFile (thanks to new_s) util:XmlFile Id=ModifyIsCompanyServer SelectionLanguage=XPath File=[INSTALLFOLDER]Company.Enterprise.Management.dll.config

[WiX-users] What's OptionalUpdateRegistration about?

2012-09-20 Thread Nick Ramirez
I was curious about the *OptionalUpdateRegistration* element. Seems to have to do with patches? So, this is for a scenario where you've grouped a couple of MSP files into a Bundle? -- View this message in context:

[WiX-users] variables not working...

2012-09-20 Thread StevenOgilvie
Hi all, I have these two set: ?define LogonUserName = [%USERNAME]? ?define LogonDomainName = [%USERDOMAIN]? Then this property: Property Id=DATABASE_USERNAME Secure=yes Value=$(var.LogonDomainName)\$(var.LogonUserName) / but when I use it at runtime I see this: [%USERDOMAIN]\[%USERNAME]

[WiX-users] Does anyone have a VSIX example

2012-09-20 Thread Mike Tod
I'm trying to create a MSI to support a VSIX package. I have not been able to find any example of how to use the VsixPackage element shown below. I keep getting errors: Error 1 Unresolved reference to symbol 'File:VSIXProject.vsix' in section 'Fragment:'.F:\Users\mtod\My

Re: [WiX-users] variables not working...

2012-09-20 Thread Nick Ramirez
That %VariableName syntax, I'm not familiar with that in WiX. It reminds me of parameter values in a Windows shell script? Are you wanting to collect the domain\username from the person who launches the installer? If that's the case, if you wanted them to pass that in on the command line, you

Re: [WiX-users] variables not working...

2012-09-20 Thread Hoover, Jacob
I'm trying to remember if the initial value of a property is formatted. It may be better to use a standard custom action to assign the value of the property at runtime. Ex: CustomAction Id=SetDATABASE_USERNAME Property= DATABASE_USERNAME Value=[%USERDOMAIN]\[%USERNAME] / And then in the

Re: [WiX-users] Wix + MSBuild + content files

2012-09-20 Thread Cristian Prieto
So, in this moment my only options would be: 1. Copy manually the bitmap files to the temporary directory where wix is compiling the msi file, probably in the BeforeBuild Target of the wixproj file. 2. Modify the wxs or wxi file where the dialog specify the images and pass a $(var.artdirectory)

Re: [WiX-users] UI upgrade succeeds, but silent upgrade fails

2012-09-20 Thread Alec
I tried silently upgrading 19.0.1 on top of 18.3 with the following code snippet: Upgrade Id=E8805AF3-CF50-4092-BE57-220A8C51E2AA UpgradeVersion OnlyDetect=yes Minimum=19.0.1 IncludeMinimum=no Property=NEWERVERSIONDETECTED/ UpgradeVersion OnlyDetect=no Maximum=19.0.1 IncludeMaximum=no

Re: [WiX-users] variables not working...

2012-09-20 Thread MikeGa
StevenOgilvie wrote I have these two set: ?define LogonUserName = [%USERNAME]? ?define LogonDomainName = [%USERDOMAIN]? Then this property: Property Id=DATABASE_USERNAME Secure=yes Value=$(var.LogonDomainName)\$(var.LogonUserName) / but when I use it at runtime I see this:

[WiX-users] Conditionally displaying a custom dialog

2012-09-20 Thread Tapas Sahoo
I have an install dialog. On Install click, it does a bunch of operations. It is fine for certain operations in the installation to fail. If there is any failure, I want to display another customer dialog which just lists out the error messages and then I can click Next to go to the final

Re: [WiX-users] Burn managed UI - how to cancel and rollback?

2012-09-20 Thread Kannan24
Hi Rob, Thanks for your help. Before cancel the installation, i want to conform from user with another dialog box. When i show the dialog box, the controls are not shown in the dialog box ( i think it may be threading running). Please refer the screenshot below.

Re: [WiX-users] Wix + MSBuild + content files

2012-09-20 Thread Rob Mensching
Why do you want to copy your content to the obj directory? Are you modifying the content in some way as it goes to the obj directory? If not, I would just add the content folder as a BindPath and let WiX do all the heavy lifting grabbing the content and including it into the MSI appropriately.

Re: [WiX-users] What's OptionalUpdateRegistration about?

2012-09-20 Thread Rob Mensching
It's extra data you can register in ARP. On Thu, Sep 20, 2012 at 11:52 AM, Nick Ramirez nickra...@hotmail.comwrote: I was curious about the *OptionalUpdateRegistration* element. Seems to have to do with patches? So, this is for a scenario where you've grouped a couple of MSP files into a

Re: [WiX-users] Does anyone have a VSIX example

2012-09-20 Thread Rob Mensching
You need a File element to carry the VSIX in the MSI. On Thu, Sep 20, 2012 at 4:18 PM, Mike Tod m...@thetods.net wrote: I'm trying to create a MSI to support a VSIX package. I have not been able to find any example of how to use the VsixPackage element shown below. I keep getting errors: