Re: [WiX-users] How to best install generic system withcustomerspecific add-ins

2009-10-22 Thread Thomas Due
Fair enough, I'll try to explain the situation a little better, but Sascha's suggestion about shared fragments files makes absolute sense now that I think about it. It hadn't even crossed my mind. I would to be careful about how I shared them, so I would only have one actual copy of the fragment

Re: [WiX-users] How to get USERDOMAIN?

2009-10-22 Thread Konstantin Vlasenko
It is exactly what I need:) Sent from my iPhone 23.10.2009, в 1:05, Michael Osmond написал(а): > The big issue with %USERDOMAIN is that it is the domain of the user > account that is logged on (and running the install). This may not > be the Domain you are after. Example: You are instal

Re: [WiX-users] Questions on more advanced WiX Installer UI

2009-10-22 Thread Sascha Beaumont
Hi Dan, This sounds like something similar to what we were trying to do with our installer. The question you should ask yourself is do you need to do this during installation, or could you move some of these steps to a post-install phase? What we ended up doing is for interactive installations, l

Re: [WiX-users] How to best install generic system with customerspecific add-ins

2009-10-22 Thread Sascha Beaumont
As Rob suggests, wixlibs are one way to go. My builds aren't overly huge, so I just have a bunch of "shared" wxs files that I use with a number of projects, with a whole bunch of fragments in them. Fragments are awesome ;) Common\UI.wxs Common\CommonFeature.wxs Common\LaunchConditions.wxi ... Pro

Re: [WiX-users] How to change shortcut name?

2009-10-22 Thread Sascha Beaumont
Have you thought about using a wix variable to set the shortcut name at compile time, rather than at runtime? i.e. Shortcut/@Name="MyAPP $(var.version)" Sascha On Thu, Oct 22, 2009 at 6:30 PM, Jiang, Chunyan (GE Healthcare) wrote: > Hi all, > > I have defined the shortcut like this: > > > >

Re: [WiX-users] Beginner's Question on Multi Language Installer

2009-10-22 Thread Sascha Beaumont
Pretty much all WiX documentation in general assumes a basic knowledge of Windows Installer technology. This isn't something immediately obvious to those new to WiX, since pretty much all other commercial installation software doesn't require this type of knowledge. I still have yet to find a bett

Re: [WiX-users] Using a CustomAction to modify a dialog

2009-10-22 Thread Dan Giambalvo
I'm sorry, I'm having trouble wrapping my head around how this subscribe model works, and also difficulty figuring out how to fire the appropriate events from within the CustomAction (currently in VBScript.) Can you possibly offer a small bit of XML to demonstrate your thinking? -Original

Re: [WiX-users] Modify INSTALLDIR using custom action?

2009-10-22 Thread Alexander Shevchuk (Volt)
You need to use CA Type 35 scheduled after CostFinalize to set MYDIR to whatever you want. Alex -Original Message- From: Hoang Le [mailto:hoangle2...@gmail.com] Sent: Thursday, October 22, 2009 3:44 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users]

Re: [WiX-users] Modify INSTALLDIR using custom action?

2009-10-22 Thread Hoang Le
Thanks Craig, I've tried this before and the compiler doesn't seem to like the ".." My code somehow like this Here is the error: --- error CNDL0027: The Directory/@Name attribute's value, '[INSTALLDIR]..\MyInstallDir', is not a valid long name beca

Re: [WiX-users] Using a CustomAction to modify a dialog

2009-10-22 Thread Blair
I've never tried this, but if the text control subscribes to the actiondata event, could your custom action send an actiondata event to it? Let us know how that works. -Original Message- From: Dan Giambalvo [mailto:danie...@microsoft.com] Sent: Thursday, October 22, 2009 2:56 PM To: wix-

Re: [WiX-users] Modify INSTALLDIR using custom action?

2009-10-22 Thread Craig Miller
Try "[INSTALLDIR]..\siblingdir\" > -Original Message- > From: Hoang Le [mailto:hoangle2...@gmail.com] > Sent: Thursday, October 22, 2009 3:02 PM > To: General discussion for Windows Installer XML toolset. > Subject: [WiX-users] Modify INSTALLDIR using custom action? > > Hi, > > My merg

[WiX-users] Modify INSTALLDIR using custom action?

2009-10-22 Thread Hoang Le
Hi, My merge module receives an INSTALLDIR value passed in by a parent project (which I have no control over), and the requirement is that I have to install my files to a directory under "the parent" of INSTALLDIR (a sibling of INSTALLDIR). My initial thought was to get the value of [INSTALLDIR]

[WiX-users] Using a CustomAction to modify a dialog

2009-10-22 Thread Dan Giambalvo
I'm trying to use a CustomAction to do some evaluation, and modify an on-screen Windows Installer dialog. The scenario is this: 1) User enters some text in an edit control 2) User clicks a button which invokes a custom action to evaluate the entered text 3) Custom action comple

Re: [WiX-users] How to get USERDOMAIN?

2009-10-22 Thread Michael Osmond
The big issue with %USERDOMAIN is that it is the domain of the user account that is logged on (and running the install). This may not be the Domain you are after. Example: You are installing software on a Server in an Active Directory domain. You want the domain name of AD - but the user ac

Re: [WiX-users] How to get USERDOMAIN?

2009-10-22 Thread Blair
If it exists and you trust it, it can be used in any field that accepts environment variables (for example: formatted). It cannot be evaluated within the context of a deferred custom action, but it can be evaluated in the process of writing the deferred script, so it should work in the CustomAction

Re: [WiX-users] Build time Component.wxs generation...

2009-10-22 Thread Blair
Use heat.exe with "-ag" and always use Major Upgrade (Product Id='*'), never patch. -Original Message- From: Tony [mailto:yellowjacketl...@gmail.com] Sent: Thursday, October 22, 2009 12:56 PM To: WiX Users Subject: [WiX-users] Build time Component.wxs generation... I'm aware of heat.exe

Re: [WiX-users] Problem under Vista with ExecCommand

2009-10-22 Thread Blair
Would it make any difference if you added Execute="deferred" Impersonate="no" to your CustomAction element? -Original Message- From: mailinglisten.wix-us...@sma-mail.de [mailto:mailinglisten.wix-us...@sma-mail.de] Sent: Thursday, October 22, 2009 10:19 AM To: wix-users@lists.sourceforge.n

Re: [WiX-users] [%USERDOMAIN]\[%USERNAME]

2009-10-22 Thread Blair
You confirmed that the environment variables weren't changed/removed prior to installation, right? Environment variables that the OS itself doesn't itself use can be quite unreliable, since they are so easy to change/spoof/etc. -Original Message- From: Konstantin Vlasenko [mailto:konstant

Re: [WiX-users] Questions on more advanced WiX Installer UI

2009-10-22 Thread Dan Giambalvo
Quite right, the spinner is required during a part of the InstallUI sequence. In considering the spinner problem, I was actually wondering if I couldn't do something super hacky like creating 16 or so bitmaps, and then in my CustomAction flipping them hidden and not in succession to create a fl

Re: [WiX-users] MaskedEdit and disable Next button?

2009-10-22 Thread Blair
Nothing gained and much lost. The problem is that these controls don't publish any events. See http://msdn.microsoft.com/en-us/library/aa368036(VS.85).aspx The only controls that publish anything are these: CheckBox DirectoryList PushButton SelectionTree Here is what MSDN says about running custo

Re: [WiX-users] How to create window before exit dialog

2009-10-22 Thread Blair
The InstallUISequence table is created already for you by any use of the InstallUISequence element. The WixUIExtension includes that element with each of its entry and exit dialogs. You can see it yourself by opening your MSI with Orca. Wix's ExitDialog is named ExitDlg. If you don't mind the clo

[WiX-users] How to get USERDOMAIN?

2009-10-22 Thread Konstantin Vlasenko
Hello, I need to put usersomain into configuration file during the installation. How can I use %USERDOMAIN environment variable in the setup? Do we have some restrictions related to how and when we can use this environment variable? ---

[WiX-users] Build time Component.wxs generation...

2009-10-22 Thread Tony
I'm aware of heat.exe and we have used to to seed our component.wxs files for our various wixlibs, but how do you deal with features like websites and help systems which often have dozens of files added at any time during development cycles? Re-running heat can work, sort of, it will change the co

[WiX-users] Blog: Branching Wizard Sequences With WiX

2009-10-22 Thread Richard
This has come up a couple times on the mailing list in the past and just came up again the other day, so I decided to write up a blog post on the technique. Branching Wizard Sequences With WiX Wizard dialog sequences are common in Windows Installer packages

[WiX-users] UserRegistrationDlg dialog and disable Next button until license key of X characters is entered?

2009-10-22 Thread kerberos
Hello, I'd like my user registration dialog to work like the license page -- where the Next button is enabled upon clicking the button to agree to the license. I'm working along with the tutorial at http://www.tramontana.co.hu/wix/ and have added a UserRegistrationDlg dialog to the installer UI l

[WiX-users] Problem under Vista with ExecCommand

2009-10-22 Thread mailinglisten . wix-users
Hello, i made an simple installer for distributed installation of our software. It's necessary to write die IP of our application server in an txt-file, where the application reads it on first start. The "SERVERIP" ist passed to msiexec as an commandline-argument. The following CustomAction do

Re: [WiX-users] How to detect files presence and conditionally show a new added dialog page

2009-10-22 Thread little.forest
Wow, you found it. Many thanks Richard. "The annoying thing is that it will *appear* to work until it doesn't and there's no unifying principle as to when it will work and when it won't. Its a little more work to do things through the property, but it is guaranteed to work every single time t

Re: [WiX-users] [%USERDOMAIN]\[%USERNAME]

2009-10-22 Thread Konstantin Vlasenko
The domain name also required. But the question is why this happens. In one setup it works and in other doesn't. 2009/10/22 Peter Shirtcliffe > You could try [LogonUser] instead of [%USERNAME]. > > -Original Message- > From: Konstantin Vlasenko [mailto:konstantin.vlase...@gmail.com] > Se

Re: [WiX-users] Deploying mshtml PIA assembly

2009-10-22 Thread John Hall
Andreas Mertens wrote: > I took a look at vs_piaredist.exe, and found you can extract > the .cab or .msi from it (using WinRAR or other such tools). > Perhaps you can just grab one of those and package that up in > your install? Yes, I've found those. However, Rob is correct, and the license

Re: [WiX-users] [%USERDOMAIN]\[%USERNAME]

2009-10-22 Thread Peter Shirtcliffe
You could try [LogonUser] instead of [%USERNAME]. -Original Message- From: Konstantin Vlasenko [mailto:konstantin.vlase...@gmail.com] Sent: 22 October 2009 17:11 To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] [%USERDOMAIN]\[%USERNAME] Hello, Have 2 wix pro

Re: [WiX-users] Deploying mshtml PIA assembly

2009-10-22 Thread John Hall
Rob Mensching wrote: > I'm not sure if the .exe is the only thing available but if > there is no license for you to redist the PIA file with your > application stand-alone then it isn't legal to do so. The exe is the only thing I can find reference to, and the fact that it is install in c:\Prog

[WiX-users] [%USERDOMAIN]\[%USERNAME]

2009-10-22 Thread Konstantin Vlasenko
Hello, Have 2 wix project. Use the same technic to get the environment variables [%USERDOMAIN]\[%USERNAME]. On the same machine one returns non-empty result (e.g. domen\user). The second doesn't (returns empty). -- Konstantin Vlasenko

Re: [WiX-users] How to best install generic system with customerspecific add-ins

2009-10-22 Thread Rob Mensching
If Merge Modules look like they will work, I'd use .wixlibs instead ( http://www.robmensching.com/blog/posts/2008/10/10/What-are-.wixlibs-and-why-would-you-use-them). The WiX toolset's reusable functionality (from the Extensions and all the UI) use .wixlibs. The Wix.chm has a nice section on how to

Re: [WiX-users] Deploying mshtml PIA assembly

2009-10-22 Thread Andreas Mertens
I took a look at vs_piaredist.exe, and found you can extract the .cab or .msi from it (using WinRAR or other such tools). Perhaps you can just grab one of those and package that up in your install? Andreas Mertens -Original Message- From: John Hall [mailto:john.h...@cambridgetechgroup.co

Re: [WiX-users] Upgrade and new install

2009-10-22 Thread Rob Mensching
1. Personally, I would highly suggest you change your application so this CustomAction is unnecessary. You are in for a world of pain in the long run. 2. The Registry element has been deprecated in WiX v3. The warning tells you exactly what to do. 3. You'll have to condition your CustomAction in

Re: [WiX-users] Assembly (C#) installed as merge module

2009-10-22 Thread Rob Mensching
The ASP.NET MVC project had a similar set of requirements. You might look at how they solved this in the 1.0 release. On Thu, Oct 22, 2009 at 12:38 AM, Florian Schricker wrote: > Hello list, > > what I'm trying to achieve - but am not able to :-( is the following: > > I have a VS 08 project creat

Re: [WiX-users] How to change shortcut name?

2009-10-22 Thread Rob Mensching
You can't do that at run time. Only Properties, Directories and temporary rows may be modified at install time. On Thu, Oct 22, 2009 at 12:30 AM, Jiang, Chunyan (GE Healthcare) < chunyan.ji...@ge.com> wrote: > Hi all, > > I have defined the shortcut like this: > > > > Guid="D9DFCBA6-C98F-4146-8

Re: [WiX-users] Questions on more advanced WiX Installer UI

2009-10-22 Thread Rob Mensching
True, but the progress bar is only available during InstallExecute sequence. My understanding was that this "spinner" needed to happen during the UI sequence. If I misunderstood then Tony's suggestion is a good one. On Thu, Oct 22, 2009 at 5:36 AM, Tony wrote: > You might be able to use a progre

Re: [WiX-users] Deploying mshtml PIA assembly

2009-10-22 Thread Rob Mensching
I'm not sure if the .exe is the only thing available but if there is no license for you to redist the PIA file with your application stand-alone then it isn't legal to do so. Also, if you did that, what Component GUID would you give it? On Thu, Oct 22, 2009 at 7:25 AM, John Hall wrote: > Hi, > >

[WiX-users] Deploying mshtml PIA assembly

2009-10-22 Thread John Hall
Hi, My application now has a dependency on mshtml. I therefore need to deploy Microsoft.mshtml.dll, the PIA assembly. The only redistributable I can find is vs_piaredist.exe - is this really the only way of redistributing the file? I'd rather not add another step to my bootstrapper or add a cus

Re: [WiX-users] Upgrade and new install

2009-10-22 Thread Jiang, Chunyan (GE Healthcare)
Although there is Warning message on compile. From the verbose log I got to know that the Custom Action will not be called when install version 2 to PathB. Howver, there is Remove Action trying to remove files from PathA for version 1 install during installing version 2 to PathB. And Install

Re: [WiX-users] E_HANDLE returned from WcaAddTempRecord

2009-10-22 Thread David Battey
Nope -- I missed that (and the WcaFinalize call); works like a charm now. For others' benefit, it's discussed at http://www.tramontana.co.hu/wix/lesson10.php and in threads on this list. Thanks for the help. Blair-2 wrote: > > You did call WcaInitialize before calling WcaAddTempRecord, right?

Re: [WiX-users] Questions on more advanced WiX Installer UI

2009-10-22 Thread Tony
You might be able to use a progress bar type behavior. That is supported within Windows Installer. We have a custom action that can take a long time to finish. We added progress bar "ticks" to the custom action that provide feed back to the UI. Might be worth checking out. Though you need to s

Re: [WiX-users] MaskedEdit and disable Next button?

2009-10-22 Thread kerberos
Thanks for your response! On Wed, Oct 21, 2009 at 9:35 PM, Blair wrote: > Unless you have the person push some other button to call your custom > action, I have no idea how you would get your custom action invoked to check > the lengths to set the property needed to enable your Next button. Woul

Re: [WiX-users] Upgrade and new install

2009-10-22 Thread Jiang, Chunyan (GE Healthcare)
When I searched in Google, I found some one has the same problem as me. And the suggested solution is to define a property using RegistrySearch. And also define a registry with the install path [APPLICATIONFOLDER]. So that the upgrade will only happen when the registry with path found. I tried

Re: [WiX-users] Apply TRANSFORM during runtime of installation?

2009-10-22 Thread mrtn
Hi Joachim, Did you manage to do this? Applying a transform during installation? // morten Joachim Back wrote: > > Hi, > > I have managed to have a multiple language MSI by using msitran and msidb. > Are there any WIX tools to do this, so I am not dependent on SDK tools? > > And if this is

Re: [WiX-users] How to create window before exit dialog

2009-10-22 Thread Adnan Mian
Thanks again. Where can i find my InstallUISequence table? Currently i am not using InstallUISequence Tag and following mentioned code is functioning. How to find the exact place to make chages? In product.wxs i am just using this: LicenseAccepted = "1" 1 Best Regards Adnan 2009/10/22 B

Re: [WiX-users] How to best install generic system with customerspecific add-ins

2009-10-22 Thread Thomas Due
I have been studying the documentation and the tutorial and come to the conclusion that patching is out, since that is essentially just the difference between two installers which is exactly what I want to avoid; Writing two installers... So, my next thought is: How about merge modules then? Wha

[WiX-users] Assembly (C#) installed as merge module

2009-10-22 Thread Florian Schricker
Hello list, what I'm trying to achieve - but am not able to :-( is the following: I have a VS 08 project creating an assembly / dll (C#) which is basically one of our basic dlls. For this dll I created a merge module. I then went ahead and created a "SDK" consuming this merge module and installed

[WiX-users] How to change shortcut name?

2009-10-22 Thread Jiang, Chunyan (GE Healthcare)
Hi all, I have defined the shortcut like this: However, I want to give the shortcut another name, like MyAPP 1.0.0.1, which is the version number. How can I perform it? I know that I can define custom action to change the Product Name, like: But it doesn't work for changi

[WiX-users] How to best install generic system with customer specific add-ins

2009-10-22 Thread Thomas Due
I am currently finishing up on a generic system which we will sell to many different customer with different needs. So, as a result this generic system is based on extensions, or add-ins. Now I am thinking how to best write an installer for this. Although I could copy-n-paste the entire WiX proj

[WiX-users] Upgrade and new install

2009-10-22 Thread Jiang, Chunyan (GE Healthcare)
Hi Wix-users, I have developed one upgradable installer with Wix3. As I understand that main upgrade is same as new install. My scenario is that my version 1 has been installed to PathA. And I have an upgraded version 2. If I install version to to PathA, the old files are removed, the new files a