[WiX-users] Delphi - Custom action issue

2011-05-23 Thread Daniel de Zwart
I have a small delphi DLL that looks like this library Project1; uses SysUtils, Classes, Dialogs, Windows; {$R *.res} function cShowMessage(thing:string) :integer ; export; begin ShowMessage(thing); cGetVersion := 0; end; exports cGetVersion; begin end. And then inside my wix appl

Re: [WiX-users] How to modify a reg key value when you "modify" the setup

2011-05-23 Thread Uma Harano
Hi, I just realized that "transitive" has no relevance to this - Since the registry key component has no component condition to it. My registry key to set to a property value that depends on the check box being checked on or off. But during maintenance mode, since the key already exists, the key

Re: [WiX-users] LaunchFile is a standard custom action?

2011-05-23 Thread william lee
Thanks Palbinder and Chris ! I didn't realize it is a msidbCustomActionTypeExe type CA. that can explain. and final question from me, what's the recommend way to launch the file after install ? Wix Tutorial and Manual show us two different way, any Pros vs Cons? thanks! William L. On Mon, May

[WiX-users] What registry keys/values to modify LastUsedSource

2011-05-23 Thread Wang, Miaohsi
Dear All, After searching on the Internet, I'm still not sure about the exact registry keys/values to modify such that future Repair/Modify will use the msi that we cache locally on the machine hard drive. So far I have found value name LastUsedSource under the following two keys: HKEY_CURRENT

[WiX-users] How to modify a reg key value when you "modify" the setup

2011-05-23 Thread Uma Harano
Hi, I have a registry key that gets set to a value based on a check box that the user clicks during the initial UI. The same check box is available during maintenance mode. So if the user had initially turned it(check box) on during the initial install, and then decides to turn it off during ma

Re: [WiX-users] How To Run Custom Action During Install But Not During Uninstall

2011-05-23 Thread Wilson, Phil
A condition of Not Installed sounds right. [[However, if your custom action is associated with a component or a feature, sometimes a feature condition is more appropriate because the feature may be uninstalled and later reinstalled, or not chosen at install time etc. ]] Phil Wilson -Or

Re: [WiX-users] How To Run Custom Action During Install But Not During Uninstall

2011-05-23 Thread Bradley Ward
OK, I figured my particular case out. The condition you want to use is simply "NOT Installed". Example: NOT Installed In this example, the MyCustomAction action will be run during the installation sequence, but will not be run during the uinstall sequence. Brad -Original Message- F

[WiX-users] How To Run Custom Action During Install But Not During Uninstall

2011-05-23 Thread Bradley Ward
Is there a good FAQ anywhere? It is so frustrating trying to figure out how to do things that zillions of others must be doing all the time... In my case, I just want to run a custom action at install time. I have the custom action running just fine at install time now, but it also gets run when

Re: [WiX-users] Elevated Custom Actions

2011-05-23 Thread Wilson, Phil
That's correct. You can do that only if you arrange for the enire install to be elevated by launching with an elevated launcher. This is one of the reasons people keep steering you towards the standard actions for starting services etc. Providing you can get the dependencies under control it a

Re: [WiX-users] Debugging Custom Actions

2011-05-23 Thread Wilson, Phil
Does that mean that the service has the same problem as your custom action program - missing dependencies? Phil Wilson -Original Message- From: Brad Lemings [mailto:b...@rebit.com] Sent: Friday, May 20, 2011 11:38 PM To: General discussion for Windows Installer XML toolset. Subject: Re:

Re: [WiX-users] Elevated Custom Actions

2011-05-23 Thread Brad Lemings
Ah. My original question wasn't entirely accurate. :) I meant to ask, is it possible to execute a custom action WITH ELEVATED PRIVILEGES after InstallFinalize? -Original Message- From: Pally Sandher [mailto:pally.sand...@iesve.com] Sent: Monday, May 23, 2011 9:15 AM To: General discu

Re: [WiX-users] Elevated Custom Actions

2011-05-23 Thread Pally Sandher
http://www.tramontana.co.hu/wix/lesson3.php#3.2 Palbinder Sandher Software Deployment Engineer T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the ** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Regist

Re: [WiX-users] Elevated Custom Actions

2011-05-23 Thread Brad Lemings
Can you send a link for the custom action in the Wix tutorial? Thanks. -Original Message- From: Pally Sandher [mailto:pally.sand...@iesve.com] Sent: Monday, May 23, 2011 5:33 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Elevated Custom Actions Fa

Re: [WiX-users] A question about MSI capabilities

2011-05-23 Thread Peter Shirtcliffe
A limited user cannot install to Program Files on XP. The default file permissions prevent it. -Original Message- From: Chris [mailto:h48c...@werritech.com] Sent: 21 May 2011 14:01 To: wix-users@lists.sourceforge.net Subject: [WiX-users] A question about MSI capabilities Greetings folks,

Re: [WiX-users] Elevated Custom Actions

2011-05-23 Thread Pally Sandher
False to the best of my knowledge. The Visual C++ merge modules put an Uninstall Custom Action (SxsUninstallCA) after InstallFinalize & the WiX tutorial uses a Type 2 Custom Action after InstallFinalize to show how to launch an installed executable. Palbinder Sandher Software Deployment Engineer

Re: [WiX-users] A question about MSI capabilities

2011-05-23 Thread Pally Sandher
FYI the guidelines have been saying that for the NT platform since at least NT4 to the best of my knowledge (NT 3.1 & 3.5 were before my time) which is around 15 years so far. Microsoft had to create UAC to enforce the rules as developers were happy to ignore them otherwise & thus instil certain ex

Re: [WiX-users] A question about MSI capabilities

2011-05-23 Thread Chris
On 23/05/2011 20:01, Pally Sandher wrote: > With regards to "putting the entire app into the users profile area if > on Vista+[1], or program files for XP-" just no. Correct behaviour would > be to put the app into the users profile area *regardless* of operating > system when run by a user without

Re: [WiX-users] LaunchFile is a standard custom action?

2011-05-23 Thread Pally Sandher
LaunchFile is used as an identifier. It means nothing outside the context of that package. It could be called Supercalifragilisticexpialidocious for all the difference it would make. That code defines a Type 2 Custom Action & if you look down the page to the next paragraph you'll see where it is se

Re: [WiX-users] LaunchFile is a standard custom action?

2011-05-23 Thread Adkins Christopher
Hi William, The ID in that custom action is just a name to identify it. In this case LaunchFile was used to make it very clear what it was doing. You could name it whatever you want to make it clearer for yourself. To further answer your question it is not a predefined custom action, but rathe

Re: [WiX-users] A question about MSI capabilities

2011-05-23 Thread Pally Sandher
All of what you're trying to achieve sounds eminently possible using Windows Installer. I'm not sure if non-MSI setup systems can even support advertised installation using advertised shortcuts. With regards to "putting the entire app into the users profile area if on Vista+[1], or program files f

Re: [WiX-users] LaunchFile is a standard custom action?

2011-05-23 Thread william lee
Hi Palbinder, Thanks for the info, I noticed that article before. That one is easy to understand. my question is, from this tutorial: http://www.tramontana.co.hu/wix/lesson3.php following solution also works, as I verified: <*CustomAction* Id='LaunchFile' FileKey='FoobarEXE' ExeCommand='' Return

Re: [WiX-users] LaunchFile is a standard custom action?

2011-05-23 Thread Pally Sandher
I suspect the following manual page is what you're looking for -> http://wix.sourceforge.net/manual-wix3/run_program_after_install.htm Palbinder Sandher Software Deployment Engineer T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the **

[WiX-users] LaunchFile is a standard custom action?

2011-05-23 Thread william lee
Hi, Is the LaunchFile action a standard custom action provided by Windows Installer? I tried to search it, and no hits. All I know is, it can launch the installed application after installed with File Key: http://www.tramontana.co.hu/wix/lesson3.php but I didn't find its implement in any wix ca dll